ORA-01506: missing or illegal database name
I can't start the database instead, I get the above error. Help, please[oracle@localhost /] $ pwd
/
[oracle@localhost /] $ cd/u01/app/oracle
[oracle@localhost oracle] $ export ORACLE_BASE = / u01/app/oracle
[oracle@localhost oracle] $ export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
[oracle@localhost oracle] $ export ORACLE_SID = orcl
[oracle@localhost oracle] $ export PATH = $ORACLE_HOME/bin: $PATH
[oracle@localhost oracle] $ export TNS_ADMIN=/u01/app/oracle/product/11.2.0/dbhome_1/network/admin
[oracle@localhost oracle] $ sqlplus / as sysdba
SQL * more: Production of release 11.2.0.1.0 Thu Feb 14 17:33:11 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connect to an instance is idle.
SQL > startup
ORA-01506: missing or illegal database name
SQL >
>
...
[oracle@localhost oracle] $ export ORACLE_SID = orcl
...
-rw - r - r - 1 root root 69 14 Feb 12:02 initorcl.ora
...
>
Why the initorcl.ora file is owned by root? As mentioned, do not perform any oracle about actions or commands as root.
HTH
Srini
Tags: Database
Similar Questions
-
ORA-01937 missing or invalid role name
Hi there, I had a little problem with a small piece of code am familiar with Oracle database, scripts I have been done by another person for the version 6/7 is currently using version 8i for reasons of compatibley with the server software, I am currently setting up.
use the script generates the following error message
Enter the value of old 1: 1: CREATE ROLE & 1._role
new 1:
CREATE ROLE GRANT CONNECT to & 1._role; _role CREATE ROLE GRANT CONNECT to & 1._role; _role
*
ERROR on line 1:
ORA-01937: missing or not a valid role name
Enter the value of old 1: 1: GRANT RESOURCE TO & 1._role
new 1: GRANT RESOURCE to GRANT permission TO & 1._role; _role
RESOURCE of GRANT OF GRANT permission to & 1._role; _role
*
ERROR on line 1:
ORA-00911: invalid character
Enter the value of old 1: 1: GRANT IMP_FULL_DATABASE TO & 1._role
new 1: GIVE the IMP_FULL_DATABASE TO GRANT CREATE ANY SYNONYM OF & 1._role; _role
GRANT IMP_FULL_DATABASE to GRANT CREATE ANY SYNONYM OF & 1._role; _role
*
ERROR on line 1:
ORA-00911: invalid character
Enter the value of old 1: 1: GRANT DROP ANY SYNONYM to & 1._role
new 1: GRANT DROP ALL SYNONYM of _role
GRANT DELETE ANY SYNONYM OF _role
*
ERROR on line 1:
ORA-00911: invalid character
Enter the value 1: enter the value of 2: 1 old: CREATE USER, IDENTIFIED BY 1 & 2
new 1: CREATE a USER IDENTIFIED BY GRANT & 1._role to & 1.
CREATE the USER IDENTIFIED BY GRANT & 1._role to & 1.
*
ERROR on line 1:
ORA-01935: lack of user name or role
Here is the code used
USE of REM: @ous < username > < PASSWORD >
REM create a < username > identified by < PASSWORD >
CREATE a ROLE & 1._role;
GRANT CONNECT to & 1._role;
GRANT RESOURCE to & 1._role;
GRANT permission to & 1._role;
GRANT IMP_FULL_DATABASE to & 1._role;
GRANT CREATE ANY SYNONYM OF & 1._role;
GRANT DROP ANY SYNONYM OF & 1._role;
CREATE a USER & 1 IDENTIFIED BY & 2
QUOTA UNLIMITED ON gam_lgtab
QUOTA UNLIMITED ON gam_bintab
QUOTA UNLIMITED ON gam_tab
QUOTA UNLIMITED ON gam_ind
TEMPORARY TABLESPACE temp;
GRANT & 1._role to & 1.
can someone help me to solve this thanks, that a working example would be due to my lack of knowledge with this database system.
Thank you very much
Hello
How do you call this script?
According to the commentary at the beginning of the script, this is:
USE of REM: @ous
you're supposed to give 2 arguments after the name of the script (which, apparently, is UO). The first argument is a user name; so it should follow the rules for user names (for example it must start with a letter and only contain letters, numbers, or a couple of other characters, such as the features of underscore allowed). The second argument is the password. So if you want to create a user called FOO and give him the password to BAR987, then we could say
@ous FOO BAR987
SQL * more ' SQL > "command prompt, or to the equivalent point in another front-end tools.»
This assumes that the ous.sql script is the default location. If you don't know what it is, you can always give the name of full path, like this:
@d:\my_directory\sql_stuff\creation_scripts\ous FOO BAR987
The script creates a different role for each user, it creates. This isn't a very common practice. Out of context, I can't say for sure if it's a very bad idea, but we can't if abstain I was wondering if based on such an unusual with these old tools is best for your needs.
-
Where am I missing my illegal variable name/number
I am updating a program that I created some time ago and set different levels of access based on a flag in a column. Now when I run the new version, I get variable name/number errors ORA-01036 occasional illegal in one of the functions.
The code in question (where the only change occurred in this section) is:
string l6Str = "SELECT email, leo FROM jc_hc_users_dev WHERE oof='F' AND id IN (SELECT usr_id FROM jc_hc_usr_snd_dev WHERE loi_id=:loiid OR grp_id=:grpid)"; OracleCommand l6Cmd = new OracleCommand(l6Str, lCxn); l6Cmd.Parameters.Add("loiid", OracleType.Int32).Value = L2id; l6Cmd.Parameters.Add("grpid", OracleType.VarChar).Value = l2GrpId; // if the reader is populated with email addresses, add them into a List for sending. using (OracleDataReader l6Rdr = l6Cmd.ExecuteReader()) { if (l6Rdr.HasRows) { while (l6Rdr.Read()) { if (l6Rdr["leo"].ToString() == "F") { CivEmails.Add(l6Rdr["email"].ToString()); } else { BccEmails.Add(l6Rdr["email"].ToString()); } } } }
The loiid parameter is a Number (10,0) table and the: grpid is Varchar2 (10).
Or is the problem in the l6Rdr ["leo"]. ToString() and l6Rdr ['email']. ToString() part?
Thanks in advance for any help!
I don't think that the problem is in the code from the outside. I guess that's probably on the query.
Please, make sure that all values that are joined correspond to the data type:
Number 4 and number (6) do not cause the error.
can you show me the errors with the ORA-01036? Have you tried to reproduce the query in sqlplus? Maybe you can get more information...
-
illegal or missing database name
Hello
I will have a few difficulties of database 11g:
SQL > connect system/secret as sysdba;
Connect to an instance is idle.
SQL > startup
ORA-01506: missing or illegal database name
11g installation seems to be okay and there is no error at all.
My environment variables have been defined:
-bash-4, $ 0 echo $ORACLE_HOME
/ Tank/Oracle/112
-bash-4, $ 0 echo $ORACLE_SID
orajf
Here are the contents of my file of dbs:
-bash-4, $ 0 ls-l $ORACLE_HOME/dbs
total of 26
-rw - rw - 1 oracle oinstall 1544 24 May 21:50 hc_jfora.dat
-rw - r - r - 1 oracle oinstall 2852 26 mai 11:35 init.ora
-rw - r - r - 1 oracle oracle 0 26 mai 11:27 initORA11GR2.ora
-rw - r - r - 1 oracle oracle 0 26 mai 11:33 initorajf.ora
-rw - r - 1 oracle oinstall 24 24 May 21:51 lkJFORA
-rw - r - 1 oracle oinstall 1536 24 May 21:56 orapwjfora
-rw - r - 1 oracle oinstall 906 26 mai 14:20 spfilejfora.ora
The database instance tried to create is called 'orajf '.
Here is the content of the spfile
jfora.__java_pool_size = 16777216
jfora.__large_pool_size = 16777216
jfora.__oracle_base='/tank/oracle'#ORACLE_BASE the value of the environment
jfora.__pga_aggregate_target = 687865856
jfora.__sga_target = 1006632960
jfora.__shared_io_pool_size = 0
jfora.__shared_pool_size = 436207616
jfora.__streams_pool_size = 0
*.audit_file_dest='/tank/Oracle/admin/jfora/adump '
* .audit_trail = "db".
* full = '11.2.0.0.0'
*.control_files='/tank/oracle/oradata/jfora/control01.ctl','/tank/oracle/flash_recovery_area/jfora/control02.ctl'
* .db_block_size = 8192
* .db_domain = "
* .db_name = "jfora."
*.db_recovery_file_dest='/tank/Oracle/flash_recovery_area '
* .db_recovery_file_dest_size = 4070572032
* .diagnostic_dest = "/ tank/oracle.
*. Dispatchers ='(Protocol=TCP) (SERVICE = jforaXDB)"
* .local_listener = "LISTENER_JFORA".
* .memory_target = 1686110208
* .open_cursors = 300
* runoff = 150
* .remote_login_passwordfile = "EXCLUSIVE."
* .undo_tablespace = "UNDOTBS1.
I was just wondering what I might be missing. What else can I do to start this database?
Thank you
Published by: 918944 on May 26, 2012 11:36SQL > connect system/secret as sysdba;
Wrong, you need to sign in as SYS not system, the system user is not sysdba called...
-bash-4, $ 0 echo $ORACLE_HOME
/ Tank/Oracle/112
-bash-4, $ 0 echo $ORACLE_SID
orajf
Here are the contents of my file of dbs:
-bash-4, $ 0 ls-l $ORACLE_HOME/dbs
total of 26
-rw - rw - 1 oracle oinstall 1544 24 May 21:50 hc_jfora.dat
-rw - r - r - 1 oracle oinstall 2852 26 mai 11:35 init.ora
-rw - r - r - 1 oracle oracle 0 26 mai 11:27 initORA11GR2.ora
-rw - r - r - 1 oracle oracle 0 26 mai 11:33 initorajf.ora
-rw - r - 1 oracle oinstall 24 24 May 21:51 lkJFORA
-rw - r - 1 oracle oinstall 1536 24 May 21:56 orapwjfora
-rw - r - 1 oracle oinstall 906 26 mai 14:20 spfilejfora.oraI see 2 files of parameters, one is jfora (SPFILE) and orajf (PFILE)
Since you set your ORACLE_SID to orajf check your PFILE (initorajf.ora), I think that it does not contain the db_name parameter...
-
Hi guys,.
I'm a bit confused by the name ORACLE_SID and database. I understand that an instance may be attached to a database, and that a database can be attached to multiple instances.
Essentially, when we set the values in our init.ora, we set the values of the instance, or the database, or is it a mixture? that is the instance and the database to which it can connect?
Also, the DB_NAME parameter that specifies what database, the instance can connect to?
And why does it say in the [Oracle documentation | http://download.oracle.com/docs/cd/B10501_01/server.920/a96521/create.htm#1003921] which the DB_NAME initialization parameter value must match the SID setting. I thought that they should not be the same?
Thank you1. a DATABASE is the physics of files - data files for tablespaces (SYSTEM, UNDO, TEMP, USERDATA, USERINDEXES etc.), controlfile (s), redolog files and possibly the archivedlog files.
2. an INSTANCE is the set of processes that access the database. So, when you start an Instance, you start background processes that allow users to access the files of database.
3. a DATABASE can have multiple INSTANCES in a configuration of OPS/PAP. Thus, each Instance is configured with a different name - the ORACLE_SID maps the processes of the Instance, the Instance name is the name for the process. (1 single database accesses an Instance)
4. a listener allows connections when not coming not from the same ORACLE_HOME. The listener starts for a database Instance (via the inputs the listener.ora) or the database records with the listener running (when PMON updates the default listener or "local_listener").
5. users (ApplicationServers etc.) connect to the INSTANCE, not in the database. Users access the Instance of the SID mapping directly or via a listener. If you have access to via a listener, they specify a SID or a SERVICE_NAME in their connection settings.
I understand that an instance may be attached to a database, and that a database can be attached to multiple instances.
Can access an Instance (I would use 'access' rather than 'attach') 1 single database. However, a database available under multiple instances. (In any case, a database is not attach to an instance - this is the mechanism that opens the database files - access).
When we set the values in our init.ora, we set the values of the instance, or the database, or is it a mixture?
We put them to the Instance. (It's the ControlFile who really knows the database!
what the DB_NAME parameter that specifies what database, the instance can connect to?
If the 'db_name' specified in the init.ora does not match the database name, you get an error and can not access the database.
Why do we say in the Oracle documentation...
It is a recommendation and is not mandatory.
Think about what happens when you CLONE a database. You can CLONE a database to a different instance name, and then change the DB_NAME after a successful RECOVERY and RESETLOGS OPEN (for example that dbca is when it creates a database of preconfigured for you: he one of the clones and then renames the database).
So, I can clone of database 'PROD_A' ("PROD_A' ORACLE_SID) and ORACLE_SID"TEST_A"during the RESTORE process and to RECOVER the DB_NAME to"TEST_A"remains"PROD_A"until I have recreate the ControlFiles and rename the database"TEST_A ".(And we don't start talking about GLOBAL_NAME and SERVICE names-find you on them to confuse you more!)
-
ORA-02421: missing or not valid schema authorization identifier
Hello Evryone,
I'm having a problem with the session of the user schema. I'm not able to change the schema that it even exists.
SQL>ALTER session SET CURRENT_SCHEMA='QA' Error report: SQL Error: ORA-02421: missing or invalid schema authorization identifier 02421. 00000 - "missing or invalid schema authorization identifier" *Cause: the schema name is missing or is incorrect in an authorization clause of a create schema statement. *Action: If the name is present, it must be the same as the current schema. SQL>select username, account_status from DBA_USERS where username='QA'; USERNAME ACCOUNT_STATUS ------------------------------ -------------------------------- QA OPEN SQL>SHOW user USER is SYSTEM SQL> select * from v$version; BANNER -------------------------------------------------------------------------------- Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production PL/SQL Release 11.2.0.2.0 - Production CORE 11.2.0.2.0 Production TNS for HPUX: Version 11.2.0.2.0 - Production NLSRTL Version 11.2.0.2.0 - Production
Try it without the single quotes.
Best regards
mseberg
Test on mine:
Release 11.2.0.1.0 - 64 bit production
I get the same error with quotes
ERROR on line 1:
ORA-02421: missing or not valid schema authorization identifierPublished by: mseberg on August 15, 2011 14:50
So, this and then check
ALTER SESSION SET CURRENT_SCHEMA=QA
You can check it using this:
select sys_context('USERENV','SESSION_SCHEMA') from dual;
Published by: mseberg on August 15, 2011 15:08
-
ORA-00922: missing or not valid option?
Can someone tell me what is the problem with this statement:
SQL > CREATE TABLE CUSTOMER2
2 2 (employe_id NUMBER (10),)
3 3 FIRST NAME VARCHAR2 (40),
4 4 LASTNAME VARCHAR2 (40),
5 5 VARCHAR2 (40) OF COMPANYNAME,.
6 6 PHONE VARCHAR2 (40),
7 7 E-MAIL VARCHAR2 (40),
8 8 CITY VARCHAR2 (40),
9 9 VARCHAR2 (40) STATE.
10 10 ZIP VARCHAR2 (40)
11 (11);
2 (employe_id NUMBER (10),)
*
ERROR on line 2:
ORA-00922: missing or not valid optionInstead of your code with below
CREATE TABLE CUSTOMER2 ( employee_id NUMBER(10), FIRSTNAME VARCHAR2(40), LASTNAME VARCHAR2(40), COMPANYNAME VARCHAR2(40), PHONE VARCHAR2(40), EMAIL VARCHAR2(40), CITY VARCHAR2(40), STATE VARCHAR2(40), ZIP VARCHAR2(40) );
-
ORA-1092 marked during: ALTER DATABASE OPEN...
Oracle 11.2.0.1
Running in noarchive mode - so no backup. This is a new test database.
The database was working fine. I used SQL Developer 'data copy' to bring objects of production database for test. The program ran for hours and never finished. So I clicked on the button "Cancel". And "the copy database" program closed cleanly.
I was able to connect to the database, but when I tried to create a db link it hung. So I made an immediate halt and the database closed properly.
But when I tried to put the database in the rear seat... that's when the problem started.
SQL> startup ORACLE instance started. Total System Global Area 1.3495E+10 bytes Fixed Size 2218032 bytes Variable Size 6845106128 bytes Database Buffers 6576668672 bytes Redo Buffers 71471104 bytes Database mounted. ORA-01092: ORACLE instance terminated. Disconnection forced ORA-00704: bootstrap process failure ORA-00604: error occurred at recursive SQL level 1 ORA-00942: table or view does not exist Process ID: 5555 Session ID: 191 Serial number: 3 SQL> shutdown immediate ORA-24324: service handle not initialized ORA-01041: internal error. hostdef extension doesn't exist
Here's what's in the newspaper of the alerts:
<msg time='2014-11-07T07:30:05.326-08:00' org_id='oracle' comp_id='rdbms' msg_id='opiexe:3056:2780954927' client_id='' type='NOTIFICATION' group='admin_ddl' level='16' host_id='dub-ImrORA2.americas.epicor.net' host_addr='10.20.0.88' module='[email protected] (TNS V1-' pid='5555'> <txt>ORA-1092 signalled during: ALTER DATABASE OPEN... </txt> </msg> <msg time='2014-11-07T07:30:05.343-08:00' org_id='oracle' comp_id='rdbms' client_id='' type='UNKNOWN' level='16' host_id='dub-ImrORA2.americas.epicor.net' host_addr='10.20.0.88' module='[email protected] (TNS V1-' pid='5555'> <txt>opiodr aborting process unknown ospid (5555) as a result of ORA-1092 </txt> </msg> <msg time='2014-11-07T07:30:06.531-08:00' org_id='oracle' comp_id='rdbms' type='UNKNOWN' level='16' host_id='dub-ImrORA2.americas.epicor.net' host_addr='10.20.0.88' pid='5555'> <txt>ORA-1092 : opitsk aborting process </txt> </msg>
Please tell me how to recover this database.
It seems that you have corrupted objects "bootstrap", such as access$, which is necessary for the open operation. Only solution is to restore from a backup, or re-create DB.
-
Is it possible to more a form letter to make the process more product separate PDFs, one for each recipient identified in a database (names, addresses, etc.)?
Or is - it possible to more type a letter so that the more process produces one big file that contains a copy of the form for each letter recipients identified in a database?
Hi marceepoo,
If you use Word for Windows, you can of course. See Adobe Acrobat X Pro * create PDFs from Word mail
Best,
Sara
-
Dear all,
I intend to implement a number of databases of vcenter in different data centers - all have the same standard name, say 'VCDATA '.
Subsequently, the plan is to use modes related to connect to vcenter instances - is there any problem with the same database name when you use bound mode?
Thank you
I didn't have the need to use additional related yet myself, but as far I understand modes related, there is no need to use again the same PB (for example, MSSQL, Oracle,...) for the different vCenter servers that you want to link. When you configure related modes vCenter replicates only the data necessary to access the services (information connection, certificates), information on licenses, user roles using Microsoft ADAM. The different vCenter servers go directly to other databases. With the vSphere Client you only access the vCenter vCenter servers Service.
André
-
Is it possible to migrate a planing with different database name application?
Hi gurus,
is 1] possible to migrate an application planing with different database name via the LCM in EMP 11 utility?
[2] we can migrate application of planning with different names from DB in sys9 too?You must update this table, restart planning. You must also rename the database through the Regional service.
See you soon
John
http://John-Goodwin.blogspot.com/ -
ORA-00906 missing left parenthesis
Hello
I get "ORA-00906 missing opening parenthesis" error during the creation of the foreign key on the short-term in the table t_friends column.
(1) parent table:
create the table t_city
(
city_name varchar2 primary key (60)
)
(2) child table:
create the table t_friends
(
friend_name varchar2 (30) not null,
city_name varchar2 (60)
)
ALTER table t_friends add constraint city_cons foreign key short-term reference t_city (short-term);
Please can you tell me what is the error that I do in the syntex above.
Thank you
Michel KTry this:
alter table t_friends add constraint city_cons foreign key (city_name) references t_city(city_name);
You forgot to put the column in parentheses.
-
ORA-00907 MISSING RIGHT PARENTHESIS
Hi all
The query
FLASHBACK TABLE schema.table_name to TIMESTAMP (January 18, 2008 18:55:58 ',' MON-DD-YYYY HH24:MI:SS');
gives me error
ORA-00907 MISSING RIGHT PARENTHESIS
WHAT AM I MISSING HERE?
kAIWHAT AM I MISSING HERE?
Try
flashback table schema.table_name to timestamp( to_timestamp('18-JAN-2008 18:55:58','DD-MON-YYYY HH24:MI:SS'));
-
ORA-1113 marked during: alter database open
Help, please!
While in retrospect was backing one of the index file of the database on our server, I started accidentally services and the Oracle database. When trying to connect to SQL, the following error message occurs:
ORA-01033: Oracle initialization or shutting.
I opened the alert log database and the following error message was published at the time, that I started to the Oracle database.
ORA-1113 marked during: alter database open
Is the version of Oracle 8i and the operating system is Windows NT 4.0.
If anyone knows how to fix this problem without having to perform a database recovery, I would appreciate your help.
Thank you in advance.ORa-1113 error means that your application of backup ("retrospective") an ALTER TABLESPACE BEGIN BACKUP and END for each tablespace.
In 8i, you wouldn't have the command "ALTER DATABASE END BACKUP". Neither the "ALTER DATABASE DATAFILE... BACKUP COPY OF THE END. "
What you would do is:
1. start the service.
2. go to the quick Windows command line as administrator or the account of the OS_DBA Group (with the right ORACLE_SID, ORACLE_HOME and path)
3 sqlplus / as sysdba
4 start editing - or ALTER DATABASE MOUNT so it start but not mounted
5 ALTER TABLESPACE (tablespacename_that_was_in_backup_mode) BACKUP end;
(if there were spaces of multiple tablespaces in backup mode, issue the END BACKUP for each other)
6. ALTER DATABASE OPEN;The other option in step 5 is the "RECOVER DATABASE". Oracle can ask any archivelogs to synchronize the files data back.
-
Error: PL / SQL: ORA-00922: missing or invalid option
I'm sorry, I'm new to Oracle and am in a crazy time. I'm having all kinds of problems with the conversion of SQL to Oracle... and get the PL/SQL: ORA-00922: missing or not valid error option with the following function. Any help appreciated.
FUNCTION IEXGADQReceived)
v_BDateTime IN DATE
v_EDateTime IN DATE
v_Queuename IN VARCHAR2
v_Username IN VARCHAR2
)
RETURN int IS
INT v_retval;
BEGIN
SET v_retval: = (select count (distinct iid)
Of agentinteractionsview
WHERE the ibegintime between v_BDateTime and v_EDateTime
and fromqueue = v_Queuename
and fromroutereasonid = 11
and username = v_Username);
RETURN v_retval;
END IEXGADQReceived;No problem, we've all been there before: D)
FUNCTION IEXGADQReceived (v_BDateTime IN DATE,v_EDateTime IN DATE,v_Queuename IN VARCHAR2,v_Username IN VARCHAR2)RETURN int ISv_retval INT;BEGINselect count(distinct iid) INTO v_retval FROM agentinteractionsviewWHERE ibegintime between v_BDateTime and v_EDateTimeand fromqueue = v_Queuenameand fromroutereasonid = 11and username = v_Username; RETURN v_retval;END IEXGADQReceived;
Maybe you are looking for
-
I need to change an extention of jpeg to any extension, I need a document?
I scanned a resume in the computer and there an extenion to photo, but I can't download because of my extension do not know how to change it and where to get the extionsion. Help, please. Thank you
-
Have XP Pro w/sp2 but unable to download sp3. ?
I, ve tried several times over several days to download sp3 but MS won't do. How can I get around this. My XP is a registered legal copy.
-
best settings for shooting outdoors? Canon rebel eos t3i
my brother is getting married this Saturday the 15, it'll be a wedding in the open air at 4 pm Pacific time. The weather is sunny highs of 74 depressions 55 with a chance of flurries. What are the best GENERAL setting to record the ceremony? I am a n
-
Export in &; submit to the FB provider Portal
Hey I am very very new to AIR development and BlackBerry Tablet OS SDK. However, I am on my way to learn & doing some apps! I finished my first and will submit the supplier portal. I made the app just like a normal of MXML in FB file and have managed
-
XPS 420 system battery voltage is low
When restarting my computer Dell XPS 420, I get the error "system battery voltage is low. I have 3 options: F1 to continue, F2 to setup utility and F5 for on-Board Diagnostics. I did all 3, but the error never goes away. What should I do?