Discussions
Categories
- 385.5K All Categories
- 5.1K Data
- 2.5K Big Data Appliance
- 2.5K Data Science
- 453.4K Databases
- 223.2K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 47 Multilingual Engine
- 606 MySQL Community Space
- 486 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3.2K ORDS, SODA & JSON in the Database
- 585 SQLcl
- 4K SQL Developer Data Modeler
- 188K SQL & PL/SQL
- 21.5K SQL Developer
- 46 Data Integration
- 46 GoldenGate
- 298.4K Development
- 4 Application Development
- 20 Developer Projects
- 166 Programming Languages
- 295K Development Tools
- 150 DevOps
- 3.1K QA/Testing
- 646.7K Java
- 37 Java Learning Subscription
- 37.1K Database Connectivity
- 201 Java Community Process
- 108 Java 25
- 22.2K Java APIs
- 138.3K Java Development Tools
- 165.4K Java EE (Java Enterprise Edition)
- 22 Java Essentials
- 176 Java 8 Questions
- 86K Java Programming
- 82 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 208 Java User Groups
- 25 JavaScript - Nashorn
- Programs
- 667 LiveLabs
- 41 Workshops
- 10.3K Software
- 6.7K Berkeley DB Family
- 3.6K JHeadstart
- 6K Other Languages
- 2.3K Chinese
- 207 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 474 Portuguese
How to connect to the human_resources schemas in 12c?

Hi, i didnt have hr user, i didnt have schemas, so i download the example schemas from oracle downloads. Installed them to F:\app\product\12.1.0\dbhome_1\demo\schema\human_resources
Here goes the question, do i have now HR user? or must create the new one? And, if i must create new one, how can i grant him privilege to acces those schemas
In SQL Developer for user SYSTEM, show me other tables that i dont need right now. So how can i solve this problem?
Please write commands for SQL plus because i am new in this. Thank you.
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
PL/SQL Release 12.1.0.1.0 - Production
"CORE 12.1.0.1.0 Production"
TNS for 64-bit Windows: Version 12.1.0.1.0 - Production
NLSRTL Version 12.1.0.1.0 - Production
Best Answer
-
Hi,
Try
select table_name from dba_tables where owner='HR';
that should give you the tables it owns.
then pick one of those and try
select * from hr.table_name_you_picked;
Cheers,
Rich
Answers
-
How do I ask a question on the forums?
-
Can u specify what information do u need?
-
Do like below & post your results
SQL> connect system/fubar1
Connected.
SQL> select count(*) from dba_users where username='HR';
COUNT(*)
----------
1
-
COUNT (*)
-----------
0
1 row selected. -
c9ecd818-fa1a-4bc9-9fce-b39631c390ae wrote: COUNT (*) ----------- 0
1 row selected.so above shows that your database does not contain the HR user/schema
to make HR user, you will need to execute SQL statement that starts like below
CREATE USER HR IDENTIFIED BY ................................................
-
SQL>create user HR identified by hr
error at line 1: ORA-65096: invalid common user or role name
-
c9ecd818-fa1a-4bc9-9fce-b39631c390ae wrote: error at line 1: ORA-65096: invalid common user or role name
Oracle did a fine job at making life more complicated with the V12 release.
You need to Read The Fine Manual (URL below) to learn about USERS in V12 database
http://docs.oracle.com/cd/E16655_01/server.121/e17633/cdbovrvw.htm#CNCPT89234
-
i read that but not much helpful, because my pdborcl is not in the same folder as human_resources schemas.
F:\app\product\12.1.0\dbhome_1\demo\schema\human_resources
F:\app\oradata\orcl\pdborcl
-
I have user c##sys created, how can i grant him privileges to see and change tables in human_resources schemas?
When i connect with this user in SQL developer, tables are empty
Look at picture -> http://s21.postimg.org/9ge5g605j/c_sys.jpg
-
Anyone?