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.
Tags: Database
Similar Questions
-
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 -
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;
-
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
-
Number of error SQL ORA-00904: invalid column name has occurred.
Hello
on P8.18 on a Win 2003 server when we launch SWPAUDIT, it failed with:
Number of error SQL ORA-00904: invalid column name has occurred. Query process failed.
I searched this error on metalink3. Nothing in connection with.
Any idea?
Thank you.Please give a clear picture of what you are doing... .and what paintings... There is the possibility of the audit refers to certain tables... with deleted. names of columns just look in the structure of what you audit?
Please, find the name of column...
ORA-00904: string: invalid identifier
Cause: The column name entered is invalid or missing.
Action: Enter a valid column name. A valid column name must start with a letter, must be less than or equal to 30 characters and include only alphanumeric characters and the special characters $, _, and #. If it contains other characters, then it must be enclosed in quotation marks. It cannot be a reserved word. -
Move the partition of the table and get ORA-14006: invalid partition name
I'm using oracle 11.2.0.4 and I am trying to move a partitioned table to one tablespace to another. I checked may times and I have the correct table name and the name of the partition. However, I get the error ora-14006.
Can see everything what could be the problem?
SQL > ALTER TABLE GWPROD. QRY_TES_ROLLINGCUREDITS MOVE PARTITION 201112 TABLESPACE GW_PROD_T2 PARALLEL (DEGREE 4) NOLOGGING;
ALTER TABLE GWPROD. QRY_TES_ROLLINGCUREDITS MOVE PARTITION TABLESPACE GW_PROD_T2 PARALLEL (DEGREE 4) NOLOGGING 201112
*
ERROR on line 1:
ORA-14006: invalid partition name
Thanks in advance.
Names that begin with numbers are not legal partition names. A fool created by placing them between double quotes. You will need to do the same.
-
IKM Partition Oracle Exchange Error loading - ORA-14006: invalid partition name
Hello
I use ODI Standalone Edition Version 11.1.1
I've created an interface, the target table's partition.
DDL script
CREATE TABLE big_table2)
ID NUMBER (10),
CREATED_DATE DATE,
lookup_id NUMBER (10),
given VARCHAR2 (50)
)
PARTITION OF RANGE (created_date)
(PARTITION big_table_2007 VALUES LESS THAN (MAXVALUE));
the performance of the interface error: -.
Internal CZ_SC_CONSULTING jar:file:/D:/Oracle/middleware/Oracle_ODI1/oracledi/client/jdev/extensions/Oracle.ODI.Navigator.jar!/com/Sunopsis/graphical/gif/State/f_error.gif 2015-01-28 10:58:38.0 2015-01-28 10:59:08.0 30 14006 ODI-1226: step INT_EXCH_PART fails after 1 attempt. ODI-1240: Flow INT_EXCH_PART fails during an operation of integration. This flow of charge table BIG_TABLE2 target.
ODI-1228: failed INT_EXCH_PART (integration) task on the target of ORACLE ODI_STAGE connection.
Caused by: java.sql.SQLException: ORA-14006: invalid partition name
ORA-06512: at line 2
Please can I know what is the problem.
Put your name of the partition in upper case and double coate as:
'BIG_TABLE_2007 '.
The capital should not be a problem, but it is better to be like that because it will store like this in the table USER or ALL_TAB_PARTITIONS.
This makes it easier to compare if you need to check if a partition already exists or not.
Hope this can help you.
-
Reconciliation error: ORA-00903: invalid table name
I am facing this error below:
SELECT * FROM WHERE ORC_KEY =? AND UD_RES_P_KEY =? : java.sql.SQLSyntaxErrorException: ORA-00903: invalid table name
What is a product of IOM 9.1.0.2 problem?
Best regards
RobertNo, it isn't a matter of product. Please go to the tab of process definition and
define any attribute with multiple values as a key field in mapping definition of the reconciliation process.Let me know the result, if you please.
hope this helps,
Thiago Guimarães L -
java.sql.SQLException: ORA-00903: invalid table name
Guys,
I get this error. Could you help me on this?
08:58:23, 859 ERROR [DATABASE] select * where orc_key = 125 and _key not
in (null) and UD_MAINU_key = 98
java.sql.SQLException: ORA-00903: invalid table name
to
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:108)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:340)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:301)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:813)
at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:253)
to
oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:890)
to
037)
to
oracle.jdbc.driver.T4CStatement.executeMaybeDescribe(T4CStatement.java:901)
to
155)Go to metalink and look at this note ID 443436.1.
hope this helps,
Thiago Leoncio -
ORA-01921: role name 'MGMT_USER' is in conflict with another user name or role
Hello
10 g R2 on Win 2003 Server creating the DB control using the command line:
EMCA - config dbcontrol db-rest create
I have this error:
CREATE THE ROLE MGMT_USER
*
ERROR on line 1:
ORA-01921: role name 'MGMT_USER' is in conflict with another user name or role
My questions are:
1. how to know users who have this role?
2. work near I can bring this role?
Thank you very much.user522961 wrote:
1. how to know users who have this role?SELECT username, granted_role FROM dba_role_privs WHERE role_name = 'MGMT_USER';
-
ORIGINAL TITLE: Comctl32.ocx
Hello
I'm trying to run a program on my computer, but it says ' comctl32.ocx component or one of its dependencies not correctly registered: a file is missing or invalid "." I saw this topic on the forum before and read your responses to these messages. I tried to find the file missing by typing cmd in the start menu, but that failed because the file is not found on my computer. I also did a systemscan as you said in another post, to check if all the Windows files are there, and the scan did not the missing files. But I can't find the file anywhere comctl.Could you help me? More information: I have Windows 7 Home Premium (64-bit).Thank you!JeroenHi Jeroen,
We appreciate the effort that you put, to try to solve this problem.
What is the name of the application you are trying to install?
Microsoft Visual Basic ships with several ActiveX controls (.) OCX files). These files are automatically saved by the Visual Basic Setup program during installation. The developers want to often save or cancel registration of these and/or their own witnesses at will. This can be accomplished by using a tool such as RegSvr32.EXE or it can be done programmatically through Visual Basic code.
You can try to update Microsoft Visual Basic 6.0 common controls and see if the problem is resolved.
(a) go to http://www.microsoft.com/en-us/download/details.aspx?id=10019 and download the installer.
(b) If you are not successful to run the file normally for the first time, refer to http://windows.microsoft.com/en-in/windows7/make-older-programs-run-in-this-version-of-windows and install it in compatibility mode for Windows XP.
(c) try to install the program
For any future reference.
Refer to this article to see how how to register program and Unregister. OCX files.
http://support.Microsoft.com/kb/173091
Let us know if you need help or if you have other questions about windows.
-
ORA-12705 unknown or invalid nls parameter during linux Data Mover psdmtx
Hello. I install the following peoplesoft products:
Tuxedo 10gR 3
PeopleTools 8.52.00
HRMS 9.10
WebLogic 11 GR 1 material
My operating system platform is oracle enterprise linux 6 (2.6.32 - 71.el6.x86_64 #1 SMP). Several houses of oracle database are in place. Oracle 9i, 10g and 11g are all installed in different places on this machine. The operating system oracle and peoplesoft to os account (ex: pshrtest2 - os peoplesoft administrator account) select or choose what version of oracle at the time of the connection; 9i, 10g or 11g. Currently, I am trying to create the HRMS 9.1, database of demonstration of peopletools 8.52 in Oracle 9i. I am familiar with the manual steps of generation of database demonstration using Data Mover (linux: $PS_HOME/bin/psdmtx). This version of demonstration via Data Mover manual step is a failure for the peopletools, 8.50.00, 8.51.00 and 8.52.00, but he managed to previous revisions of peopletools such as 8.48.00, 8.48.10, 8.49.00.
Control Data Mover:
psdmtx CT - ORACLE - CD HRTEST2 - CO SYSADM - CP SYSADM - CW - PEOP1E - FP dbsetup.dms PEOPLE
error of the Data Mover:
PSDMTX error: access code
Reason: Couldn't sign database HRTEST2 with user SYSADM.
Mover track #1
file: datamover.trc
? appsrv.3917 (-1) [27/11/12 00:33:03] (0) used Cache Directory: / media/v02/psoft/hr852test2/PS_CACHE/CACHE/1 /.
? appsrv.3917 (-1) [27/11/12 00:33:04] (0) Cur #0.3917.HRTEST2 RC = 12705 hard = 0.432763 create login information = primary, HRTEST2, PEOPLE, handshake = 0000000000000000
? appsrv.3917 (-1) [27/11/12 00:33:04] (3) file: error SQL Access ManagerSQL. Stmt #: 2 error Position: 0 return: 12705 - ORA-12705: unknown or invalid NLS parameter value specified
Mover track #2
PID: 3948 TIMES: killed Nov 27 00:42:17 2012 PSORA initializing
PID: 3948 TIMES: killed Nov 27 00:42:17 maximum cursor to initialize PSDB 2012 = 1024
PID: 3948 TIMES: killed Nov 27 00:42:17 2012 environment change: NLS_LANG = AMERICAN_AMERICA. UTF8
PID: 3948 TIMES: killed Nov 27 00:42:17 2012 initialized PSORA
PID: 3948 TIMES: killed Nov 27 00:42:17 2012 PSORA_Initialize() nStatus = 0 0 0
PID: 3948 TIMES: killed Nov 27 00:42:17 2012 attached to the new server HRTEST2 0 9.200000
PID: 3948 TIMES: killed Nov 27 00:42:17 2012 cannot start session
PID: 3948 TIMES: killed Nov 27 00:42:17 2012: 12705 oracle error code
PID: 3948 TIMES: killed Nov 27 00:42:17 2012 ORA-12705: unknown or invalid NLS parameter value specified
PID: 3948 TIMES: killing Nov 27 00:42:17 PS-sqlcch (0000000000000000) 2012
PSDMTX error: access code
Reason: Could not sign database HRTEST2 with user SYSADM
The linux operating system user account that is used to run Data Mover is, pshrtest2. Via the account of pshrtest2, I am capable of correctly tnsping the HRTEST2 database. I am also able to connect to the HRTEST2 database successfully through sqlplus as follows:
export ORACLE_SID = HRTEST2
people/peop1e sqlplus
sqlplus people/peop1e@hrtest2
sqlplus sysadm/sysadm
sqlplus sysadm/sysadm@hrtest2
HRTEST2 nls_database_parameters
NAME
---------
HRTEST2
1 selected line.
VALUE OF THE PARAMETER
------------------------- -----------------------------------
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS.,.
WE8ISO8859P15 NLS_CHARACTERSET
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI. SSXFF AM
NLS_TIMESTAMP_FORMAT-DD-MON-RR HH.MI. SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI. SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI. SSXFF AM TZR
NLS_DUAL_CURRENCY $
BINARY NLS_COMP
NLS_LENGTH_SEMANTICS TANK
NLS_NCHAR_CONV_EXCP FAKE
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_RDBMS_VERSION 9.2.0.4.0
20 selected lines.
Ora-12705 error is only being received from the peopletools 8.50.00 and above (8.50.00, 8.51.00, 8.52.00) revisions. This error is also received through the application server, even if the original demonstration database has not yet been built. This ora-12705 error is not generated in the previous revisions of peopletools (8.48.00, 8.48.10, 8.49.00). What possible environmental settings can be established and used to address this issue (ex: $NLS_LANG, $LANG)?Please, Nicolas.
The construction of database of demonstration on oracle 10g solved the error ora-12705.
-
After installing OWD, I get ORA-01919: there is no role "JAVAIDPRIV"
I'm working on Oracle 10gXE.
Now, I just installed OWB and creating the repository user, I get this message:
(' processSQLDBA Token'(.../.../rtasst/platform_system_rights.sql): java.sql.SQLException: ORA-01919: there is no role "JAVAIDPRIV"
Previously, I was asked to give a user name for the repository and I chose one, but I've not created before on my database, so I assumed that the installation of OWB could put everything on its own, shouldn't it?
Thank you!Unfortunately Oracle 10 g Express Edition is not supported for use with OWB.
OWB are certified against the Standard and Enterprise versions only. -
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) );
-
Mail.app: a sealed resource is missing or invalid
I recently received a warning message about the signing of the code of the application to my Mail. I went to Terminal, ran codesign and got the following:
Mail.app: a sealed resource is missing or invalid
I fear that the files might have been interfered.
Can someone advise on measures to solve this problem?
It is the result of a bug in OS X 10.11.5. You can ignore it.
Maybe you are looking for
-
Why am I suddenly get pop ups, prompting the opening of 2 files Firefox?
All of a sudden after leaving Yahoo email, I got a pop-up indicating that it was a pop up of the FF, to want me 'open' and no matter what I doHe continues to pop up. There are 2 windows pop up, a SEO https://s.yimg.comand r - sf.html (640 bytes) AND
-
My iPhone 5 will support 4G in france with Free as cellular network
I use 5s. I bought it in India. I would like to know if my iPhone supports 4G in France with Free as my ISP
-
With earlier versions of MAC OS and Fire Fox, I created several folder in which I put bookmarks. For example, I have a folder of MEDICAL INFORMATION in which I placed several bookmarks. I want to create a completely new file for a different topic. I
-
Still no monitor temperature and no USB boot support
HelloMany users of Toshiba laptops I am disappointed because no CPU temperature monitoring utility, none support USB booting is provided for my laptop.It is ridiculous that there is no utility that shows the temperature, the speed of the processor or
-
Windows Genuine Advantage problem
Use the key that came with my computer when I reinstalled windows with Service Pack 3 and now it isn't letting me sign in windows. He said that the key is not valid, but it's the same key my computer came with then why isn't this working? How can I f