with master as * ERROR at line 1: ORA-01762: vopdrv: query not in FROM block

with master as 
(
  select lbrcode,prdacctid,dateclosed,dateopen custno from masters
  where  dateclosed>=to_date('30-Sep-2014','DD-MON-YYYY')
)
,
limit as 
(
  select totsanclimit,expdate ,lbrcode,prdacctid
            from
            (
            select limits.*,
             rank() over (partition by lbrcode,prdacctid order by efffromdate desc) as rnk
             from limits where efffromdate<=to_date('30-Sep-2014','DD-MON-YYYY')
            )where rnk=1
)
,
got_closing_balance AS 
(
      SELECT prdacctid, lbrcode, balance1, balance2, balance3
            , balance4, balance5, balance6, balance7
           , RANK () OVER (PARTITION BY lbrcode, prdacctid ORDER BY cbldate DESC) AS rnk
             FROM balances
        WHERE cbldate<=to_date('30-Sep-2014','DD-MON-YYYY') 
  and t_module_new(prdacctid,lbrcode)=30
   )
,
rec as 
(
  select * 
  from(
  SELECT 
  LBRCODE,
  MAINACCTID,
  FCYTRNAMT,
  VCRACCTID,
  DRCR,
  ENTRYDATE,
  cashflowtype,
  activitytype,mainmodtype,
                (case when (cashflowtype='LNPCR' or cashflowtype='LNOCHCR') then 'prn_rec'
                when (cashflowtype<>'LNPCR' and trim(substr(vcracctid,1,8))='INTREC') then 'int_rec'
                        ELSE 'NOT_TO_BE_CONSIDERED'END)AS REMARK 
                 FROM transactions
                 WHERE 
  POSTDATE BETWEEN to_date('01-Apr-2014','DD-MON-YYYY') AND TO_DATE(' 30-Sep-2014','DD-MON-YYYY')
                 and canceledflag<>'C'
                 and drcr='C' and mainmodtype in (30)
  ) where remark!='NOT_TO_BE_CONSIDERED'
)
select 
m.lbrcode,
m.prdacctid,m.custno,
l.totsanclimit
from master m
join limit l on m.lbrcode=l.lbrcode and m.prdacctid=l.prdacctid
join got_closing_balance g on m.lbrcode=g.lbrcode and m.prdacctid=g.prdacctid
and m.lbrcode=25
--and T_MODULE_NEW(m.prdacctid,m.lbrcode) in (30) 
 and g.rnk=1
/



guess it's because you have not used "REC" either in your hand or a with clause - I remember that "earlier" version had a problem with this considering that current versions don't

HTH

Tags: Database

Similar Questions

  • Database does not start... ALTER database open; change the database open * ERROR at line 1: ORA-03113: end of file on the channel of communication process ID: 10400 Session ID: 418 serial number: 3 -.

    HI during startup of the database of the following errors is. Please help solve the problem.

    SQL > alter database open;

    change the database open * ERROR at line 1: ORA-03113: end of file on the channel of communication process ID: 10400 Session ID: 418 serial number: 3 -.

    ============================================================

    Please see the alerts log entries

    --------------------------------------------------------------------------------------------------------------------------------

    Commissioning:

    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

    With the options of partitioning, OLAP, Data Mining and Real Application Testing.

    Using parameters in spfile D:\APP\ADMINISTRATOR\PRODUCT\11.2.0\DBHOME_1\DATABASE\SPFILEATTNDPRD server-side. ORA

    Parameters of the system with default values:

    process = 400

    sessions = 624

    memory_target = 4G

    control_files = 'D:\ORACLE\ORADATA\ATTNDPRD\CONTROLFILE\O1_MF_8LRQYB0M_. CTL.

    control_files = 'C:\ORACLE\ORADATA\ATTNDPRD\CONTROLFILE\O1_MF_8LRQYB13_. CTL.

    DB_BLOCK_SIZE = 8192

    compatible = "11.2.0.0.0."

    log_archive_format = "ARC%S_%R.%T."

    db_create_file_dest = 'D:\oracle\oradata. '

    db_create_online_log_dest_1 = "D:\oracle\oradata".

    db_create_online_log_dest_2 = "C:\oracle\oradata".

    db_recovery_file_dest = 'C:\oracle\oradata\flash_area. '

    db_recovery_file_dest_size = 8G

    undo_tablespace = 'UNDOTBS1.

    Remote_login_passwordfile = "EXCLUSIVE."

    db_domain = «»

    dispatchers = "(PROTOCOL=TCP) (SERVICE = ATTNDPRDXDB)" "

    audit_file_dest = "D:\APP\ADMINISTRATOR\ADMIN\ATTNDPRD\ADUMP".

    AUDIT_TRAIL = 'DB '.

    db_name = "ATTNDPRD".

    open_cursors = 300

    diagnostic_dest = "D:\APP\ADMINISTRATOR".

    Sun 24 May 13:43:09 2015

    PMON started with pid = 2, OS id = 5792

    Sun 24 May 13:43:09 2015

    VKTM started with pid = 3, OS id = 6500 high priority

    VKTM clocked at (10) precision of milliseconds with DBRM quantum (100) ms

    Sun 24 May 13:43:09 2015

    GEN0 started with pid = 4, OS id = 13072

    Sun 24 May 13:43:09 2015

    DIAG started with pid = 5, OS id = 1424

    Sun 24 May 13:43:09 2015

    DBRM started with pid = 6, OS id = 8240

    Sun 24 May 13:43:09 2015

    PSP0 started with pid = 7, OS id = 2980

    Sun 24 May 13:43:09 2015

    DIA0 started with pid = 8, OS id = 12956

    Sun 24 May 13:43:09 2015

    MA started with pid = 9, OS id = 13356

    Sun 24 May 13:43:09 2015

    DBW0 started with pid = 10, OS id = 14248

    Sun 24 May 13:43:09 2015

    DBW1 started with pid = 11, OS id = 17900

    Sun 24 May 13:43:09 2015

    LGWR started with pid = 12, OS id = 5564

    Sun 24 May 13:43:09 2015

    CKPT started with pid = 13, OS id = 16736

    Sun 24 May 13:43:09 2015

    SMON started with pid = 14, OS id = 14068

    Sun 24 May 13:43:09 2015

    RECCE has started with pid = 15, OS id = 16288

    Sun 24 May 13:43:09 2015

    MMON started with pid = 16, OS id = 10884

    commissioning 1 dispatcher (s) for '(ADDRESS =(PARTIAL=YES) (PROTOCOL = TCP))' network address...

    commissioning or shared server 1...

    Environment ORACLE_BASE = D:\app\Administrator

    Sun 24 May 13:43:09 2015

    ALTER DATABASE MOUNT

    Sun 24 May 13:43:09 2015

    MMNL started with pid = 17, OS id = 16128

    Mount of redo thread 1, with mount id 3325657453

    Database mounted in exclusive Mode

    Disabled lost write protect

    Completed: ALTER DATABASE MOUNT

    Sun 24 May 13:43:23 2015

    change the database open

    Sun 24 May 13:43:23 2015

    LGWR: FROM PROCESS ARCH

    Sun 24 May 13:43:23 2015

    Arc0 started with pid = 21, OS id = 10084

    Arc0: Started archiving

    LGWR: FROM PROCESS ARCH COMPLETE

    ARC0: FROM PROCESS ARCH

    Sun 24 May 13:43:24 2015

    Arc1 started with pid = 22, OS id = 18400

    Sun 24 May 13:43:24 2015

    ARC2 started with pid = 23, OS id = 17280

    Arc1: Started archiving

    ARC2: Started archiving

    Arc1: become the "no FAL' ARCH

    Arc1: become the "no SRL" ARCH

    ARC2: Become the heartbeat ARCH

    Errors in the d:\app\administrator\diag\rdbms\attndprd\attndprd\trace\attndprd_ora_10400.trc file:

    ORA-19815: WARNING: db_recovery_file_dest_size 8589934592 bytes is 100.00% used and has 0 bytes remaining available.

    ************************************************************************

    You have choice to free up space in the recovery area:

    1 consider changing STRATEGY OF RETENTION of RMAN. If you are using Data Guard

    then consider changing POLICY of DELETE ARCHIVELOG RMAN.

    2 back up files on a tertiary device such as a tape with RMAN

    SAFEGUARDING RECOVERY AREA command.

    3. Add space drive and increase the db_recovery_file_dest_size setting to

    reflect the new space.

    4 remove the unnecessary files using the RMAN DELETE command. If a service

    the system control has been used to remove the files, and then use the RMAN DUPLICATION and

    Commands DELETE has EXPIRED.

    ************************************************************************

    Errors in the d:\app\administrator\diag\rdbms\attndprd\attndprd\trace\attndprd_ora_10400.trc file:

    ORA-19809: limit exceeded for file recovery

    ORA-19804: cannot recover disk 44571136 bytes limit 8589934592 space

    ARCH: 19809 error creating archive log file to ' C:\ORACLE\ORADATA\FLASH_AREA\ATTNDPRD\ARCHIVELOG\2015_05_24\O1_MF_1_10343_%U_. ARC'

    Errors in the d:\app\administrator\diag\rdbms\attndprd\attndprd\trace\attndprd_ora_10400.trc file:

    ORA-16038: log 2 # 10343 sequence can be archived

    ORA-19809: limit exceeded for file recovery

    ORA-00312: wire 2 1 online journal: ' D:\ORACLE\ORADATA\ATTNDPRD\ONLINELOG\O1_MF_2_8LRQYD8B_. JOURNAL"

    ORA-00312: wire 2 1 online journal: ' C:\ORACLE\ORADATA\ATTNDPRD\ONLINELOG\O1_MF_2_8LRQYDF6_. JOURNAL"

    USER (ospid: 10400): put an end to litigation because of the error 16038

    Sun 24 May 13:43:24 2015

    ARC3 started with pid = 24, OS id = 2188

    Errors in the d:\app\administrator\diag\rdbms\attndprd\attndprd\trace\attndprd_arc2_17280.trc file:

    ORA-19815: WARNING: db_recovery_file_dest_size 8589934592 bytes is 100.00% used and has 0 bytes remaining available.

    ************************************************************************

    You have choice to free up space in the recovery area:

    1 consider changing STRATEGY OF RETENTION of RMAN. If you are using Data Guard

    then consider changing POLICY of DELETE ARCHIVELOG RMAN.

    2 back up files on a tertiary device such as a tape with RMAN

    SAFEGUARDING RECOVERY AREA command.

    3. Add space drive and increase the db_recovery_file_dest_size setting to

    reflect the new space.

    4 remove the unnecessary files using the RMAN DELETE command. If a service

    the system control has been used to remove the files, and then use the RMAN DUPLICATION and

    Commands DELETE has EXPIRED.

    ************************************************************************

    Instance of stopped by USER, pid = 10400

    --------------------------------------------------------------------------------------------------------------------------

    Regarding

    Ngoyi

    Hello

    Now it works very well... with following

    --------------------------------------------------

    using sqlplus

    • Startup mount
    • ALTER database noarchivelog;
    • ALTER database open;

    -------------------------------------------------------------------------------

    Concerning

    Ngoyi

    -------------------------------------------------

  • error: error at line 1: ORA-01503: CREATE CONTROLFILE failed

    Hello
    I'm the sinister scene I enter my database in nomount, but when I run create controlfile command
    It shows me an error:

    My controlfile content is:
    CREATE CONTROLFILE SEt DATABASE 'test' RESETLOGS ARCHIVELOG
    MAXLOGFILES 16
    MAXLOGMEMBERS 2
    MAXDATAFILES 30
    MAXINSTANCES 1
    MAXLOGHISTORY 292
    LOGFILE
    GROUP 1 ' / test/opt/102/oradata/test/redo1.log' 100M, SIZE
    GROUP 2 ' / test/opt/102/oradata/test/redo2.log' 100M, SIZE
    GROUP 3 ' / test/opt/102/oradata/test/redo3.log' SIZE 100 m
    DATA FILE
    ' / test/opt/102/oradata/test/system.dbf',
    ' / test/opt/102/oradata/test/undotbs1.dbf',
    ' / test/opt/102/oradata/test/sysaux.dbf',
    ' / test/opt/102/oradata/test/users01.dbf'
    CHARACTER SET WE8ISO8859P1
    ;


    After running this, I got the error below:

    CREATE CONTROLFILE SEt DATABASE 'test' RESETLOGS ARCHIVELOG
    *
    ERROR on line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01565: error in the identification of file ' / test/opt/102/oradata/test/system.dbf'
    ORA-27037: unable to get file status
    Linux-x86_64 error: 2: no such file or directory
    Additional information: 3


    what goes wrong with this script.

    Your disaster recovery operation became a disaster it seems :)

    Try copying the available backup files and repeat the same thing.

    Kind regards
    CSM

    Published by: CSM. DBA on July 30, 2012 11:50

  • to DECLARE * ERROR at line 1: ORA-00900: invalid SQL statement

    This works fine when I use the System user to create a schema and then run this script.
    When I create another user with grant connect, resources, create view permissions I get this error:

    DECLARE
    *

    ERROR on line 1:
    ORA-00900: invalid SQL statement
    ORA-06512: at...


    DECLARE
    ID MY_TABLE.ID%TYPE;
    tNom my_table. % TABLENAME TYPE;
    PName MY_TABLE_TWO. PROPERTYNAME % TYPE;
    CURSOR c1 IS
    SELECT distinct evt.id, evt. TABLENAME, vid.propertyname
    FROM my_table evt, vid MY_TABLE_TWO
    WHERE the evt. COL_1 = 1
    AND evt. COL_2 = vid. COL_2
    and not exists (select facts FROM MY_TABLE_THREE 1)
    where evt.id = facts.eventid and facts.displayname = vid.propertyname);
    BEGIN
    OPEN c1;
    LOOP
    FETCH c1 INTO id, tNom, pname;
    OUTPUT WHEN c1% NOTFOUND;
    INSERT INTO MY_TABLE_THREE (ID, COLUMNLENGTH)
    VALUES (S_ANALYTICS_SEQUENCE.nextval, 255);
    RUN IMMEDIATELY 'ALTER TABLE ' | tNom | 'Add ' | PName | ' _ NVARCHAR2 (255);
    END LOOP;
    CLOSE c1;
    END;

    Hello

    Maybe missing a privilege. If I were you, I'll try this first:

    DECLARE
       id    MY_TABLE.ID%TYPE;
       tname MY_TABLE.TABLENAME%TYPE;
       pname MY_TABLE_TWO.PROPERTYNAME%TYPE;
       CURSOR c1 IS
          SELECT DISTINCT evt.id,
                          evt.TABLENAME,
                          vid.propertyname
            FROM MY_TABLE     evt,
                 MY_TABLE_TWO vid
           WHERE evt.COL_1 = 1
             AND evt.COL_2 = vid.COL_2
             AND NOT EXISTS (SELECT 1
                    FROM MY_TABLE_THREE facts
                   WHERE evt.id = facts.eventid
                     AND facts.displayname = vid.propertyname);
    BEGIN
       OPEN c1;
       LOOP
          FETCH c1
             INTO id, tname, pname;
          EXIT WHEN c1%NOTFOUND;
          INSERT INTO MY_TABLE_THREE
             (ID,
              COLUMNLENGTH)
          VALUES
             (S_ANALYTICS_SEQUENCE.NEXTVAL,
              255);
          DBMS_OUTPUT.put_line('ALTER TABLE ' || tname || ' add ' || pname ||
                               '_ NVARCHAR2(255)');
          --EXECUTE IMMEDIATE 'ALTER TABLE ' || tname || ' add ' || pname || '_ NVARCHAR2(255)';
       END LOOP;
       CLOSE c1;
    EXCEPTION
       WHEN OTHERS THEN
          DBMS_OUTPUT.put_line(SQLERRM);
    END;
    /
    

    Using this approach, you can see the sentences to run without run, I also added an exception block.

    Kind regards

  • Error at line 1: ORA-01503: creating the control file has no

    Hello

    I do disaster when I create controlfile by trace, I got an error

    CREATE CONTROLFILE SEt DATABASE 'test' RESETLOGS ARCHIVELOG
    MAXLOGFILES 16
    MAXLOGMEMBERS 2
    MAXDATAFILES 30
    MAXINSTANCES 1
    MAXLOGHISTORY 292
    LOGFILE
    GROUP 1 ' / test/opt/102/oradata/test/redo1.log' 100M, SIZE
    GROUP 2 ' / test/opt/102/oradata/test/redo2.log' 100M, SIZE
    GROUP 3 ' / test/opt/102/oradata/test/redo3.log' SIZE 100 m
    DATA FILE
    ' / test/opt/102/oradata/test/system.dbf',
    ' / test/opt/102/oradata/test/undotbs1.dbf',
    ' / test/opt/102/oradata/test/sysaux.dbf',
    ' / test/opt/102/oradata/test/users01.dbf'
    CHARACTER SET WE8ISO8859P1
    ;
    CREATE CONTROLFILE SEt DATABASE 'test' RESETLOGS ARCHIVELOG
    *
    ERROR on line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01565: error in the identification of file ' / test/opt/102/oradata/test/system.dbf'
    ORA-27037: unable to get file status
    Linux-x86_64 error: 2: no such file or directory
    Additional information: 3

    I wrote something wrong?

    Thank you

    I understand, but I couldnot restoration l datafile by rman restore command coz base not at the stage of editing!

    Appear you are not using the rman backup catalog and controlfile to help register rman backup.
    in this case if you recreate the controlfile to way you will lose all your information backup of controlfile.
    better restore controlfile from piece of backup or AutoSave. as restore controlfile from ""

  • Error Ora-600 - sql &gt; create spfile from pfile - ERROR at line 1: ORA-00600

    Hello

    I am facing the following question in the database pending,

    Oracle 10g

    SQL > create spfile from pfile;
    Create spfile from pfile
    *
    ERROR on line 1:
    ORA-00600: internal error code, arguments: [ksplrmfn1], [3059], [3059], [], [],.
    [], [], []


    After you have added the db_file_name_convert and log_file_name_convert in pfile. If I remove these two spfile parameters is created successfully.

    Thank you.

    Here's the syntax exactly who i had given.

    db_file_name_convert = "/ u02/proddata", "/ u02/proddata ', ' / u03/proddata", "proddata1/u04 /, ' / u04/proddata ', ' / u04/proddata '
    log_file_name_convert = "/ u02/proddata", "/ u02/proddata ', ' / u03/proddata", "proddata1/u04 /, ' / u04/proddata ', ' / u04/proddata '

    Carefully, see apostrophe ending 4th missed rope... Changed as below. Use it and try again :)

    db_file_name_convert = "/ u02/proddata", "/ u02/proddata", "/ u03/proddata", "/ u04/proddata1", "/ u04/proddata", "/ u04/proddata.
    log_file_name_convert = "/ u02/proddata", "/ u02/proddata", "/ u03/proddata", "/ u04/proddata1", "/ u04/proddata", "/ u04/proddata.

    Close if answered threads

  • ERROR at line 1: ORA-00054: resource busy and acquire with NOWAIT specified

    Hello

    We have an informatica session that maintains the slightest error with this error. These are the locked objects.

    Locked object Oracle Username o/s process Locker SID username / Ser # name Date/time of the connection

    -------------------- ---------------- ------------- -------------------- --------- ------------ ---- -------------------

    IDSSTG. MBRSHP_COV_UL IDSSTG (ACTIVE) informap 21671 sasbsp24 2141,10784 _SYS 2013/09/17 10:35:58

    P_DNTL                                                                                          SMU2

    $ 8

    SYS. OBJ$ IDSSTG (ACTIVE) informap 21671 sasbsp24 2141,10784 _SYS 2013/09/17 10:35:58

    SMU2

    $ 8

    Please indicate how this can be solved?

    Kind regards

    Narayan

    Yes, both are working against IDSSTG. MBRSHP_COV_ULP_DNTL

    Why should table be changed (ALTER TABLE) as part of the normal treatment?

    Table DDL should be consistent between versions of software version.

    the worst that happens is that no INDEX is created.

    SQL will run on this table.

    just CREATE INDEX later

  • ERROR at line 1: ORA-00920: invalid relational operator

    Hello;

    I get this error with this code:
    EXECUTE IMMEDIATE 'SELECT COUNT(*) FROM ' || in_table_name || ' WHERE '     
         || in_column1 || ' like (''%'|| in_value1 ||'%'') AND '|| in_column2 || 'like (''%'|| in_value2 ||'%'') AND '
         || in_column3 || ' like (''%' || in_value3 ||'%'') AND ROWNUM = 1' INTO ln_test;
    Help me please, cordially

    you are missing a space in this part:

    in_column2 || 'like (''%'||
    

    should be

    in_column2 || ' like (''%'||
    
  • ERROR at line 1: ORA-06502: PL/SQL: digital or value error ORA-06512: at line 10

    Hi all

    DECLARE

    TYPE (t1) IS RENDERING

    v_ename emp.ename%TYPE,

    v_sal emp.sal%TYPE

    );

    TNom TYPE IS an ARRAY OF t1

    INDEX OF DIRECTORY;

    v_tname tNom;

    BEGIN

    BECAUSE me IN v_tname. FIRST... v_tname. LAST

    LOOP

    Dbms_output.put_line (v_tname (i) .v_ename |) '' || .v_sal v_tname (i));

    END LOOP;

    END;

    You want to ask why I used the SLIDER? -We can use in BULK COLLECT with LIMIT clause with the cursor

    We also directly in bulk collect into collections as below:

    DECLARE

    TYPE (t1) IS RENDERING

    v_ename emp.ename%TYPE,

    v_sal emp.sal%TYPE

    );

    TNom TYPE IS an ARRAY OF t1

    INDEX OF DIRECTORY;

    v_tname tNom;

    BEGIN

    SELECT ename, sal BULK COLLECT INTO v_tname FROM emp;

    BECAUSE me IN v_tname. FIRST... v_tname. LAST

    LOOP

    Dbms_output.put_line (v_tname (i) .v_ename |) ' ' || .v_sal v_tname (i));

    END LOOP;

    END;

    /

  • Cannot install Microsoft Streets & Trips with GPS 2011 error: your registry settings for this application were not copied correctly.

    Original title: Registry loading problem streets & trips

    I bought the MicroSoft Streets & Trips with GPS 2011 disc. After the loading and activation, I get the message "your registry settings for this application were not correctly copied. I uninstalled and reinstalled 3 times. I even thought that it might be a computer problem, so I bought a new computer, but same result. Should I simply a damaged drive? What is my solution?  Russ B, Mt Laurel NJ.

    Hello

    1. where did you buy the disc?

    I suggest you to send your request in the below link.

    Support for Microsoft Streets & Trips: http://social.Microsoft.com/forums/en-us/streetsandtrips/threads

    Reference: http://www.Microsoft.com/streets/en-us/community-and-news.aspx

    Hope this information is useful.

  • WHAT SHOULD I DO WITH THE FOLLOWING ERROR? "The location of the browser has not been set. Please this in preferences.

    When I click on a link in a PDF document is saved OR try and access to the Adobe knowledge base help (ie the link to the Adobe web) in Windows Vista Adobe Reader 9.2. I get an error message that says: "the location of the browser has not been set. Please this in preferences.

    NOTE the document / links opens as expected when the PDF is opened / displayed in a web browser.

    It didn't improve the security settings

    Does anyone have some sense on what the problem is and / or how to fix?

    Thank you.

    Hi Alex Moss,

    You can try after the troubleshooting steps in this thread: the location of the web browser has not been clarified. Please do this in preferences.

    Let us know if that helps.

    Concerning

    Sarojini

  • ORA-01762:

    ORA-01762: vopdrv: query not in FROM block

    Question: This is an internal error not normally issued.

    Action: Contact customer support.

    What is the meaning of this?

    Did you even * read * the error message when you copied it?

    It couldn't be clearer: contact technical support.

  • 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 identifier

    Published 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

  • DB Link error: ORA-12154: TNS: could not resolve the connect identifier...

    All,

    Help, please. I get the error above despite all I know to do:

    tnsnames.ora entry for the remote database (it is what is on the local database):

    ORACLE6. STAGING =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = oracle6.staging.hobank.net) (PORT = 1521))
    )
    (CONNECT_DATA = (SERVICE_NAME = banksys))
    )


    The following works without problems of local database to a remote database:

    On the local database:

    sqlplus kay/[email protected]
    ...
    ...

    Connected to:
    Oracle Database 10 g Enterprise Edition Release 10.2.0.2.0 - 64 bit Production
    With partitioning, OLAP and Data Mining options

    SQL > select * from emp;

    EMPNO, ENAME, JOB HIREDATE SAL COMM MGR
    ---------- ---------- --------- ---------- --------- ---------- ----------
    DEPTNO
    ----------
    2 Kay Baffy DBA 1 6 November 10 50000.25
    2

    * These data are correct and comes from the remote database *.

    Next, I created the database link that is connected to the local database:

    create the database public link oracle6.staging
    connect to identified by kay kay
    using 'oracle6.staging ';

    Database link created.

    !!! But the following does not work:

    SQL > select * from [email protected];
    Select * from [email protected]
    *
    ERROR on line 1:
    ORA-12154: TNS: could not resolve the connect identifier specified


    I am sure of the following:

    1 DB link has been created on the local database.
    2 oracle6.staging entry is tnsnames.ora
    3. I am able to connect to a remote database with: sqlplus kay/[email protected]

    * Any help will be be appreciated.* *.

    Thanks in advance.

    Baffy

    See the link:-hope, it will be useful for you.

    Troubleshooting of database links
    http://www.akadia.com/services/ora_dblinks.html

    Kind regards

  • ORA-01109: database is not open

    Aloha!

    I created a forum on the 11g R2 and is about to import a dump. To the creation of a directory, I get this error;


    [oracle@ole5 SBAtemp] $ sqlplus sys/Change12345@orc01 as sysdba

    SQL * more: Production version 11.2.0.1.0 Fri Sep 23 19:30:33 2011

    Copyright (c) 1982, 2009, Oracle. All rights reserved.


    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With partitioning, OLAP, Data Mining and Real Application Testing options

    SQL > create or replace the BW_TEMP directory as ' / u01/SBAtemp /';
    create or replace the BW_TEMP directory as ' / u01/SBAtemp /'
    *
    ERROR on line 1:
    ORA-01109: database is not open


    SQL >

    Your advisor and your comment is much appreciated.

    Thanks in advance.

    Kind regards
    Hades

    Try this...

    $ sqlplus sys/Change12345@orc01 as sysdba

    SQL > shutdown immediate

    SQL > startup

    and to check the status of the instance:

    SQL > select status from v$ instance;

    Let me know the result (in the cases where appropriate or useful the mark so that this thread can be close)

    Neeraj-

Maybe you are looking for

  • There is more music showing on the phone? Help

    I recently synced phone to iTunes from the computer as usual, and now my music will not appear on my iPhone 6, but present when using that they are on the phone. When I click on the music icon, it freezes on a picture of a woman as the intro picture

  • Sims 3 install error SetupNew.setup.cpp (140)

    I tried to install the Sims 3 on my computer and when I click on the automatic disc playback DVD player an error screen appears containing this: > SetupNew.setup.cpp (140)PAPP:PVENDOR:PGUID:$15.0.0.498@ Windows Vista Service Pack 1 (6001)IE Version 7

  • Can not install or download the Validation tool...

    Im trying to down load windows media player then I acidently deleted it... and when I do, says they need to make sure I have a valid version of windows 7. so I click on continue and then comes up saying I need to download the validation tool. When I

  • Audio Acer 5520g does not work after the new service pack

    I installed XP and is up-to-date. However, when a new service pack arrives, it destroyed the Realtech driver that I downloaded from the Acer support site. One way to recover is to do a scan complete antivirus C drive. Second method is to remove the s

  • all the .exe files listed as secfile, the type cannot fix association; Vista

    All .exe files are listed as type secfile on my daughter, running Vista laptop.  When you try to open any executable file, an error message is received "application not found".  I found several websites with the .reg files to fix the registry.  The p