How to Set Up the Oracle HR Schema

  Рет қаралды 25,561

Database Star

Database Star

Күн бұрын

Пікірлер: 83
@teannataylor1542
@teannataylor1542 2 жыл бұрын
Thank you so much for this. I am studying for a job interview and I hadn't been able to find one resource that doesn't seem to overlook a step/step(s). Your video was extremely concise and helpful after 2 hours of trying to get my feet off the ground in Oracle.
@DatabaseStar
@DatabaseStar 2 жыл бұрын
Awesome! Glad it was helpful for you!
@2armn
@2armn 3 жыл бұрын
Sweet lord all mighty i deleted all the tables on the hr db by accident and you just saved my life with your video, plus your voice relaxed the shit out of me.
@DatabaseStar
@DatabaseStar 3 жыл бұрын
Aah thanks, glad to hear it helped! This comment made my day!
@guilderw
@guilderw 3 жыл бұрын
He definaly has a relaxing voice, comes very useful when one is at thre wits’ end
@juleshairston7115
@juleshairston7115 2 жыл бұрын
I found this very useful after I struggled for hours. everything you said was spot on. Most other instructions were vague or assumed I knew things I didn't. I really appreciate this.
@DatabaseStar
@DatabaseStar 2 жыл бұрын
Glad it helped!
@jackmason7943
@jackmason7943 2 жыл бұрын
Excellent video that ended my Oracle suffering for this weekend. I'm running Oracle Express, so the key for me was using SERVICE NAME: XEPDB1 in SQL Developer when trying to make a connection with the newly created user HR after running script one. The connection issues information in the description pointed me in the right direction there. Thank you so much!
@DatabaseStar
@DatabaseStar 2 жыл бұрын
Awesome, glad it was helpful for you! Yeah the service name and connection details can be hard to get right in recent versions.
@robertomirelman6295
@robertomirelman6295 3 жыл бұрын
Good tutorial, but I got stuck. First, in script nº1, you must edit ALTER SESSION SET CONTAINER = ORCLPDB1; to the correct container. Oracle21 ships with XEPDB1, so the correct comnmand should be ALTER SESSION SET CONTAINER = XEPDB1; In script 2, you should mention that when you create conection HR, you must change from SID to the name of the PDB, in our case XEPDB1 , at the bottom of the "create connection" window. Thnak you for your time: it really helped me!
@DatabaseStar
@DatabaseStar 3 жыл бұрын
Awesome, thanks for the corrections! Yes, recent versions of Oracle include a PDB (Pluggable Database) which makes the connection process a little more confusing.
@gilapal
@gilapal 3 жыл бұрын
THANKS YOU SAVED MY DAY,MONTH ....
@deepakravi5272
@deepakravi5272 3 жыл бұрын
thanks mirelman u just saved my day!!!
@gracejohnson2857
@gracejohnson2857 2 жыл бұрын
hi i please im stuck at the part where I load the sql scripts. The files appear as txt instead of sql in the IDE. Can you assist with where Im going wrong? might you be able to assist?thanks
@imranshaikh-gt4tg
@imranshaikh-gt4tg 3 жыл бұрын
Thanks Ben, you solved my problem in 5 mins for which I was exploring from last 3 hrs. I was using 10g xe but unfortunately my hard disk got corrupted and I lost all the files, when I again installed it (10g) I was not able to connect to HR as it was asking password which I was not remembering some how I created system account with the new installation and from there I followed your video and got HR schema loaded into my 10g, it was quite challenging also as I was using older version of sql developer where I was not getting docker option. from system itself i created HR user and then created schema, MANY THANKS AND KEEP MAKING LEARING MORE EASY, KUDOS TO YOU!!!
@DatabaseStar
@DatabaseStar 3 жыл бұрын
Awesome, glad you solved the problem and got it working!
@tnza2k19
@tnza2k19 3 жыл бұрын
I'm new to the world of DB's after transitioning from another field, thank you for this useful content.
@DatabaseStar
@DatabaseStar 3 жыл бұрын
No problem, glad you like it!
@gracejohnson2857
@gracejohnson2857 2 жыл бұрын
hi i please im stuck at the part where I load the sql scripts. The files appear as txt instead of sql in the IDE. Can you assist with where Im going wrong? might you be able to assist?thanks
@gilapal
@gilapal 3 жыл бұрын
Thanks for this great video. I now have the HR sample database installed.
@DatabaseStar
@DatabaseStar 3 жыл бұрын
Glad it was helpful!
@mjverdugo
@mjverdugo 2 жыл бұрын
Congrats for this channel, Ben.
@DatabaseStar
@DatabaseStar 2 жыл бұрын
Thanks Marcelo!
@basheerraad5570
@basheerraad5570 2 жыл бұрын
I'm using Oracle 21C XE on my machine. by running the command "Show con_name;" I see that my pluggable DB is called 'XEPDB1' instead of 'orclpdb' so I had to change the first query in the first file . from "Alter session set container=orclpdb" to "Alter session set container=XEPDB1"
@DatabaseStar
@DatabaseStar 2 жыл бұрын
Ah good tip. Thanks for sharing!
@akankshathakur1032
@akankshathakur1032 2 жыл бұрын
Am not the option to connect script file to database. How could I?
@DatabaseStar
@DatabaseStar 2 жыл бұрын
What are you trying to do? What issue are you having?
@ajsawant4u
@ajsawant4u 2 жыл бұрын
That Helped create schema quickly !! thanks (y)
@DatabaseStar
@DatabaseStar 2 жыл бұрын
Thanks, glad it was helpful!
@gracejohnson2857
@gracejohnson2857 2 жыл бұрын
hi please im stuck at the part where I load the sql scripts. The files appear as txt instead of sql in the IDE. Can you assist with where Im going wrong? thanks
@DatabaseStar
@DatabaseStar 2 жыл бұрын
Could you check the files are saved with an sql extension? Otherwise you should just be able to run them in the ide
@1Diana2ful
@1Diana2ful 6 ай бұрын
Hello and TY... I got as far as loading 01 Create Account.sql --- my problem is running it. Please help
@1Diana2ful
@1Diana2ful 6 ай бұрын
I made it work.... yay
@DatabaseStar
@DatabaseStar 6 ай бұрын
Glad you got it working!
@maatalamyriem
@maatalamyriem 2 жыл бұрын
thank you so much for this video,it really help me
@DatabaseStar
@DatabaseStar 2 жыл бұрын
Thanks, glad you like it!
@ajithvenkatachalam5335
@ajithvenkatachalam5335 11 ай бұрын
Hi , first of all thank you for the instructions. Can you help me how to grant all privileges to hr?
@DatabaseStar
@DatabaseStar 11 ай бұрын
You can probably use the GRANT command in Oracle to grant privileges to the HR user.
@minhjavapc3057
@minhjavapc3057 2 жыл бұрын
Great video! Thanks you so much!
@DatabaseStar
@DatabaseStar 2 жыл бұрын
Glad it was helpful!
@ashrafabdo5461
@ashrafabdo5461 3 жыл бұрын
I am from yemen, thank you very much ❤
@DatabaseStar
@DatabaseStar 3 жыл бұрын
You’re welcome!
@abhishektripathi27
@abhishektripathi27 2 жыл бұрын
Is there any sample web application which can be used to connec to HR schema to play around?
@DatabaseStar
@DatabaseStar 2 жыл бұрын
Not that I know of. There may be an Oracle Apex application but I haven't used it.
@Gabonidaz
@Gabonidaz 2 жыл бұрын
Sir I would love if you could translate the other oracle sample schemas (sales history, order entry, product media, information exchange) into sql commands as well, I'm trying to learn sql from a docker oracle database but i cant install the sample schemas in any other way besides yours.
@DatabaseStar
@DatabaseStar 2 жыл бұрын
Yeah they can be hard to set up from the Oracle repository. Sure I can translate the other sample schemas.
@harshitsati
@harshitsati 3 жыл бұрын
henlo, should I follow the same instructions for mySQL workbench?
@DatabaseStar
@DatabaseStar 3 жыл бұрын
It could work for MySQL but the scrips are designed for Oracle.
@harshitsati
@harshitsati 3 жыл бұрын
@@DatabaseStar aw, my professor is making us use oracle 10g :/ I wanted to continue using mySql, but I guess I'll have to switch
@DatabaseStar
@DatabaseStar 3 жыл бұрын
Oracle 10g!? That came out over fifteen years ago! Why not use 18c or 19c?
@harshitsati
@harshitsati 3 жыл бұрын
@@DatabaseStar explain that to my professor :(
@heinthantoo2224
@heinthantoo2224 3 жыл бұрын
Do we need to mount volume for permanent data?
@DatabaseStar
@DatabaseStar 3 жыл бұрын
Yes, if you're using this on Docker, you'll need to use a mount volume. I'm not sure how to set that up, but I'll look into it and create a video on it soon.
@danielj.3326
@danielj.3326 3 жыл бұрын
Hi. I ran your first script and everything was successful, but now when i try to connect to the hr database i get that error message: Status : Failure -Test failed: ORA-01017: invalid username/password; logon denied. EDIT: I am using oracle xe 21c.
@DatabaseStar
@DatabaseStar 3 жыл бұрын
Hmm, it could be that you're connecting to the wrong database or the user is not set up correctly. I haven't used 21c XE yet, so maybe something has changed there too. I've got this post on resolving connection issues, hopefully it can help: www.databasestar.com/oracle-connection-issues/
@mohan.nagaraj
@mohan.nagaraj 3 жыл бұрын
I had same issue in 21c. When you run this CREATE USER HR IDENTIFIED BY hrpass; it creates password in uppercase. If you want to have it case sensitive include within ". Or try with HRPASS as password.
@abhi3088
@abhi3088 3 жыл бұрын
@@mohan.nagaraj not working for me..any idea
@gonzalomartinez453
@gonzalomartinez453 2 жыл бұрын
@@abhi3088 in database conection, inside details select 'service name' and enter XEPDB1.
@abhi3088
@abhi3088 2 жыл бұрын
@@gonzalomartinez453 yeah figured out..but thnx for reply
@praishsewthal1681
@praishsewthal1681 9 ай бұрын
I am getting the following error for every line of the first script: Error report - ORA-01917: user or role HR does not exist 01917. 00000 - user or role %s does not exist *Cause: There is not a user or role by that name. *Action: Re-specify the nam Can anybody please assist?
@DatabaseStar
@DatabaseStar 9 ай бұрын
I assume this is happening on the command "DROP USER HR CASCADE"? If so, that's OK, because the user does not exist. You can skip this and run the next line which is "CREATE USER HR..."
@rahulgupta-zq3bk
@rahulgupta-zq3bk Жыл бұрын
Thanks a lot!! Saved my day.
@DatabaseStar
@DatabaseStar Жыл бұрын
Glad it helped!
@miitter
@miitter 3 жыл бұрын
Thank you so much, only edit i did was on the container.
@DatabaseStar
@DatabaseStar 3 жыл бұрын
Glad it was helpful!
@martinvuchkov9834
@martinvuchkov9834 2 жыл бұрын
Okay. Perfect.. at the part "Create HR Connection" you make new connection, eazy peazy,, but your SID is different. When I try to make this conneciton i get ORA-12514. Awesome man.. I went after you turorials because all of the others are crap. And now how do you soppose we connect to this DB when we dont have this connection in our tnsnames file? How some newbie who wants to connect to Oracle will manage to do it by following these steps? Why there is no video on that.. Anyway, you are better than the others
@DatabaseStar
@DatabaseStar Жыл бұрын
Thanks for the feedback! I agree that connecting to Oracle can be tricky - it's actually the number one problem that I get asked about by those who are learning Oracle. And as you can probably tell, the connection process is not easy. I've written about some common errors and possible solutions here: www.databasestar.com/oracle-connection-issues/ I also plan on enhancing that page, and making a video, to include more about connecting to Oracle. So, that page doesn't include all issues that could come up, but it may help. If it doesn't help, then hopefully some other results in Google or Stack Overflow could help you.
@TallesDiCunto
@TallesDiCunto 2 жыл бұрын
Just two things I thought useful after running the entire process: 1) If you need to make your PDB modifiable, just go to sqplus (in my case, using Windows command prompt) and write: sqlplus / as sysdba 1.1) Optional step, that might help or do nothing (in my case, my user of interest was SYSTEM): grant all privileges to USER_OF_INTEREST grant dba to USER_OF_INTEREST container=all; grant sysdba to USER_OF_INTEREST container=all; 1.2) Check your current PDB: select name,open_mode from v$pdbs; 1.3) Now having the PDB name and it properly in the "MOUNTED" state*, write: *1.3.0) If it is not mounted, you might just Google how to write the MOUNT statement and execute it in this step. Only then write the following: alter pluggable database YOUR_PDB_HERE open; alter pluggable database YOUR_PDB_HERE save state; From now on, your PDB will be readable/writeable. 2) If you do not use Docker, your service name will be only your PDB name, without the ".localdomain" part. Thank you for sharing!!
@DatabaseStar
@DatabaseStar 2 жыл бұрын
Thanks Talles for sharing, this is very helpful!
@basheerraad5570
@basheerraad5570 2 жыл бұрын
Thanks for your video. can you add OE schema as well ))
@DatabaseStar
@DatabaseStar 2 жыл бұрын
Sure, I can create some scripts and a video for the OE schema.
@shanshanxu9978
@shanshanxu9978 3 жыл бұрын
thank you! solved my doubt!
@DatabaseStar
@DatabaseStar 3 жыл бұрын
Happy to help!
@basheerraad5570
@basheerraad5570 2 жыл бұрын
very useful video
@DatabaseStar
@DatabaseStar 2 жыл бұрын
Thanks!
@MrStece
@MrStece Жыл бұрын
nuh.. dont work!
@DatabaseStar
@DatabaseStar Жыл бұрын
What issue are you having?
@carlosmanuelalvaradoandrad3801
@carlosmanuelalvaradoandrad3801 2 жыл бұрын
I have a problem with the first script, I am using the oracle connection in docker but the new image, this image I got for your video: kzbin.info/www/bejne/a2fHhIt_Z7WVebM I got the first problem in de command: alter session, I think it was the container, en your video, you use OraDoc in DB_SID. Plissss help me sorry for my English.
@DatabaseStar
@DatabaseStar 2 жыл бұрын
Which error are you getting? If you are using the Docker container from the other video you should use the connection details mentioned there.
@carlosmanuelalvarado7733
@carlosmanuelalvarado7733 2 жыл бұрын
@@DatabaseStar Hi ! I change the software of my Mac, because I was in the beta program, so I changed and it works 👌thanks for responded !
How to Set Up Oracle Database with Docker (Official Container Image)
10:56
20 Tips for Oracle SQL Developer (To Save You Time)
16:59
Database Star
Рет қаралды 68 М.
УНО Реверс в Амонг Ас : игра на выбывание
0:19
Фани Хани
Рет қаралды 1,3 МЛН
진짜✅ 아님 가짜❌???
0:21
승비니 Seungbini
Рет қаралды 10 МЛН
Hilarious FAKE TONGUE Prank by WEDNESDAY😏🖤
0:39
La La Life Shorts
Рет қаралды 44 МЛН
99% Cost Improvement in This SQL - See How It’s Done
19:12
Database Star
Рет қаралды 4,6 М.
How to Set Up an Oracle Free Cloud Database (Works on M1 MacBook)
8:44
7 Database Design Mistakes to Avoid (With Solutions)
11:29
Database Star
Рет қаралды 96 М.
How to install Oracle Sample Database schema - step by step
11:20
How To Unlock HR User In Oracle Database 21c by Manish Sharma
9:33
Manish Sharma
Рет қаралды 20 М.
How to Design a Database for Instagram
9:26
Database Star
Рет қаралды 42 М.
Stop Wasting Time Documenting Your Database
11:30
Database Star
Рет қаралды 2,2 М.
A Better Way to Store Address Data in a Database
8:17
Database Star
Рет қаралды 22 М.