SP2-0306:Invalid option.Usage:CONN[ECT][logon][AS{SYSDBA|SYSOPER}]where log

Hi
Anyone can help me with the following error we are getting
SP2-0306:Invalid option.Usage:CONN[ECT][logon][AS{SYSDBA|SYSOPER}]where<logon>::=<username>[<password>][@<connect_identifier>]|/
We just upgrated to R12 and the shell script that we run is returning the above error message.
Below is the script
# Determine employee ID of send-to
echo "Determine employee ID of send-to"
if [ $8 ]
then
EID=`echo "${CONNECT} \n
set heading off \n
set feedback off \n
select employee_id from FND_USER where upper(user_name) = '${USRNAME}';" |
${ORACLE_HOME}/bin/sqlplus -s`
echo "CONNECT values " ${CONNECT}
echo "Connected to DB " $EID
echo "employee fax "
# employee fax
EFAX=${11}`echo "${CONNECT} \n
set heading off \n
set feedback off \n
select fax_number from POS_PO_EMPLOYEE_DETAILS_V where employee_id=${EID};" |
${ORACLE_HOME}/bin/sqlplus -s |
sed s/-//g`%[email protected]
echo "Employee Fax "$EFAX
EFAX2=`echo $EFAX|sed s/' '/'%91'/`
EFAX=$EFAX2
# employee email
EEMAIL=`echo "${CONNECT} \n
set heading off \n
set feedback off \n
select email_address from HR_EMPLOYEES_ALL_V where employee_id=${EID};" |
${ORACLE_HOME}/bin/sqlplus -s`
EEMAIL2=`echo $EEMAIL|sed s/' '//g`
EEMAIL=$EEMAIL2
echo "Employee Email "$EEMAIL
fi
thank you

I ended up rewriting the shell script and it works fine now
if [ $8 ]
then
EID=`${ORACLE_HOME}/bin/sqlplus -s ${CONNECT} <<EOF
set heading off;
set feedback off;
select employee_id from FND_USER where upper(user_name) = '${USRNAME}';
exit;
EOF`
echo "Connected to DB " $EID
echo "employee fax "
# employee fax
EFAX=${11}`${ORACLE_HOME}/bin/sqlplus -s ${CONNECT} <<EOF
set heading off;
set feedback off;
select replace(fax_number,'-') from POS_PO_EMPLOYEE_DETAILS_V where employee_id=${EID};
exit;
EOF`%[email protected]
echo "Employee Fax "$EFAX
EFAX2=`echo $EFAX|sed s/' '/'%91'/`
EFAX=$EFAX2
# employee email
EEMAIL=`${ORACLE_HOME}/bin/sqlplus -s ${CONNECT} <<EOF
set heading off;
set feedback off;
select email_address from HR_EMPLOYEES_ALL_V where employee_id=${EID};
exit;
EOF`
EEMAIL2=`echo $EEMAIL|sed s/' '//g`
EEMAIL=$EEMAIL2
echo "Employee Email "$EEMAIL
fi
thank you for your help!
Edited by: user618218 on May 20, 2013 2:39 PM

Similar Messages

  • Getting SP2-0306 error while executing a scrpt.

    Hi all,
    We are using oracle version 11GR2 .
    I am getting the below error while executing a unix script which connect to DB and returns a value. Why we get such issues/ anything wrong in the setup ?
    Same code working fine in old db. any idead how to resolve this?
    SP2-0306: Invalid option. Usage: CONN[ECT] [{logon|/|proxy} [AS {SYSDBA|SYSOPER|SYSASM}] [edition=value]] where <logon> ::= <username>[/<password>][@<connect_identifier>] <proxy> ::= <proxyuser>[<username>][/<password>][@<connect_identifier>] ERROR: ORA-01017: invalid username/password; logon denied SP2-0306: Invalid option. Usage: CONN[ECT] [{logon|/|proxy} [AS {SYSDBA|SYSOPER|SYSASM}] [edition=value]] where <logon> ::= <username>[/<password>][@<connect_identifier>] <proxy> ::= <proxyuser>[<username>][/<password>][@<connect_identifier>] SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*PlusPlease let me know if you need any details.
    Thanks and Regards
    Nagaraja

    Thanks for the response rp.
    I am calling the script checkdbtoproceedjob from another script as below.
    DBVALUE=`checkdbtoproceedjob ODS_LOAD $1` >> $LOGFILE
    echo "dbvalue is "$DBVALUE
    if [ $DBVALUE !=  "DBCONTINUE" ]
    then
      echo "**** job will be exited as db says no *****"
      exit 0
    fi
    echo "***** Job will be continued as db says yes ******" >> $LOGFILEDBVALUE is coming as null and I am getting the error.
    HOwever, If I execute the script alone as below it is returning the values. I don't think there is issue with credentials.
    checkdbtoproceedjob ODS_LOAD FORWARDARTICLE
    checkdbtoproceedejob
    #! /bin/bash
    . config
    set -x
    checkdbtoproceedjob()
    CONTROLFLAG=`sqlplus -s $CONNSTRODS << EOF
    whenever sqlerror exit sql.sqlcode
    set TRIMSPOOL ON
    set serveroutput on
    set pagesize 0 feedback off verify off heading off echo off
    declare
    pv_control_flag varchar2(50);
    pv_feed_name varchar2(100) := '$2';
    pv_job_name varchar2(100) := '$1';
    begin
    SP_CHECK_PROCEED_JOB(pv_job_name,pv_feed_name,pv_control_flag);
    dbms_output.put_line(pv_control_flag);
    end;
    exit;
    EOF`
    checkdbtoproceedjob $1 $2
    echo $CONTROLFLAG
    set +x
    exit 0am i doing something wrong? Please let me know.
    Regards
    Nagaraja Akkiivalli.
    Edited by: Nagaraja Akkivalli on Mar 28, 2012 1:50 PM

  • Failed to create DNS with ODBC Datadirect Driver - error missing or invalid option

    Dear All,
    I tried to post a first time and get my post thrown away. So please just tell me if that's not the place to post such questions. I tried this forum because I didn't find any revelant information yet on internet.
    I installed Informatica and Oracle 11g, tried to create my DSN with the Driver DataDirect Oracle Wire Protocol. I keep bumping into the message " [Informatica][ODBC Oracle wire protocol driver][Oracle] ora-00922: missing or invalid option".
    Can you please help to understand where the error comes from?
    Here are my current status :
    * My table in the Oracle database is created with every field followed by NOT NULL option, the table is successfully created.
    * The connection to the Oracle database using Oracle TNSNames Connection server name and TNSNames files seem to work, I tried to connect with another driver Oracle in OraDB 11g_home1. This one succeeds.
    * Listener.ora:
    # listener.ora Network Configuration File: C:\app\ql186003\product\11.2.0\dbhome_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = C:\app\ql186003\product\11.2.0\dbhome_1)
          (PROGRAM = extproc)
          (ENVS = "EXTPROC_DLLS=ONLY:C:\app\ql186003\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    ADR_BASE_LISTENER = C:\app\ql186003
    * Running lsnrctl STATUS:
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Production
    Start Date                22-FEB-2014 21:43:22
    Uptime                    0 days 1 hr. 8 min. 33 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   C:\app\ql186003\product\11.2.0\dbhome_1\network\admin\listener.ora
    Listener Log File         c:\app\ql186003\diag\tnslsnr\WBEQL186003-Q4G\listener\alert\log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
      Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "TESTDBXDB" has 1 instance(s).
      Instance "testdb", status READY, has 1 handler(s) for this service...
    Service "TEST_DB" has 1 instance(s).
      Instance "testdb", status READY, has 1 handler(s) for this service...
    Service "orcl.TD.TERADATA.COM" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB.TD.TERADATA.COM" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    Thank you very much for any guidance.
    Qiong

    Hi,
    Try this :
    While creating TYPE remove semi colon from end of the statement and also dont use extra / as / means execute last statement so you may encounter error..
    CREATE TYPE ind_tab_supplier1 IS VARRAY(6) OF VARCHAR2(30)
    /

  • SP2-0714: invalid combination of STARTUP options

    Hi;
    I have oracle 9.2.0.8 db on solaris. I am following one document and it mention below step:
    SQL> conn / as sysdba
    SQL> Shutdown Immediate;
    SQL> Startup upgrade;
    When i run starup upgrade it through:
    SP2-0714: invalid combination of STARTUP options
    I have spfile what is that error ? I could not find anything in metalink

    SQL> Startup upgrade;
    When i run starup upgrade it through:
    SP2-0714: invalid combination of STARTUP optionsIn 9i you have to use startup migrate and there do not available upgrade option.
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96530/upgrade.htm#1009472
    Edited by: Chinar on Oct 25, 2010 2:35 AM

  • ORA-00922: missing or invalid option

    I am using oracle 10g datbase.
    and trying to create a list of tables of 300 tables - a sampel is given below
    CREATE TABLE "SCHM1"."HOLIDAYS"
    ( "DATE" DATE NOT NULL ENABLE,
    "DESCR" VARCHAR2(40),
    "EXTRA_HOURS" NUMBER(2,0),
    "HOLIDAY_GROUP" VARCHAR2(5) NOT NULL ENABLE,
    "CREATED_BY" VARCHAR2(12),
    "CREATED_ON" DATE,
    "AMENDED_BY" VARCHAR2(12),
    "AMENDED_ON" DATE,
    CONSTRAINT "BANK_HOLIDAYSP1" PRIMARY KEY ("DATE", "HOLIDAY_GROUP")
    USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 32768 NEXT 32768 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "SCHM1_REF_INDEXES1" ENABLE
    ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 32768 NEXT 32768 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "SCHM1_REF_DATA1"
    CREATE TABLE "SCHM1"."LODGEMENT"
    ( "BANK_LODGEMENT" NUMBER(10,0) NOT NULL ENABLE,
    "LODGEMENT_SLIP" NUMBER(12,0),
    "BRANCH" NUMBER(4,0),
    "EMPLOYEE" VARCHAR2(12),
    "LODGEMENT_DATIM" DATE,
    "SYS_DATIM" DATE,
    "TILL_DAT" DATE,
    "POSTED_FLG" VARCHAR2(1),
    "EMERGENCY_FLG" VARCHAR2(1),
    "CREATED_BY" VARCHAR2(12),
    "CREATED_ON" DATE,
    "AMENDED_BY" VARCHAR2(12),
    "AMENDED_ON" DATE,
    "LODGEMENT_GRP" NUMBER,
    CONSTRAINT "BANK_LODGEMENTP1" PRIMARY KEY ("BANK_LODGEMENT")
    USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 32768 NEXT 32768 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "SCHM1_INDEXES10" ENABLE
    ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 32768 NEXT 32768 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "SCHM1_DATA10"
    when I executed this in sql window i get the error:
    ORA-00922: missing or invalid option
    when I run it from command prompt ,
    i get error like
    SP2-0734: unknown command beginning "USING INDE..." - rest of line ignored.
    SP2-0734: unknown command beginning "STORAGE(IN..." - rest of line ignored.
    SP2-0734: unknown command beginning "PCTINCREAS..." - rest of line ignored.
    SP2-0734: unknown command beginning "TABLESPACE..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    and it doesn't create the table. CAn someone let em know how I to create log of errors on execution so taht the session can be resumed and also
    help me in finding the error in this.
    Cheers
    Edited by: user1000979 on 02-Sep-2009 06:50

    Hi!
    there is just missing a sql terminator between the statements ...
    it is not a internal sql language ...
    i have no problems when execute it in sql*plus.
    tested with oracle 8i and XE
    CREATE TABLE "SCHM1"."HOLIDAYS"
    ( "DATE" DATE NOT NULL ENABLE,
    "DESCR" VARCHAR2(40),
    "EXTRA_HOURS" NUMBER(2,0),
    "HOLIDAY_GROUP" VARCHAR2(5) NOT NULL ENABLE,
    "CREATED_BY" VARCHAR2(12),
    "CREATED_ON" DATE,
    "AMENDED_BY" VARCHAR2(12),
    "AMENDED_ON" DATE,
    CONSTRAINT "BANK_HOLIDAYSP1" PRIMARY KEY ("DATE", "HOLIDAY_GROUP")
    USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 32768 NEXT 32768 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "SCHM1_REF_INDEXES1" ENABLE
    ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 32768 NEXT 32768 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "SCHM1_REF_DATA1"
    CREATE TABLE "SCHM1"."LODGEMENT"
    ( "BANK_LODGEMENT" NUMBER(10,0) NOT NULL ENABLE,
    "LODGEMENT_SLIP" NUMBER(12,0),
    "BRANCH" NUMBER(4,0),
    "EMPLOYEE" VARCHAR2(12),
    "LODGEMENT_DATIM" DATE,
    "SYS_DATIM" DATE,
    "TILL_DAT" DATE,
    "POSTED_FLG" VARCHAR2(1),
    "EMERGENCY_FLG" VARCHAR2(1),
    "CREATED_BY" VARCHAR2(12),
    "CREATED_ON" DATE,
    "AMENDED_BY" VARCHAR2(12),
    "AMENDED_ON" DATE,
    "LODGEMENT_GRP" NUMBER,
    CONSTRAINT "BANK_LODGEMENTP1" PRIMARY KEY ("BANK_LODGEMENT")
    USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 32768 NEXT 32768 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "SCHM1_INDEXES10" ENABLE
    ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 32768 NEXT 32768 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "SCHM1_DATA10"
    /Regards

  • "ORA-02248: invalid option for ALTER SESSION" -- Urgent request

    Hi All,
    We use Discoverer 3.1.36.06 and are in middle of a 3i to 10g upgrade for Discoverer for a data warehouse setup. Our databases where upgraded to 10g from 9i and now we get the error message saying:
    "ORA-02248: invalid option for ALTER SESSION"
    I got some very helpful info abt the prob from the link below.
    Discoverer 3i Issue with 10.2.0.3 - ORA-02248
    We are mid way through the 3i to 10g upgrade and just need a quick fix for the next 2-3 weeks while the upgrade is finished.
    Does any one know if changing the NLS language and applying the post longon trigger on Database id's would help in resolving this connection issue temporarily.
    Any advice is deeply appreciated.
    Thanks.
    Edited by: Paul S on Dec 15, 2008 3:01 PM Corrected the link

    Hi,
    There are two types of trigger you can use: database triggers and discoverer triggers. You probably want to use a database trigger.
    If you are using an APPS mode EUL (ie. logging using Applications username/passwords) then you will be logging in as the APPS database user and the syntax is:
    create or replace trigger APPS.disco_logon_trigger after logon ON APPS.SCHEMA
    begin dbms_session.set_nls('nls_date_format', '''DD-MON-YYYY'''); end;
    If it is a database EUL and the database user is gl_inq then the syntax would be
    create or replace trigger gl_inq.disco_logon_trigger after logon ON gl_inq.SCHEMA
    begin dbms_session.set_nls('nls_date_format', '''DD-MON-YYYY'''); end;
    Rod West

  • While creating Table it shows error as 'missing or invalid option

    I had log on to ap/ap@vis in sqlplus and try to create table but showing error.....here below is the table
    Create table Purchase_Order
    (Item varchar2(10),
    Item_Desc varchar2(100),
    Item_Cost Number(7),
    Item_Qty Number(7),
    Item_Date Date,
    Need_by_date date,
    Last_updated_date date,
    last_updated_by number(10),
    creation_date date,
    created_by number(10),
    Attributed_category varchar2(100),
    attribute1 varchar2(100),
    attribute2 varchar2(100),
    attribute3 varchar2(100),
    attribute4 varchar2(100),
    attribute5 varchar2(100),
    attribute6 varchar2(100));
    But it showing error as ORA-00922:missing or invalid option

    It works for me
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> Create table Purchase_Order
      2  (Item varchar2(10),
      3  Item_Desc varchar2(100),
      4  Item_Cost Number(7),
      5  Item_Qty Number(7),
      6  Item_Date Date,
      7  Need_by_date date,
      8  Last_updated_date date,
      9  last_updated_by number(10),
    10  creation_date date,
    11  created_by number(10),
    12  Attributed_category varchar2(100),
    13  attribute1 varchar2(100),
    14  attribute2 varchar2(100),
    15  attribute3 varchar2(100),
    16  attribute4 varchar2(100),
    17  attribute5 varchar2(100),
    18  attribute6 varchar2(100));
    Table created.
    SQL>

  • ORA - 00922 Missing or Invalid option error while creating table

    I am tryin to create a table with the following syntax
    1 CREATE TABLE TEST_FOR_SCRIPT (
    2 TEST_A NUMBER NOT NULL
    3 ,TEST_B VARCHAR2(30) DEFAULT 'UNDEFINED' NOT NULL
    4 )
    5* @storage_parms_table_cmn
    6 /
    @storage_parms_table_cmn
    ERROR at line 5:
    ORA-00922: missing or invalid option
    Here, storage_parms_table_cmn.sql reads like this
    tablespace DBK_CMN_DATA
    Can anyone please guide me how to overcome this error.

    What is your Oracle Version?
    i can do it exactly what you did without error
    sql> CREATE TABLE vd.TEST_FOR_SCRIPT (
    2 TEST_A NUMBER NOT NULL
    3 ,TEST_B VARCHAR2(30) DEFAULT 'UNDEFINED' NOT NULL
    4 )
    5 @test1.sql
    6 /
    Table created.
    Cheers
    http://fiedizheng.blogspot.com/

  • IFS Install (Config) Fails with "ORA-00922: missing or invalid option"

    Greetings:
    Thanks for your help in advance...
    Towards the end of IFS installation, I get the following error in my
    IfsConfigOut.log file (This happens towards the end of the installation). I
    am Installing IFS on Oracle 9i (9.0.1.1 version) instance on Win 2K (P-III,
    800Mhz, 512Mb) . After this installation error, all the 9iFS directories
    and nodes are detected under OEM but when I start the domain I get no
    response for the same.
    ConfigOut File pasted below
    CONFIGURATION: SCHEMA CREATION TYPE
    Configuring Oracle Internet File System 9.0.1.1.0 configuration started on:
    Mon May 20 09:45:28 GMT+05:30 2002
    saving user configuration settings to file:
    saving:E:\oracle\ora90\9ifs\settings\oracle\ifs\installer\properties\IfsConf
    ig.properties
    saving:
    E:\oracle\ora90\9ifs\settings\oracle\ifs\server\properties\IfsDefault.proper
    ties
    Old schema name in IfsDefault.properties file = ifssys
    New schema name pointing to now = IFSSYS
    Create Schema = true
    Upgrading Schema = false
    Pointing to same schema as the old entry in IfsDefault.properties file =
    true
    Checking DC entries
    RUN DC = true
    Adding section for DC as there does not exist a section already
    Checking Node entries
    RUN NODE = true
    Adding Node section = Node
    saving: E:\oracle\ora90\9ifs\settings\Node.def
    saving: E:\oracle\ora90\9ifs\settings\HttpNode.def
    saving: E:\oracle\ora90\9ifs\settings\DomainController.def
    executing command:
    Empty command. Not executing
    executing command:
    Empty command. Not executing
    executing command:
    Empty command. Not executing
    creating database user (schema): IFSSYS
    java.sql.SQLException: ORA-00922: missing or invalid option
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180)
         at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java, Compiled
    Code)
         at oracle.jdbc.oci8.OCIDBAccess.executeFetch(OCIDBAccess.java, Compiled
    Code)
         at oracle.jdbc.oci8.OCIDBAccess.parseExecuteFetch(OCIDBAccess.java,
    Compiled Code)
         at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java,
    Compiled Code)
         at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java,
    Compiled Code)
         at
    oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java
    , Compiled Code)
         at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java,
    Compiled Code)
         at oracle.ifs.utils.sql.SQLCommands.createUser(SQLCommands.java:352)
         at
    oracle.ifs.installer.IfsConfiguration$CreateSchemaAction.createIfsSchema(Ifs
    Configuration.java:546)
         at
    oracle.ifs.installer.IfsConfiguration$CreateSchemaAction.perform(IfsConfigur
    ation.java:476)
         at oracle.ifs.utils.action.ActionQueue.performActions(ActionQueue.java,
    Compiled Code)
         at oracle.ifs.utils.action.ActionQueue.run(ActionQueue.java:230)
         at java.lang.Thread.run(Thread.java:479)
    recording that configuration failed
    saving:E:\oracle\ora90\9ifs\settings\oracle\ifs\installer\properties\IfsConf
    ig.properties
    iFS configuration failed; the following error occurred:
    oracle.ifs.utils.action.ActionFailedException: java.sql.SQLException:
    ORA-00922: missing or invalid option
         at
    oracle.ifs.installer.IfsConfiguration$CreateSchemaAction.perform(IfsConfigur
    ation.java:526)
         at oracle.ifs.utils.action.ActionQueue.performActions(ActionQueue.java,
    Compiled Code)
         at oracle.ifs.utils.action.ActionQueue.run(ActionQueue.java:230)
         at java.lang.Thread.run(Thread.java:479)
    configuration failed on Mon May 20 09:45:35 GMT+05:30 2002

    Problem is Fixed !!!
    We were having this problem because IFS installation was not recognising a separate tablespace which we created for IFS, so we started using default USERS tablespace after which the installation was successful.
    Thanks.

  • ORA-00922: missing or invalid option in create seq, trigger

    Hi All,
    I am trying to create a table, sequence, and trigger with the following SQL and am getting the error:
    ORA-00922: missing or invalid option
    CREATE TABLE "DATA_INVENTORY"
    (     "ID" INTEGER NOT NULL ENABLE,
         "COE_CONTRACT_NUM" VARCHAR2(30),
         "PROJ_AREA" VARCHAR2(30),
         "STATE" VARCHAR2(30),
         "DATA_DATE" VARCHAR2(30) NOT NULL ENABLE,
         "NUM_OF_MEDIA" NUMBER,
         "DATA_TYPE" VARCHAR2(30)NOT NULL ENABLE,
         "MEDIA_TYPE" VARCHAR2(30)NOT NULL ENABLE,
         "EXTERNAL_DRIVE_DESCR" VARCHAR2(200),
         "ROOM_NUM" VARCHAR2(10)NOT NULL ENABLE,
         "DRAWER_NUM" VARCHAR2(30),
         "PROJ_CODE" VARCHAR2(30),
         "COMPANY" VARCHAR2(30),
         "DESCRIPTION" VARCHAR2(200),
         "NOTES" VARCHAR2(500),
         "INDEX" VARCHAR2(30),
         "INDEX_LINK" VARCHAR2(75),
         "DATA_LINK" VARCHAR2(75),
         "METADATA" VARCHAR2(75),
         "METADATA_LINK" VARCHAR2(75),
         "DISTRIBUTE" VARCHAR2(30)NOT NULL ENABLE,
         "CORPORATE" VARCHAR2(1)NOT NULL ENABLE,
         CONSTRAINT "DATA_INVENTORY_PK" PRIMARY KEY ("ID") ENABLE,
         CONSTRAINT "DATA_INVENTORY_UK1" UNIQUE ("COE_CONTRACT_NUM", "PROJ_AREA") ENABLE
    CREATE SEQUENCE "DATA_INVENTORY_SEQ" MINVALUE 1 MAXVALUE 999999999999999999999999999 INCREMENT BY 1 START WITH 324 CACHE 20 NOORDER NOCYCLE
    CREATE OR REPLACE TRIGGER "BI_DATA_INVENTORY"
    before insert on "DATA_INVENTORY"
    for each row
    begin
    select "DATA_INVENTORY_SEQ".nextval into :NEW.ID from dual;
    end;
    ALTER TRIGGER "BI_DATA_INVENTORY" ENABLE
    Does anyone see anything wrong with this?
    The create table part is alright but when I add the create sequence etc it causes the error
    Thanks,
    Kirk

    Hello Kirk,
    Your code work likes a charm. Check your privileges for creating sequences and triggers.
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    http://www.bloggingaboutoracle.org/
    http://www.logica.com/

  • Cannot open registry key and /usr/bin/lib: invalid option --N patch 7237313

    Hi,
    I am trying to install autoconfig TXK patch 7237313 for cloning an EBS 12 on windows server 2003.
    When I run adpatch it returns 2 errors:
    *1 -*
    setEnvAdrelink: Error: Cannot open registry key:
    SOFTWARE\ORACLE
    *2 -*
    Relinking module 'CONCSUB.exe' in product fnd ...
    gnumake -f E:/oracle/PROD/apps/apps_st/appl/admin/PROD/out/link_fnd_2548.mk E:/o
    racle/PROD/apps/apps_st/appl/fnd/12.0.0/bin/CONCSUB.exe
    Starting link of fnd executable 'CONCSUB.exe' on Fri Feb 5 09:25:07 SAST 2010
    /usr/bin/lib: invalid option -- N
    Try `/usr/bin/lib --help' for more information.
    E:/oracle/PROD/apps/apps_st/appl/admin/PROD/out/link_fnd_2548.mk:2901: warning:
    overriding commands for target `E:/oracle/PROD/apps/apps_st/appl/fnd/12.0.0/bin/
    CMDCART.dll'
    E:/oracle/PROD/apps/apps_st/appl/admin/PROD/out/link_fnd_2548.mk:752: warning: i
    gnoring old commands for target `E:/oracle/PROD/apps/apps_st/appl/fnd/12.0.0/bin
    /CMDCART.dll'
    E:/oracle/PROD/apps/apps_st/appl/admin/PROD/out/link_fnd_2548.mk:2948: warning:
    overriding commands for target `E:/oracle/PROD/apps/apps_st/appl/fnd/12.0.0/bin/
    FNDRTR45.exe'
    E:/oracle/PROD/apps/apps_st/appl/admin/PROD/out/link_fnd_2548.mk:1333: warning:
    ignoring old commands for target `E:/oracle/PROD/apps/apps_st/appl/fnd/12.0.0/bi
    n/FNDRTR45.exe'
    link.exe -MAP:E:/oracle/PROD/apps/apps_st/appl/fnd/12.0.0/bin/CONCSUB.map -NODEF
    AULTLIB -NOLOGO -SUBSYSTEM:CONSOLE -ENTRY:mainCRTStartup -OUT:E:/oracle/PROD/app
    s/apps_st/appl/fnd/12.0.0/bin/CONCSUB.exe E:/oracle/PROD/apps/apps_st/appl/fnd/1
    2.0.0/lib/fdpocr.obj \
    E:/oracle/PROD/apps/apps_st/appl/fnd/12.0.0/lib/FNDCORE.lib E:/oracle/PR
    OD/apps/tech_st/10.1.2/precomp/lib/msvc/orasql10.lib E:/oracle/PROD/apps/tech_st
    /10.1.2/precomp/lib/msvc/orasqx10.lib E:/oracle/PROD/apps/tech_st/10.1.2/RDBMS/l
    ib/oraclient10.lib E:/oracle/PROD/apps/tech_st/10.1.2/RDBMS/lib/oracommon10.lib
    E:/oracle/PROD/apps/tech_st/10.1.2/NETWORK/lib/oranro10.lib E:/oracle/PROD/apps/
    tech_st/10.1.2/NETWORK/lib/oran10.lib E:/oracle/PROD/apps/tech_st/10.1.2/NETWORK
    /lib/oranl10.lib E:/oracle/PROD/apps/tech_st/10.1.2/lib/oranls10.lib E:/oracle/P
    ROD/apps/tech_st/10.1.2/lib/oracore10.lib /LIB/MSVCRT.LIB /LIB/OLDNAMES.LIB /P
    latformSDK/LIB/KERNEL32.LIB /PlatformSDK/LIB/USER32.LIB /PlatformSDK/LIB/ADVAPI3
    2.LIB /PlatformSDK/LIB/WINSPOOL.LIB /PlatformSDK/LIB/COMDLG32.LIB /PlatformSDK/L
    IB/GDI32.LIB /PlatformSDK/LIB/VERSION.LIB
    link: invalid option -- M
    Try `link --help' for more information.
    gnumake: *** [E:/oracle/PROD/apps/apps_st/appl/fnd/12.0.0/bin/CONCSUB.exe] Error
    1
    Done with link of fnd executable 'CONCSUB.exe' on Fri Feb 5 09:25:08 SAST 2010
    Relink of module "CONCSUB.exe" failed.
    See error messages above (also recorded in log file) for possible
    reasons for the failure. Also, please check that the Unix userid
    running adrelink has read, write, and execute permissions
    on the directory E:/oracle/PROD/apps/apps_st/appl/fnd/12.0.0/bin,
    and that there is sufficient space remaining on the disk partition
    containing your Oracle Applications installation.
    egrep version is 2.5.1 and gnumake is 3.80.
    please help,
    regards,
    Hassane Cabir

    Hi,
    Are the application services down?
    setEnvAdrelink: Error: Cannot open registry key:
    SOFTWARE\ORACLEyes, the services are down, using adstpall.cmd and Maintenance mode enabled using adadmin.
    Get the version 3.80-1 of the make file -- See (Note: 414992.1 - Using Cygwin to Maintain Oracle E-Business Suite Release 12 on Windows).The make is already 3.80-1.
    regards,
    Hassane Cabir

  • ORA-02248: invalid option for ALTER SESSION when logging in from client

    Hi,
    I am a junior dba and I was hoping if someone could help me out with a problem I am having. I recently installed on oracle 10g client on my windows machine. I am trying to remote connect to my database on a unix box but I am getting the below error when trying to connect from the client.
    ERROR:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-02248: invalid option for ALTER SESSION
    I've done some digging around on this and I think it might be something to do with the NLS_LANG setting maybe. I'm not sure though and to be honest I'm a bit lost on this.
    Any help would be greatly appreciated. Cheers.
    Rgs,
    Rob

    Please see below
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE 11.2.0.1.0 Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production

  • Invalid option for MAP: MAP.

    Hi ,
    My replication file is running fine with below contents
    MAP PROD.f0911, TARGET PROD.f0911, &
    REPERROR (21000, EXCEPTION), &
    SQLEXEC (ID lookup, ON UPDATE, &
    QUERY "select count(*) conflict from PROD.f0911 where ID_NO = :p1 and &
    UPDT_DT > :p2", &
    PARAMS ( p1 = ID_NO, p2 = UPDT_DT ), BEFOREFILTER, ERROR REPORT, &
    TRACE ALL),&
    FILTER (lookup.conflict = 0, ON UPDATE, RAISEERROR 21000);
    MAP PROD.f0911, TARGET PROD.f0911_EI, EXCEPTIONSONLY, &
    INSERTALLRECORDS, &
    COLMAP (USEDEFAULTS ,
    dberr = @GETENV ("lasterr", "dberrnum");
    REPERROR (-1403, EXCEPTION)
    MAP PROD.f0911, TARGET PROD.f0911_EI,
    EXCEPTIONSONLY,
    INSERTALLRECORDS,
    COLMAP (USEDEFAULTS,
    dberr = @GETENV ("lasterr", "dberrnum");
    But when I am adding
    MACRO #exception_handler
    BEGIN
    ,TARGET PROD.f0911
    ,UPDATEINSERTS
    ,EXCEPTIONSONLY
    END;
    REPERROR (-1, EXCEPTION)
    MAP PROD.f0911, TARGET PROD.f0911;
    MAP PROD.f0911 #exception_handler()
    It is throwing error ---- ERROR OGG-00212 Invalid option for MAP: MAP.
    Can somebody please help how can I proceed with all the conditions.
    Thanks

    As per our requirement if there is "0001 -unique constraint violated" error while replication the insert record should be update in target table .So I have used
    UPDATEINSERT statement iin macro and it goes to the same main table but for others it has mapped to EXCEPTION table prodf0911_EI , so the record will go to exception table .But we need the record should go to main table and insert record should update in target table only in case of 0001 - unique key constraint violated error.

  • Error ORA-02248 invalid option for ALTER SESSION

    Hi All,
    I'm using windows vista.I have installed oracle database 11g.Now, SQL Developer is working fine in this.I gave the sid as orcl and gave my username and password in sqldeveloper and it works.
    But the host string is not working in forms and sql plus.How do i know which host string i should give??I came to know that the tnsnames.ora which is present in the oracle home directory should be copied to forms directory also.I did that too but still forms,reprorts and sql plus are not working.I get two errors namely ORA-02248 invalid option for ALTER SESSION and TNS could not resolve service name .Pls suggest how to proceed.Thanks in advance....
    Regards,
    Gowtham

    Unfortunately you forgot to mention forms/reports version. Currently only one Developer Suite version is certified on Vista running 11g,don't ignore software/hardware requirements.
    It's 10.1.2.0.2 and that package requires additionally patch 6153263.
    Werner

  • SP2-0226: Invalid line number

    How can I look up error codes? Also, does anybody know what this means? It doesn't seem to affect the way the procedure runs.

    How can I look up error codes?http://www.oracle.com/pls/db92/db92.error_search?remark=homepage&prefill=ORA-
    As you can see below, there is no line number 10 in the current SQL buffer to goto.
    hence the error.
    SQL> select
      2  *
      3  from
      4  scott.emp
      5  where
      6  rownum < 10 ;
         EMPNO ENAME      JOB              MGR HIREDATE           SAL       COMM     DEPTNO
          7369 SMITH      CLERK           7902 17-DEC-1980        800                    20
          7499 ALLEN      SALESMAN        7698 20-FEB-1981       1600        300         30
          7521 WARD       SALESMAN        7698 22-FEB-1981       1250        500         30
          7566 JONES      MANAGER         7839 02-APR-1981       2975                    20
          7654 MARTIN     SALESMAN        7698 28-SEP-1981       1250       1400         30
          7698 BLAKE      MANAGER         7839 01-MAY-1981       2850                    30
          7782 CLARK      MANAGER         7839 09-JUN-1981       2450                    10
          7788 SCOTT      ANALYST         7566 19-APR-1987       3000                    20
          7839 KING       PRESIDENT            17-NOV-1981       5000                    10
    9 rows selected.
    SQL> l10
    SP2-0226: Invalid line number
    SQL>Message was edited by:
    Kamal Kishore

Maybe you are looking for

  • How to install printers in macbook air/add printers

    i am trying to install a fujixerox printer  using CD's with BUFFALO Portable dvd but it cant identify or read the CD. and i also got a error message saying that it cant run the prog. in DOS mode. what does it mean? how could i adddifferent printers i

  • Cisco NCS and ACS 4.2

    I've been playing with this all morning and can't seem to make it work. I have the new NCS1.0.2 and older ACS 3.2 and 4.2...I want to be to login to NCS using Tacacs vice local logins is this possible with the older ACS or do I need to upgrade ?

  • Webservice called from inside of Workspace

    Hi There, I have created a simple PDF which uses the LDAP service to lookup somebodies manager from their email address. For testing purposes I have put a script in the form-ready event of the field which contains the email address. This works perfec

  • Error while running scheduled batch book

    I'm receiving this error while trying to produce a large book through a scheduled batch within Workspace. The version is EPM 11.1.1.3 Status for various save options for "Cable and Communications/... BUDGET SUBMISSION .../.. SUBMISSION PACKAGES ../00

  • Try to open itunes it says "itunes does not appear to be a valid music file

    i've uninstalled itunes before and reinstalled it off of the internet and i try to open it and it says "the file "itunes library.itl" does not appear to be a valid music library file. itunes has attempted to recover your music library and renamed thi