Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I used Database Configuration Assistant to create new database but afterwards notice all exsiting database user disappeared. Please help!
how you are checking the users?
run > cmd
set ORACLE_sid=<database_name_here>
sqlplus / as sysdba
select username from dba_users;
I bet you've created the new database and are logged into it instead of the existing instance (maybe?)
Check which database you are in 1 of two ways:
echo $ORACLE_SID or select name from v$database;
If you find you are logged into the new instance find your old one and switch to it:
Find all SID's installed in your environment: cat /etc/oratab
Switch to it: . oraenv then enter in the appropriate SID you found in the oratab.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
when I created a new connection I find that it contains same content as the previous one, even I have not written anything to this new connection.
A SQL Developer connection is just a session. If you use the same username as an existing connection's user you will see the objects belonging to that schema.
If you want to create a new user you actually have to create a new user. Connect as SYS (using SYSDBA connection) and
create user new_user identified by some_password
default tablespace users;
grant create session, create table, create procedure to new_user;
grant quota 100M on users to new_user;
Obviously give the user an appropriate name for your needs. Grant it all the privileges it needs. Find out more.
Once you have created the user you can create a SQL Developer connection for it.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 3 years ago.
Improve this question
I learning to use Oracle database, and I just installed Oracle Database 12c Release 2 on my Ubuntu 18.04.
I login as sysdba with this following command:
sqlplus / as sysdba
So far all thing working and I got this message:
Connected to an idle instance.
Now, I want to start my server with this following command:
SQL> STARTUP
But, the thing that make me confuse are I got this error message:
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/u01/app/oracle/product/12/dbhome_1/dbs/initSID.ora'
I checking it out on that directory, and the initSID.ora was missing.
So, where I can find the missing file..?, how to fix it..?
You need to create an SPFILE in /u01/app/oracle/product/12/dbhome_1/dbs directory to be able to start the database by only using STARTUP command.
If there's no SPFILE then a PFILE should explicitly be specified with the STARTUP command as
SQL> STARTUP PFILE=/u01/app/oracle/product/12/dbhome_1/dbs/initSID.ora
assuming you have a PFILE named initSID.ora in that directory.
Finally I figure out this by following #Tejash----ORA-00980 instructions to create a database.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 8 years ago.
Improve this question
I start a sqlplus session, and enter "connect / as sysdba". just it. then the oracle let me login, without any password and user information.
so, is this just a XE edition's feature. or all oracle version let me login without a password.
by the way, what the "connect / as sysbda" means.
I can understand this "connect user/password#db-sid". but it doesn't follow this pattern. the databse don't has a sysdba user, so what's the command mean?
From Oracle Forum Post
-- sqlplus "/as sysdba" it mean is you use OS authorization and your user must member of dba(ORA_DBA) OS group,else operation will fail.
-- sqlplus sys/pass#sid as sysdba it mean is you use passwordfile authorization .And in this case you need properly configure this file
also need set remote_login_passwordfile= EXCLUSIVE or SHARED.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
Can the migration file be reused?
In my project,I use the migration to make the database table.
And then I sent to my friend.
But he can't use the migration command to get these tables;
Always 'Nothing to migrate',So,May I ask how you do that?
Nothing to migrate appears only if Laravel detected that migration done already. Now question is, how Laravel detect migration already done?
if you go to your database (using PhpMyadmin or Sequel pro), you will see there is a table called migrations. Laravel store all migration information to the migrations table. Do not share this table with your friend. . If you share the table already, ask your friend to empty the table.
Than run the migration again.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I'm studying Oracle database and have to do some exercises with default "HR" schema. But I think that data in my tables is changed from default values (many students have access to DB and may be someone changed data). Where can I get SQL to construct default "HR" schema?
check here the schema is in a zip file
http://code.google.com/p/adf-samples-demos/downloads/detail?name=demoscripts.zip&can=2&q=
Just wanted to update this post that the above link won't work:
Try this instead:
http://www.oracle.com/technetwork/developer-tools/datamodeler/sample-models-scripts-224531.html
And refer this also:
http://st-curriculum.oracle.com/obe/jdev/obe11jdev/11/common/connection11g.htm#t1
Hope this helps!!
If practicing using HR Schema is your requirement, you can use the Oracle Live SQL. It has the HR Schema for you to play around with.
https://livesql.oracle.com
Old question but high Google page rank, so here goes:
They are hosted by Oracle on Github now (as of 2018):
https://github.com/oracle/db-sample-schemas
See this link: http://download.oracle.com/docs/cd/B19306_01/server.102/b14198/installation.htm#sthref33
It's under $ORACLE_HOME/demo/schema/human_resources
I was working on a database connected via SQL developer and could not find HR schema. I wanted to create the HR schema using SQL queries. I used below scripts one by one and create the schema with the SYS user:
Check here: https://support.dbagenesis.com/knowledge-base/script-to-create-hr-schema/