Duplicate identifier in pl/sql

Hi all

Recently, I met a question about duplicated in Oracle pl/sql identifiers.

Database version: Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64 bit Production

declare
lv_var number;
lv_var number;
begin
dbms_output.put_line('success');
end;
/

He did not produce an error. I thought that, within the same scope, it should not allow to declare another variable with the same name.

If its success, then what is the idea behind allowing this behavior.

Thank you

Vikram

PL/SQL compile to p-code and unlike the compiled machine code, some errors do not appear that when running - not detect these compiler errors:

SQL> declare
  2          lv_var number;
  3          lv_var number;
  4  begin
  5          dbms_output.put_line( lv_var );
  6  end;
  7  /
        dbms_output.put_line( lv_var );
                              *
ERROR at line 5:
ORA-06550: line 5, column 24:
PLS-00371: at most one declaration for 'LV_VAR' is permitted
ORA-06550: line 5, column 2:
PL/SQL: Statement ignored

SQL>

If the error is detected during execution.

Tags: Database

Similar Questions

  • How to remove duplicates from the PL - SQL table?

    Hi gurus,

    I have a PL - SQL table with the following structure
    Authors (SR_NO, Auth_Code, Change_Date, cost)

    This table is filled using a slider. However, this table can have a few lines in double (for column (Auth_Code)
    for example
    SR_NO      Auth_Code       Change_Date                       Cost
    1               A1             14-FEB-09 08.18.47 AM          11.00
    2               A2             14-FEB-09 08.18.56 AM       2839.00
    3               A1             15-FEB-09 08.00.02 AM      1299.00
    4               A1             15-FEB-09 07.00.00 AM        789.00
    5               A3             14-FEB-09 08.18.56 AM        312.00
    6               A4             14-FEB-09 08.19.02 AM        233.00
    I need to get the above result set select the separate lines of Auth_Code including the Change_Date is maximum (and store in another PL - SQL table for treatment later or even the removal of this table will be also!)

    of the data A1 is duplicated and a maximum Change_Date above = 15 February 09 08.00.02 AM.
    Where my PL - SQL Table that results must have given below
    SR_NO      Auth_Code       Change_Date                       Cost
    2               A2             14-FEB-09 08.18.56 AM       2839.00
    3               A1             15-FEB-09 08.00.02 AM      1299.00
    5               A3             14-FEB-09 08.18.56 AM        312.00
    6               A4             14-FEB-09 08.19.02 AM        233.00
    I'm not very aware of the PL - SQL tables and there is no chance to change the existing cursor that fills the data in this table PL - SQL.
    I guess that I need to compare each record of PL - SQL table with others, but do not know how to do this.

    Could you please help?

    Hello

    Like this?:

    Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
    Connected as hr
    
    SQL>
    SQL> with data as(
      2  select 1 as SR_NO, 'A1' as Auth_Code, to_date('14-FEB-09 08.18.47', 'dd-mon-yy hh24:mi:ss') as change_date,    11.00 as cost from dual union all
      3  select 2 as SR_NO, 'A2' as Auth_Code, to_date('14-FEB-09 08.18.56', 'dd-mon-yy hh24:mi:ss') as change_date,  2839.00 as cost from dual union all
      4  select 3 as SR_NO, 'A1' as Auth_Code, to_date('15-FEB-09 08.00.02', 'dd-mon-yy hh24:mi:ss') as change_date,  1299.00 as cost from dual union all
      5  select 4 as SR_NO, 'A1' as Auth_Code, to_date('15-FEB-09 07.00.00', 'dd-mon-yy hh24:mi:ss') as change_date,   789.00 as cost from dual union all
      6  select 5 as SR_NO, 'A3' as Auth_Code, to_date('14-FEB-09 08.18.56', 'dd-mon-yy hh24:mi:ss') as change_date,   312.00 as cost from dual union all
      7  select 6 as SR_NO, 'A4' as Auth_Code, to_date('14-FEB-09 08.19.02', 'dd-mon-yy hh24:mi:ss') as change_date,   233.00 as cost from dual)
      8  select * from data d where change_date = (select max(change_date) from data d2 where d.auth_code = d2.auth_code);
    
         SR_NO AUTH_CODE CHANGE_DATE       COST
    ---------- --------- ----------- ----------
             2 A2        14/02/2009        2839
             3 A1        15/02/2009        1299
             5 A3        14/02/2009         312
             6 A4        14/02/2009         233
    
    SQL>
    

    Kind regards

  • Duplicate SQL - Unique Index-

    I have a table called SAMPLE:
    CREATE TABLE EXAMPLE
    (
    IDENTIFICATION NUMBER NOT NULL,
    NAME_N VARCHAR2 (50 BYTE) NOT NULL,
    BROWSE_TIME DATE,
    ENABLE CONSTRAINT PRIMARY KEY (ID) ID_PK
    );

    ALTER TABLE ADD CONSTRAINT ND_UK UNIQUE (NAME_N, BROWSE_TIME) EXAMPLE ACTIVE;

    I was issuing the instructions insert for the measure as follows:
    INSERT INTO SAMPLE (ID, NAME_N, BROWSE_TIME) VALUES (ID_SEQ. CURRENT_DATE NEXTVAL, 'NAME',);

    Session: emits the following value (ID, name, Date) as follows: 1, "NAME", October 1, 11
    Session b: emits the following value (ID, name, Date) as follows: 2, "NAME", October 1, 11
    Session c: emits the following value (ID, name, Date) as follows: 3, "NAME", October 1, 11

    Say the entire session active and validation is issued in the following order:
    C, A, B

    The approach described above is performed in a scenario highly concurrent / in real time.
    Sometimes, we could see the index accentuate was failed, but ended up with duplicate lines.

    The SQL is from the Java application, which could be wrong, how can we apply the unique index as the primary key.

    Database: 11G, v2

    >
    Yes, I wanted only the part of the date in the Date field.
    >
    So instead of

    INSERT INTO SAMPLE (ID, NAME_N, DATE_D) VALUES (ID_SEQ.NEXTVAL, 'NAME', CURRENT_DATE);
    

    You must use

    INSERT INTO SAMPLE (ID, NAME_N, DATE_D) VALUES (ID_SEQ.NEXTVAL, 'NAME', trunc(CURRENT_DATE));
    
  • duplicate with compressed and the section size options in #db12c

    Hello

    I am able to 12.1.0.1 duplicate (from database) database to the destination successfully server,

    However, when I add is compressed backupset size or "" to duplicate the command

    recovery at the end of the operation fails due to lack of archiving log (which is on the source server)

    Someone knows the same?

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

    failure of duplication

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

    [oracle@r121 ~] $ rman target sys/sys_pwd@t12 auxiliary sys/sys_pwd@c12


    Recovery Manager: release 12.1.0.1.0 - Production on Fri Sep 6 11:30:09 2013

    Copyright (c) 1982, 2013, Oracle and/or its affiliates.  All rights reserved.

    connected to target database: T12 (DBID = 1222223202)

    connected to the auxiliary database: T12 (unassembled)

    RMAN > database of target double-c12 of active database

    section 2g size

    SPFile

    parameter_value_convert "t12", "c12".

    Set db_file_name_convert "t12", "c12".

    Set log_file_name_convert "t12", "c12".

    nofilenamecheck;

    2 > 3 > 4 > 5 > 6 > 7 >

    Starting in Db double, 13 / SEP / 06

    using the control file of the target instead of recovery catalog database

    allocated channel: ORA_AUX_DISK_1

    channel ORA_AUX_DISK_1: SID = 21 type of device = DISK

    Current archived log

    content of Script memory:

    {

    restore the clone of service "t12" spfile to

    ' / u01/app/oracle/product/12.1.0/dbhome_2/dbs/spfilec12.ora';

    clone of SQL 'alter system set spfile = "/u01/app/oracle/product/12.1.0/dbhome_2/dbs/spfilec12.ora";

    }

    execution of Script memory

    From restoration 13 / SEP / 06

    using the ORA_AUX_DISK_1 channel

    channel ORA_AUX_DISK_1: from the restore backup set data file

    ORA_AUX_DISK_1 channel: using the set of backup service t12 network

    channel ORA_AUX_DISK_1: restore SPFILE

    output file name=/u01/app/oracle/product/12.1.0/dbhome_2/dbs/spfilec12.ora

    channel ORA_AUX_DISK_1: restoration complete, duration: 00:00:07

    Restoration finished 13 / SEP / 06

    SQL statement: alter system set spfile = "/u01/app/oracle/product/12.1.0/dbhome_2/dbs/spfilec12.ora"

    content of Script memory:

    {

    clone of SQL 'alter system set = db_name

    "C12" comment =

    "reproduce" scope = spfile;

    clone of SQL 'alter system set audit_file_dest =

    Comment of "/ u01/app/oracle/admin/c12/adump" =.

    ' ' scope = spfile;

    clone of SQL 'alter system set control_files =

    "/u01/oradata/c12/control01.ctl", "/u01/app/oracle/fast_recovery_area/c12/control02.ctl" comment is

    ' ' scope = spfile;

    clone of SQL 'alter system set dispatchers =

    ''(Protocol=TCP) (SERVICE = c12XDB) "comment =

    ' ' scope = spfile;

    clone of SQL 'alter system set db_file_name_convert =

    "t12", "c12" comment is

    ' ' scope = spfile;

    clone of SQL 'alter system set log_file_name_convert =

    "t12", "c12" comment is

    ' ' scope = spfile;

    clone to stop immediately;

    startup nomount clone;

    }

    execution of Script memory

    SQL statement: alter system db_name set = comment "C12" = "duplicate" scope = spfile

    SQL statement: alter system set audit_file_dest = comment "/ u01/app/oracle/admin/c12/adump" = "' scope = spfile

    SQL statement: alter system set control_files = "/u01/oradata/c12/control01.ctl", "/u01/app/oracle/fast_recovery_area/c12/control02.ctl" comment = "' scope = spfile

    SQL statement: alter system set dispatchers = ''(PROTOCOL=TCP) (SERVICE = c12XDB) "comment ="' scope = spfile

    SQL statement: alter system set db_file_name_convert = "t12", "c12" comment = "' scope = spfile

    SQL statement: alter system set log_file_name_convert = "t12", "c12" comment = "' scope = spfile

    Instance Oracle to close

    connected to the auxiliary database (not started)

    Oracle instance started

    Total System Global Area 626327552 bytes

    Bytes of size 2291472 fixed

    507513072 variable size bytes

    113246208 of database buffers bytes

    Redo buffers 3276800 bytes

    content of Script memory:

    {

    clone of SQL 'alter system set = db_name

    "T12" comment =

    ' Modified by RMAN duplicate "scope = spfile;

    clone of SQL 'alter system set db_unique_name =

    "C12" comment =

    ' Modified by RMAN duplicate "scope = spfile;

    clone to stop immediately;

    Start clone force nomount

    restore the primary clone of service "t12" controlfile;

    change the clone database mount;

    }

    execution of Script memory

    SQL statement: alter system db_name set = "T12" = "modified by RMAN duplicate" comment scope = spfile

    SQL statement: alter system set db_unique_name = comment "C12" = "modified by RMAN duplicate" scope = spfile

    Instance Oracle to close

    Oracle instance started

    Total System Global Area 626327552 bytes

    Bytes of size 2291472 fixed

    507513072 variable size bytes

    113246208 of database buffers bytes

    Redo buffers 3276800 bytes

    From restoration 13 / SEP / 06

    allocated channel: ORA_AUX_DISK_1

    channel ORA_AUX_DISK_1: SID = 20 type of device = DISK

    channel ORA_AUX_DISK_1: from the restore backup set data file

    ORA_AUX_DISK_1 channel: using the set of backup service t12 network

    channel ORA_AUX_DISK_1: restore the control file

    channel ORA_AUX_DISK_1: restoration complete, duration: 00:00:15

    output file name=/u01/oradata/c12/control01.ctl

    output file name=/u01/app/oracle/fast_recovery_area/c12/control02.ctl

    Restoration finished 13 / SEP / 06

    mounted database

    content of Script memory:

    {

    the value of newname for datafile 1 to

    "/ u01/oradata/c12/system01.dbf";

    the value of newname for datafile 2 to

    "/ u01/oradata/c12/test01.dbf";

    the value of newname for datafile 3 to

    "/ u01/oradata/c12/sysaux01.dbf";

    the value of newname for datafile 4 to

    "/ u01/oradata/c12/undotbs01.dbf";

    the value of newname for datafile 6 to

    "/ u01/oradata/c12/users01.dbf";

    restoration

    the size of the service "t12" section

    database clone of 2 g

    ;

    SQL 'alter system archive log current';

    }

    execution of Script memory

    executing command: SET NEWNAME

    executing command: SET NEWNAME

    executing command: SET NEWNAME

    executing command: SET NEWNAME

    executing command: SET NEWNAME

    From restoration 13 / SEP / 06

    using the ORA_AUX_DISK_1 channel

    channel ORA_AUX_DISK_1: from the restore backup set data file

    ORA_AUX_DISK_1 channel: using the set of backup service t12 network

    channel ORA_AUX_DISK_1: specifying datafile (s) to restore from backup set

    channel ORA_AUX_DISK_1: restore datafile 00001 to /u01/oradata/c12/system01.dbf

    channel ORA_AUX_DISK_1: restoration of section 1 of 1

    channel ORA_AUX_DISK_1: restoration complete, duration: 00:01:35

    channel ORA_AUX_DISK_1: from the restore backup set data file

    ORA_AUX_DISK_1 channel: using the set of backup service t12 network

    channel ORA_AUX_DISK_1: specifying datafile (s) to restore from backup set

    channel ORA_AUX_DISK_1: restore datafile 00002 to /u01/oradata/c12/test01.dbf

    channel ORA_AUX_DISK_1: restoration of the article 1 of 2

    channel ORA_AUX_DISK_1: restoration complete, duration: 00:01:55

    channel ORA_AUX_DISK_1: from the restore backup set data file

    ORA_AUX_DISK_1 channel: using the set of backup service t12 network

    channel ORA_AUX_DISK_1: specifying datafile (s) to restore from backup set

    channel ORA_AUX_DISK_1: restore datafile 00002 to /u01/oradata/c12/test01.dbf

    channel ORA_AUX_DISK_1: restoration of article 2 of 2

    channel ORA_AUX_DISK_1: restoration complete, duration: 00:02:06

    channel ORA_AUX_DISK_1: from the restore backup set data file

    ORA_AUX_DISK_1 channel: using the set of backup service t12 network

    channel ORA_AUX_DISK_1: specifying datafile (s) to restore from backup set

    channel ORA_AUX_DISK_1: restore datafile 00003 to /u01/oradata/c12/sysaux01.dbf

    channel ORA_AUX_DISK_1: restoration of section 1 of 1

    channel ORA_AUX_DISK_1: restoration complete, duration: 00:01:35

    channel ORA_AUX_DISK_1: from the restore backup set data file

    ORA_AUX_DISK_1 channel: using the set of backup service t12 network

    channel ORA_AUX_DISK_1: specifying datafile (s) to restore from backup set

    channel ORA_AUX_DISK_1: restore datafile 00004 in /u01/oradata/c12/undotbs01.dbf

    channel ORA_AUX_DISK_1: restoration of section 1 of 1

    channel ORA_AUX_DISK_1: restoration complete, duration: 00:00:15

    channel ORA_AUX_DISK_1: from the restore backup set data file

    ORA_AUX_DISK_1 channel: using the set of backup service t12 network

    channel ORA_AUX_DISK_1: specifying datafile (s) to restore from backup set

    channel ORA_AUX_DISK_1: restore datafile to /u01/oradata/c12/users01.dbf 00006

    channel ORA_AUX_DISK_1: restoration of section 1 of 1

    channel ORA_AUX_DISK_1: restoration complete, duration: 00:00:08

    Restoration finished 13 / SEP / 06

    SQL statement: alter system archive log current

    Current archived log

    content of Script memory:

    {

    restore the strength of the clone of service "t12".

    ARCHIVELOG SNA 2034596.

    switch from clone datafile;

    }

    execution of Script memory

    From restoration 13 / SEP / 06

    using the ORA_AUX_DISK_1 channel

    channel ORA_AUX_DISK_1: Startup archived log restore to default destination

    ORA_AUX_DISK_1 channel: using the set of backup service t12 network

    channel ORA_AUX_DISK_1: restoration of archives Journal

    Archives journal thread = 1 sequence = 54

    channel ORA_AUX_DISK_1: restoration complete, duration: 00:00:03

    channel ORA_AUX_DISK_1: Startup archived log restore to default destination

    ORA_AUX_DISK_1 channel: using the set of backup service t12 network

    channel ORA_AUX_DISK_1: restoration of archives Journal

    Archives journal thread = 1 sequence = 55

    channel ORA_AUX_DISK_1: restoration complete, duration: 00:00:03

    Restoration finished 13 / SEP / 06

    DataFile 1 passed to the copy of the data file

    entry of data copy file RECID = STAMP 11 = 825421247 file name=/u01/oradata/c12/system01.dbf

    DataFile 2 passed to the copy of the data file

    entry of data copy file RECID = STAMP 12 = 825421247 file name=/u01/oradata/c12/test01.dbf

    DataFile 3 to the copy of the data file

    entry of data copy file RECID = STAMP 13 = 825421247 file name=/u01/oradata/c12/sysaux01.dbf

    DataFile 4 switched to the copy of the data file

    entry of data copy file RECID = 14 STAMP = 825421249 file name=/u01/oradata/c12/undotbs01.dbf

    DataFile 6 switched to the copy of the data file

    entry of data copy file RECID = STAMP 15 = 825421249 file name=/u01/oradata/c12/users01.dbf

    content of Script memory:

    {

    until the SNA 2034892.

    recover

    clone database

    delete archivelog

    ;

    }

    execution of Script memory

    executing command: SET until clause

    From recover 13 / SEP / 06

    using the ORA_AUX_DISK_1 channel

    starting media recovery

    Journal archived for thread 1 with 54 sequence is already on the disc in the file /u01/oradata/arch/1_54_825025894.dbf

    Journal archived for thread 1 with 55 sequence is already on the disc in the file /u01/oradata/arch/1_55_825025894.dbf

    Oracle instance started

    Total System Global Area 626327552 bytes

    Bytes of size 2291472 fixed

    507513072 variable size bytes

    113246208 of database buffers bytes

    Redo buffers 3276800 bytes

    content of Script memory:

    {

    clone of SQL 'alter system set = db_name

    "C12" comment =

    ' Restore the original value by RMAN "scope = spfile;

    clone of SQL 'alter system reset db_unique_name scope = spfile;

    clone to stop immediately;

    }

    execution of Script memory

    SQL statement: alter system db_name set = comment "C12" = "Reset to original by RMAN value" scope = spfile

    SQL statement: alter system reset db_unique_name scope = spfile

    Instance Oracle to close

    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-03002: failure of Db in dual at 06/09/2013 11:41:07

    RMAN-05501: abandonment of duplicate target database

    RMAN-03015: an error has occurred in the script stored memory Script

    RMAN-06053: unable to perform the recovery of the media because of the missing journal

    RMAN-06025: no backup log archived for thread 1 with sequence 53 and YVERT departure from 2011966 found to restore

    RMAN >

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

    managed replication

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

    [oracle@r121 ~] $ rman target sys/sys_pwd@t12 auxiliary sys/sys_pwd@c12

    Recovery Manager: release 12.1.0.1.0 - Production on Fri Sep 6 11:47:06 2013

    Copyright (c) 1982, 2013, Oracle and/or its affiliates.  All rights reserved.

    connected to target database: T12 (DBID = 1222223202)

    connected to the auxiliary database: T12 (unassembled)

    RMAN > database of target double-c12 of active database

    SPFile

    parameter_value_convert "t12", "c12".

    Set db_file_name_convert "t12", "c12".

    Set log_file_name_convert "t12", "c12".

    nofilenamecheck; 2 > 3 > 4 > 5 > 6 >

    Starting in Db double, 13 / SEP / 06

    using the control file of the target instead of recovery catalog database

    allocated channel: ORA_AUX_DISK_1

    channel ORA_AUX_DISK_1: SID = 21 type of device = DISK

    Current archived log

    content of Script memory:

    {

    restore the clone of service "t12" spfile to

    ' / u01/app/oracle/product/12.1.0/dbhome_2/dbs/spfilec12.ora';

    clone of SQL 'alter system set spfile = "/u01/app/oracle/product/12.1.0/dbhome_2/dbs/spfilec12.ora";

    }

    execution of Script memory

    From restoration 13 / SEP / 06

    using the ORA_AUX_DISK_1 channel

    channel ORA_AUX_DISK_1: from the restore backup set data file

    ORA_AUX_DISK_1 channel: using the set of backup service t12 network

    channel ORA_AUX_DISK_1: restore SPFILE

    output file name=/u01/app/oracle/product/12.1.0/dbhome_2/dbs/spfilec12.ora

    channel ORA_AUX_DISK_1: restoration complete, duration: 00:00:03

    Restoration finished 13 / SEP / 06

    SQL statement: alter system set spfile = "/u01/app/oracle/product/12.1.0/dbhome_2/dbs/spfilec12.ora"

    content of Script memory:

    {

    clone of SQL 'alter system set = db_name

    "C12" comment =

    "reproduce" scope = spfile;

    clone of SQL 'alter system set audit_file_dest =

    Comment of "/ u01/app/oracle/admin/c12/adump" =.

    ' ' scope = spfile;

    clone of SQL 'alter system set control_files =

    "/u01/oradata/c12/control01.ctl", "/u01/app/oracle/fast_recovery_area/c12/control02.ctl" comment is

    ' ' scope = spfile;

    clone of SQL 'alter system set dispatchers =

    ''(Protocol=TCP) (SERVICE = c12XDB) "comment =

    ' ' scope = spfile;

    clone of SQL 'alter system set db_file_name_convert =

    "t12", "c12" comment is

    ' ' scope = spfile;

    clone of SQL 'alter system set log_file_name_convert =

    "t12", "c12" comment is

    ' ' scope = spfile;

    clone to stop immediately;

    startup nomount clone;

    }

    execution of Script memory

    SQL statement: alter system db_name set = comment "C12" = "duplicate" scope = spfile

    SQL statement: alter system set audit_file_dest = comment "/ u01/app/oracle/admin/c12/adump" = "' scope = spfile

    SQL statement: alter system set control_files = "/u01/oradata/c12/control01.ctl", "/u01/app/oracle/fast_recovery_area/c12/control02.ctl" comment = "' scope = spfile

    SQL statement: alter system set dispatchers = ''(PROTOCOL=TCP) (SERVICE = c12XDB) "comment ="' scope = spfile

    SQL statement: alter system set db_file_name_convert = "t12", "c12" comment = "' scope = spfile

    SQL statement: alter system set log_file_name_convert = "t12", "c12" comment = "' scope = spfile

    Instance Oracle to close

    connected to the auxiliary database (not started)

    Oracle instance started

    Total System Global Area 626327552 bytes

    Bytes of size 2291472 fixed

    507513072 variable size bytes

    113246208 of database buffers bytes

    Redo buffers 3276800 bytes

    content of Script memory:

    {

    clone of SQL 'alter system set = db_name

    "T12" comment =

    ' Modified by RMAN duplicate "scope = spfile;

    clone of SQL 'alter system set db_unique_name =

    "C12" comment =

    ' Modified by RMAN duplicate "scope = spfile;

    clone to stop immediately;

    Start clone force nomount

    restore the primary clone of service "t12" controlfile;

    change the clone database mount;

    }

    execution of Script memory

    SQL statement: alter system db_name set = "T12" = "modified by RMAN duplicate" comment scope = spfile

    SQL statement: alter system set db_unique_name = comment "C12" = "modified by RMAN duplicate" scope = spfile

    Instance Oracle to close

    Oracle instance started

    Total System Global Area 626327552 bytes

    Bytes of size 2291472 fixed

    507513072 variable size bytes

    113246208 of database buffers bytes

    Redo buffers 3276800 bytes

    From restoration 13 / SEP / 06

    allocated channel: ORA_AUX_DISK_1

    channel ORA_AUX_DISK_1: SID = 19 type of device = DISK

    channel ORA_AUX_DISK_1: from the restore backup set data file

    ORA_AUX_DISK_1 channel: using the set of backup service t12 network

    channel ORA_AUX_DISK_1: restore the control file

    channel ORA_AUX_DISK_1: restoration complete, duration: 00:00:15

    output file name=/u01/oradata/c12/control01.ctl

    output file name=/u01/app/oracle/fast_recovery_area/c12/control02.ctl

    Restoration finished 13 / SEP / 06

    mounted database

    content of Script memory:

    {

    the value of newname for datafile 1 to

    "/ u01/oradata/c12/system01.dbf";

    the value of newname for datafile 2 to

    "/ u01/oradata/c12/test01.dbf";

    the value of newname for datafile 3 to

    "/ u01/oradata/c12/sysaux01.dbf";

    the value of newname for datafile 4 to

    "/ u01/oradata/c12/undotbs01.dbf";

    the value of newname for datafile 6 to

    "/ u01/oradata/c12/users01.dbf";

    restoration

    database service "t12" clone

    ;

    SQL 'alter system archive log current';

    }

    execution of Script memory

    executing command: SET NEWNAME

    executing command: SET NEWNAME

    executing command: SET NEWNAME

    executing command: SET NEWNAME

    executing command: SET NEWNAME

    From restoration 13 / SEP / 06

    using the ORA_AUX_DISK_1 channel

    channel ORA_AUX_DISK_1: from the restore backup set data file

    ORA_AUX_DISK_1 channel: using the set of backup service t12 network

    channel ORA_AUX_DISK_1: specifying datafile (s) to restore from backup set

    channel ORA_AUX_DISK_1: restore datafile 00001 to /u01/oradata/c12/system01.dbf

    channel ORA_AUX_DISK_1: restoration complete, duration: 00:01:35

    channel ORA_AUX_DISK_1: from the restore backup set data file

    ORA_AUX_DISK_1 channel: using the set of backup service t12 network

    channel ORA_AUX_DISK_1: specifying datafile (s) to restore from backup set

    channel ORA_AUX_DISK_1: restore datafile 00002 to /u01/oradata/c12/test01.dbf

    channel ORA_AUX_DISK_1: restoration complete, duration: 00:03:55

    channel ORA_AUX_DISK_1: from the restore backup set data file

    ORA_AUX_DISK_1 channel: using the set of backup service t12 network

    channel ORA_AUX_DISK_1: specifying datafile (s) to restore from backup set

    channel ORA_AUX_DISK_1: restore datafile 00003 to /u01/oradata/c12/sysaux01.dbf

    channel ORA_AUX_DISK_1: restoration complete, duration: 00:01:16

    channel ORA_AUX_DISK_1: from the restore backup set data file

    ORA_AUX_DISK_1 channel: using the set of backup service t12 network

    channel ORA_AUX_DISK_1: specifying datafile (s) to restore from backup set

    channel ORA_AUX_DISK_1: restore datafile 00004 in /u01/oradata/c12/undotbs01.dbf

    channel ORA_AUX_DISK_1: restoration complete, duration: 00:00:07

    channel ORA_AUX_DISK_1: from the restore backup set data file

    ORA_AUX_DISK_1 channel: using the set of backup service t12 network

    channel ORA_AUX_DISK_1: specifying datafile (s) to restore from backup set

    channel ORA_AUX_DISK_1: restore datafile to /u01/oradata/c12/users01.dbf 00006

    channel ORA_AUX_DISK_1: restoration complete, duration: 00:00:07

    Restoration finished 13 / SEP / 06

    SQL statement: alter system archive log current

    Current archived log

    content of Script memory:

    {

    restore the strength of the clone of service "t12".

    ARCHIVELOG SNA 2035520.

    switch from clone datafile;

    }

    execution of Script memory

    From restoration 13 / SEP / 06

    using the ORA_AUX_DISK_1 channel

    channel ORA_AUX_DISK_1: Startup archived log restore to default destination

    ORA_AUX_DISK_1 channel: using the set of backup service t12 network

    channel ORA_AUX_DISK_1: restoration of archives Journal

    Archives journal thread = 1 sequence = 57

    channel ORA_AUX_DISK_1: restoration complete, duration: 00:00:01

    channel ORA_AUX_DISK_1: Startup archived log restore to default destination

    ORA_AUX_DISK_1 channel: using the set of backup service t12 network

    channel ORA_AUX_DISK_1: restoration of archives Journal

    Archives journal thread = 1 sequence = 58

    channel ORA_AUX_DISK_1: restoration complete, duration: 00:00:01

    Restoration finished 13 / SEP / 06

    DataFile 1 passed to the copy of the data file

    entry of data copy file RECID = 6 STAMP = 825422144 file name=/u01/oradata/c12/system01.dbf

    DataFile 2 passed to the copy of the data file

    entry of data copy file RECID = STAMP 7 = 825422144 file name=/u01/oradata/c12/test01.dbf

    DataFile 3 to the copy of the data file

    entry of data copy file RECID = STAMP 8 = 825422145 file name=/u01/oradata/c12/sysaux01.dbf

    DataFile 4 switched to the copy of the data file

    entry of data copy file RECID = STAMP 9 = 825422145 file name=/u01/oradata/c12/undotbs01.dbf

    DataFile 6 switched to the copy of the data file

    entry of data copy file RECID = STAMP 10 = 825422145 file name=/u01/oradata/c12/users01.dbf

    content of Script memory:

    {

    until the SNA 2035798.

    recover

    clone database

    delete archivelog

    ;

    }

    execution of Script memory

    executing command: SET until clause

    From recover 13 / SEP / 06

    using the ORA_AUX_DISK_1 channel

    starting media recovery

    Journal archived for thread 1 with 57 sequence is already on the disc in the file /u01/oradata/arch/1_57_825025894.dbf

    Journal archived for thread 1 with 58 sequence is already on the disc in the file /u01/oradata/arch/1_58_825025894.dbf

    Archive log file name=/u01/oradata/arch/1_57_825025894.dbf thread = 1 sequence = 57

    Archive log file name=/u01/oradata/arch/1_58_825025894.dbf thread = 1 sequence = 58

    media recovery complete, duration: 00:00:01

    Finished recover 13 / SEP / 06

    Oracle instance started

    Total System Global Area 626327552 bytes

    Bytes of size 2291472 fixed

    507513072 variable size bytes

    113246208 of database buffers bytes

    Redo buffers 3276800 bytes

    content of Script memory:

    {

    clone of SQL 'alter system set = db_name

    "C12" comment =

    ' Restore the original value by RMAN "scope = spfile;

    clone of SQL 'alter system reset db_unique_name scope = spfile;

    }

    execution of Script memory

    SQL statement: alter system db_name set = comment "C12" = "Reset to original by RMAN value" scope = spfile

    SQL statement: alter system reset db_unique_name scope = spfile

    Oracle instance started

    Total System Global Area 626327552 bytes

    Bytes of size 2291472 fixed

    507513072 variable size bytes

    113246208 of database buffers bytes

    Redo buffers 3276800 bytes

    SQL statement: CREATE CONTROLFILE REUSE DATABASE "C12" RESETLOGS ARCHIVELOG VALUE

    MAXLOGFILES 16

    MAXLOGMEMBERS 3

    MAXDATAFILES 100

    MAXINSTANCES 8

    MAXLOGHISTORY 292

    LOGFILE

    GROUP 1 (' / u01/oradata/c12/redo01.log') SIZE 50 M REUSE.

    GROUP 2 (' / u01/oradata/c12/redo02.log') SIZE 50 M REUSE.

    GROUP 3 (' / u01/oradata/c12/redo03.log') SIZE 50 M REUSE

    DATA FILE

    ' / u01/oradata/c12/system01.dbf'

    WE8MSWIN1252 CHARACTER SET

    content of Script memory:

    {

    the value of newname for tempfile 1 to

    "/ u01/oradata/c12/temp01.dbf";

    clone tempfile switch all;

    Catalog datafilecopy clone "/ u01/oradata/c12/test01.dbf."

    "/ u01/oradata/c12/sysaux01.dbf"

    "/ u01/oradata/c12/undotbs01.dbf"

    "/ u01/oradata/c12/users01.dbf";

    switch from clone datafile;

    }

    execution of Script memory

    executing command: SET NEWNAME

    renamed tempfile 1-/u01/oradata/c12/temp01.dbf in the control file

    catalogued data file copy

    DataFile copy file name=/u01/oradata/c12/test01.dbf RECID = 1 STAMP = 825422173

    catalogued data file copy

    DataFile copy file name=/u01/oradata/c12/sysaux01.dbf RECID = TONE 2 = 825422173

    catalogued data file copy

    DataFile copy file name=/u01/oradata/c12/undotbs01.dbf RECID = STAMP 3 = 825422174

    catalogued data file copy

    DataFile copy file name=/u01/oradata/c12/users01.dbf RECID = STAMP 4 = 825422174

    DataFile 2 passed to the copy of the data file

    entry of data copy file RECID = 1 STAMP = 825422173 file name=/u01/oradata/c12/test01.dbf

    DataFile 3 to the copy of the data file

    entry of data copy file RECID = 2 STAMP = 825422173 file name=/u01/oradata/c12/sysaux01.dbf

    DataFile 4 switched to the copy of the data file

    entry of data copy file RECID = STAMP 3 = 825422174 file name=/u01/oradata/c12/undotbs01.dbf

    DataFile 6 switched to the copy of the data file

    entry of data copy file RECID = 4 STAMP = 825422174 file name=/u01/oradata/c12/users01.dbf

    content of Script memory:

    {

    ALTER clone database open resetlogs;

    }

    execution of Script memory

    open database

    Finished the duplicate Db 13 / SEP / 06

    He has been identified as a bug and workaround is not to use the SIZE of the SECTION

  • Microsoft SQL server 2005 express edition - error 737D

    original title: microsoft SQL server 2005 express edition

    I tried to install an update to Microsoft SQL server 2005 (security for the SQL Server 2005 Service Pack 3 (KB970892) update

    Download size: 18.8 MB

    You may have to restart your computer for this update is taken into account.

    Update type: Important

    A security issue has been identified in the SQL Server 2005 Service Pack 3, which could allow a malicious user to compromise your system and take control. You can protect your computer by installing this update from Microsoft. After you install this item, you may have to restart your computer.

    More information:
    http://support.Microsoft.com/kb/970892

    Help and Support:
    http://support.Microsoft.com

    But unfortunately it will not install with a 737D error code I followed all instructions for help and get so far and then a message appears saying the feature you are trying to use is on a network unavailable resource, find another path that contains "sqlrun_sql.msi" now, I'm totally stuck. -can anyone help

    Hello

    See this link for some helpful suggestions and a possible ifx.
    http://answers.Microsoft.com/en-us/Windows/Forum/windows_other-windows_update/i-keep-getting-error-code-737D-when-trying-to/40db346c-6439-4484-9589-c78b326f5056

    Kind regards
    Afzal Taher
    Microsoft technical support engineer

  • Duplicate active Linux64 on Windows32

    Hello

    I try active duplicate of Centos5.9 64-bit to 32-bit of Windows XP. Because from what I've read, this should be possible, at least they have the same endian format. However, when I try it fails with the following error. Tried searching to no avail. If you can give some ideas that could be the reason.

    RMAN output:

    C:\Documents and Settings\Oracle > auxiliary rman to 'sys@ORCL as sysdba' target 'sys@ORAKAL as sysdba'

    Recovery Manager: release 11.2.0.3.0 - Production on Mon Nov 30 16:43:30 2015

    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

    target password database:

    connected to target database: ORCL (DBID = 1421427435)

    database Assistant password:

    connected to the auxiliary database: ORAKAL (unassembled)

    RMAN > database of target ORAKAL of the active database duplicate;

    From 30 November 15 Db double

    using the control file of the target instead of recovery catalog database

    allocated channel: ORA_AUX_DISK_1

    channel ORA_AUX_DISK_1: SID = 192 type device = DISK

    content of Script memory:

    {

    clone of SQL 'alter system set = db_name

    "ORCL" comment =

    ' Modified by RMAN duplicate "scope = spfile;

    clone of SQL 'alter system set db_unique_name =

    "ORAKAL" comment =

    ' Modified by RMAN duplicate "scope = spfile;

    clone to stop immediately;

    Start clone force nomount

    backup format copy current controlfile auxiliary ' C:\APP\ORACLE\FAST_RECOVERY_AREA\ORAKAL\CONTROLFILE\O1_MF_C5RR507Q_. CTL';

    change the clone database mount;

    }

    execution of Script memory

    SQL statement: change the system db_name set = comment "ORCL" = "modified by RMAN duplicate" scope = spfile

    SQL statement: alter system set db_unique_name = comment "ORAKAL" = "modified by RMAN duplicate" scope = spfile

    Instance Oracle to close

    Oracle instance started

    Total System Global Area 523108352 bytes

    Bytes of size 1385752 fixed

    314575592 variable size bytes

    201326592 of database buffers bytes

    Redo buffers 5820416 bytes

    From 30 November 15 backup

    allocated channel: ORA_DISK_1

    channel ORA_DISK_1: SID = 147 type device = DISK

    channel ORA_DISK_1: from data file copy

    copy the current control file

    tag name=/u01/app/oracle/product/11.2.0.3/dbs/snapcf_orcl.f output file = TAG20151

    130T 064402 RECID = STAMP 5 = 897115443

    channel ORA_DISK_1: datafile copy complete, duration: 00:00:01

    Backup completed on 30 November 15

    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-03002: failure of the command duplicate Db at 30/11/2015-16:44

    RMAN-04006: auxiliary database error: ORA-12518: TNS:listener could not hand off client connection

    RMAN-03015: an error has occurred in the script stored memory Script

    RMAN-06136: the auxiliary database ORACLE error: ORA-03113: end of file on communication channel

    Process ID: 2652

    Session ID: 63 serial number: 5

    SPFile to the database:

    * .audit_trail = "db".

    * full = '11.2.0.0.0'

    * .control_files = "

    * .db_block_size = 8192

    *.db_file_name_convert='/U01/app/Oracle/oradata/ORCL / ',' C:\app\oracle\oradata'

    * .db_name = "ORAKAL".

    * .db_recovery_file_dest = "C:\app\oracle\fast_recovery_area".

    * .db_recovery_file_dest_size = 4322230272

    * .db_unique_name = "ORAKAL".

    * .diagnostic_dest = "C:\app\oracle".

    *.log_file_name_convert='/U01/app/Oracle/oradata/ORCL ',' C:\app\oracle\oradata'

    * .memory_target = 524288000

    * .open_cursors = 300

    * runoff = 150

    * .remote_login_passwordfile = "EXCLUSIVE."

    * .standby_file_management = "auto".

    * .undo_tablespace = "UNDOTBS1.

    Listener.ora on server to the:

    SID_LIST_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (GLOBAL_DBNAME = ORAKAL)

    (SID_NAME = ORAKAL)

    (ORACLE_HOME = C:\app\oracle\product\11.2.0.3)

    )

    )

    LISTENER =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = < ip >)(PORT = 1521))

    )

    )

    ADR_BASE_LISTENER = C:\app\Oracle

    I managed to pass this error. The problem was that I had specifically put control_files empty string "(always check the alerts log!). I just put it in a file specific to the place. But now, to recover, I got the error:

    ORA-00600: internal error code, arguments: [ktbrcl:CDLC not in Czech Republic]

    which is described in several notes of support but the cause is if the primary database has been improved v10 or lower, but in my case - I installed 11.2.0.3 own on both machines.

    ---

    EDIT:

    Note, application of redo is not supported between Linux and Windows except with a database of pending. This means that the backup must be a

    cold (consistent) backup, requiring no application of redo.  If redo applies is required to recover the database on the new platform, it will fail.

    The backup method using coherent (cold) should be used for duplication of cross-platform.

  • ORA-00205: error in identifying controlfile

    Hello everyone,

    I have spend 10.2.0.2 to 11.2.0.4, when I start my DB I ora-00205: error in identifying controlfile

    SQL > startup pfile = upgrade ' / DISK3/app/oracle/product/11.2.0/db1/dbs/initPROD.ora'

    ORA-32006: USER_DUMP_DEST initialization parameter has been deprecated.

    ORA-32006: BACKGROUND_DUMP_DEST initialization parameter has been deprecated.

    ORA-25138: PLSQL_NATIVE_LIBRARY_DIR initialization parameter has been deprecated

    ORA-25138: PLSQL_NATIVE_LIBRARY_SUBDIR_COUNT initialization parameter has been deprecated

    ORA-32006: LOG_ARCHIVE_START initialization parameter has been deprecated.

    ORACLE instance started.

    Total System Global Area 2142679040 bytes

    Bytes of size 1365828 fixed

    486541500 variable size bytes

    1627389952 of database buffers bytes

    Redo buffers 27381760 bytes

    ORA-00205: error in the identification of control files, see log alerts for more information

    SQL > show parameter control_files;

    VALUE OF TYPE NAME

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

    control_files string DISK11/d01/oracle/PROD/db/apps_st/data/cntrl01.dbf,

    / DISK11/d01/oracle/PROD/db/apps_st/data/cntrl02.dbf,.

    /DISK11/D01/Oracle/prod/DB/apps_st/data/cntrl03.dbf

    any help

    What happened when you checked the log of alerts for more information? What did you find? These files exist? .dbf is a much more commonly associated with a data file - extension doesn't want not to say, he cannot be a control file, but that does not match a naming convention, I have never seen used.

  • RMAN-03002: failure of duplicate Db

    I tried to reproduce the target database without connecting to the target and the catalog. Under steps have been used, but I'm getting ' RMAN-06023: "for data files

    That RMAN is able to restore controlfile from specified backup location.

    Oracle version: 11.2.0.1.0

    OS version: release of Red Hat Enterprise Linux Server 6.4 (Santiago)

    $ rman auxiliary.

    Recovery Manager: release 11.2.0.1.0 - Production on Thu Nov 20 17:29:32 2014

    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

    connected to the auxiliary database: CLONEDB (unassembled)

    RMAN > duplicate target database to the location of backup clonedb ' / backup_database / ';

    From Db double-20_NOV_2014_17:46:18

    content of Script memory:

    {

    clone of SQL "create spfile from memory";

    }

    execution of Script memory

    SQL statement: create spfile memory

    content of Script memory:

    {

    clone to stop immediately;

    startup nomount clone;

    }

    execution of Script memory

    Instance Oracle to close

    connected to the auxiliary database (not started)

    Oracle instance started

    Total System Global Area 154484736 bytes

    Bytes of size 2211408 fixed

    100663728 variable size bytes

    46137344 of database buffers bytes

    Redo buffers 5472256 bytes

    content of Script memory:

    {

    clone of SQL 'alter system set = db_name

    "TDB" comment =

    ' Modified by RMAN duplicate "scope = spfile;

    clone of SQL 'alter system set db_unique_name =

    "CLONEDB" comment =

    ' Modified by RMAN duplicate "scope = spfile;

    clone to stop immediately;

    Start clone force nomount

    Restore controlfile primary clone of ' / backup_database/backup_TDB_set33_piece1_20141120_11po3oqn_1_1.bkp ';

    change the clone database mount;

    }

    execution of Script memory

    SQL statement: change the system db_name set = comment "TDB" = "modified by RMAN duplicate" scope = spfile

    SQL statement: alter system set db_unique_name = comment "CLONEDB" = "modified by RMAN duplicate" scope = spfile

    Instance Oracle to close

    Oracle instance started

    Total System Global Area 154484736 bytes

    Bytes of size 2211408 fixed

    100663728 variable size bytes

    46137344 of database buffers bytes

    Redo buffers 5472256 bytes

    From restoration to 20_NOV_2014_17:46:27

    allocated channel: ORA_AUX_DISK_1

    channel ORA_AUX_DISK_1: SID = 18 type of device = DISK

    channel ORA_AUX_DISK_1: restore the control file

    channel ORA_AUX_DISK_1: restoration complete, duration: 00:00:01

    output file name=/oracle/oradata/clonedb/control01.ctl

    output file name=/oracle/oradata/clonedb/control02.ctl

    Finished restore at 20_NOV_2014_17:46:29

    mounted database

    output channel: ORA_AUX_DISK_1

    allocated channel: ORA_AUX_DISK_1

    channel ORA_AUX_DISK_1: SID = 18 type of device = DISK

    content of Script memory:

    {

    until the SNA 1268283.

    the value of newname for datafile 1 to

    "/ oracle/oradata/clonedb/system01.dbf";

    the value of newname for datafile 2 to

    "/ oracle/oradata/clonedb/sysaux01.dbf";

    the value of newname for datafile 3 to

    "/ oracle/oradata/clonedb/undotbs01.dbf";

    the value of newname for datafile 4 to

    "/ oracle/oradata/clonedb/users01.dbf";

    the value of newname for datafile 5 to

    "/ oracle/oradata/clonedb/example01.dbf";

    the value of newname for datafile 6 to

    "/ oracle/oradata/clonedb/work1_1.dbf";

    the value of newname for datafile 7 to

    "/ oracle/oradata/clonedb/work2_1.dbf";

    restoration

    clone database

    ;

    }

    execution of Script memory

    executing command: SET until clause

    executing command: SET NEWNAME

    executing command: SET NEWNAME

    executing command: SET NEWNAME

    executing command: SET NEWNAME

    executing command: SET NEWNAME

    executing command: SET NEWNAME

    executing command: SET NEWNAME

    From restoration to 20_NOV_2014_17:46:34

    using the ORA_AUX_DISK_1 channel

    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-03002: failure of the command duplicate Db at 20/11/2014-17:46:34

    RMAN-05556: not all data files have backups can be recovered on SNA 1268283

    RMAN-03015: an error has occurred in the script stored memory Script

    RMAN-06026: some targets not found - abandonment of restoration

    RMAN-06023: no backup or copy of 7 found to restore

    RMAN-06023: no backup or copy of datafile 6 to restore

    RMAN-06023: no backup or copy of datafile 5 found to restore

    RMAN-06023: no backup or copy of the file 4 found to restore

    RMAN-06023: no backup or copy of datafile 3 found to restore

    RMAN-06023: no backup or copy of datafile 2 found to restore

    RMAN-06023: no backup or copy of datafile 1 found to restore

    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    backup was performed with script below

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

    run

    {

    allocate channels c1 device type disk format'/backup_database/backup_%d_set%s_piece%p_%T_%U.bkp';

    backup of database archivelog all;

    }

    [oracle@vm backup_database] $ ls - ltr *.bkp

    -rw - r-. 1 oracle oinstall 1096220672 20 Nov 17:45 backup_TDB_set31_piece1_20141120_0vpo3oou_1_1.bkp

    -rw - r-. 1 oracle oinstall 26722304 20 Nov 17:45 backup_TDB_set32_piece1_20141120_10po3oql_1_1.bkp

    -rw - r-. 1 oracle oinstall 10158080 20 Nov 17:46 backup_TDB_set33_piece1_20141120_11po3oqn_1_1.bkp

    [oracle@vm backup_database] $

    Please help me find the problem.

    Hi all

    Problem has been resolved.

    He had no problem with the command "duplicate target database to the backup location 'clonedb' ' / backup_database / '; '

    This command will also work.

    Resolution:-at first I was using backup for cloning. This time I used 'INCREMENTAL level 0' backup and it worked.

  • Why my static PL/SQL within SQL local variable is not transformed in space in the shared pool?

    Hello everyone,

    Oracle version: 12.1.0.1.0 - 64 bit

    OS: Linux Fedora Core 17 X86_64

    Description of the problem:

    I'm reading an interesting book of online oracle named: SQL in PL/SQL

    On page 11, it reads the following:

    In the absence of a compilation error, the PL/SQL compiler generates an equivalent statement of SQL regular text and stores this with the generated machine code. This instruction uses placeholders where the embedded SQL statement uses identifiers that have been resolved in the PL/SQL unit.

    What I understand of this (please, correct me if I'm wrong) is that whenever I write some static/embedded statement SQL within a PL/SQL block in which there are a few local variables in PL/SQL, and then final generated SQL statement (after resolution of identifier) will include placeholders (bind variables) instead of these identifiers the PL/SQL.

    I just wanted to see this in practice, so I made the following test:

    Test case:

    SQL> connect / as sysdba
    SQL> alter system flush shared_pool
    
    system altered
    

    So, normally, after execution of the foregoing the shared_pool on my development environment is now empty.

    And then I run the following PL/SQL block

    <<b>>
    declare
        depid hr.employees.department_id%type := 100;
        cnt   pls_integer := 0;
    begin
        select
            count(*)
        into
            b.cnt
        from
            hr.employees t1
        where
            t1.department_id = b.depid;
    end;
    /
    --
    --
    column sql_id new_value sqlid_saved;
    --
    select
        v1.sql_id
    from
        v$sql v1
    where
        v1.sql_text like '%t1.department_id = b.depid%';
    --     
    -- 
    select
        v1.sql_text
    from
        v$sql v1
    where
        v1.sql_id = '&sqlid_saved';
    

    And the result was:

    SQL_ID
    -------------
    687dxvsmrwm9z
    g17tjb3f8t94y

    6 old: v1.sql_id = "& sqlid_saved"
    6 new: v1.sql_id = "g17tjb3f8t94y".

    SQL_TEXT
    --------------------------------------------------------------------------------
    < < b > > declare depid hr.employees.department_id%type: = 100;     CNT pls_in
    SEB: = 0; Start select count (*) in b.cnt of
    T1 hr. Employees where t1.department_id = b.depid; end;


    SQL >

    What I don't understand is the main part of the SQL_TEXT I put in red.

    Instead of

    T1.department_id = b.depid

    I expected to see something like

    T1.department_id = : B

    In other words, some bind variable, because depid is a local variable inside my PL/SQL block used in integrated/static SQL statement, so it must be converted to a reserved space in the shared pool instead of the original identifier.

    You kindly could you tell me what I misunderstood?

    Thanks in advance

    > But once again no variable binding in the stored/parsed SQL statement. That's what I don't understand.

    Submitted by PL/SQL SQL is "normalized", which includes (among other things) convert uppercase. Your query on v$ sql is looking for '% hr.employees% '.

  • Unable to solve the ORA-12154: TNS: could not resolve the connect identifier specified

    Hi friends,

    I'm unable to resolve ORA-12154: TNS: could not resolve the connect identifier specified, error:

    C:\Windows\System32 > sqlplus scott/tiger@ORADATA

    SQL * more: Production release 11.2.0.1.0 on Sun Feb 2 13:46:10 2014

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

    ERROR:

    ORA-12154: TNS: could not resolve the connect identifier specified

    SQL > select database_name from v$ database;

    DATABASE_NAME

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

    ORADATA

    SQL > select instance_name from v$ instance;

    INSTANCE_NAME

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

    oradata

    tnsnames.ora

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

    ORADATA =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP)(HOST=himanshu-PC) (PORT = 1521))

    )

    (CONNECT_DATA =

    (SERVICE_NAME = oradata)

    (SERVER = DEDICATED)

    )

    )

    Listener.ora

    =========

    LISTENER =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = himanshu-PC)(PORT = 1521))

    )

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))

    )

    )

    SID_LIST_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (GLOBAL_DBNAME = ORADATA)

    (ORACLE_HOME = G:\app\himanshu\product\11.2.0\dbhome_1)

    (SID_NAME = oradata)

    )

    )

    SQLNET.ora

    ========

    SQLNET. AUTHENTICATION_SERVICES = (NTS)

    C:\Windows\System32 > lsnrctl status

    LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on February 2, 2014 13:53:37

    Copyright (c) 1991, 2010, Oracle.  All rights reserved.

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = himanshu-PC)(PORT=1521)))

    STATUS of the LISTENER

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

    Alias LISTENER

    Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Production

    Start date February 2, 2014 13:29:35

    Uptime 0 days 0 h 24 min 6 sec

    Draw level off

    Security ON: OS Local Authentication

    SNMP OFF

    Listener parameter File G:\app\himanshu\product\11.2.0\dbhome_1\network\admin\listener.ora

    G:\app\himanshu\diag\tnslsnr\himanshu-PC\listener\alert\log.XML log listener

    Summary of endpoints listening...

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = himanshu-PC)(PORT=1521)))

    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))

    Summary of services...

    Service 'ORADATA' has 2 occurrences.

    Instance "ORADATA', status UNKNOWN, has 1 operation for this service...

    Instance "oradata' READY State, has 1 operation for this service...

    Service 'ORADATAXDB' has 1 instance (s).

    Instance "oradata' READY State, has 1 operation for this service...

    The command completed successfully

    Kindly guide whats wrong with my setup.

    You can remove your tnsnames.ora if he isn't there the other TNS inside. and use netmanager

    http://docs.Oracle.com/CD/E11882_01/network.112/e41945/AdminTools.htm#NETAG216

    Concerning

  • Install HRCS9.0 Linux question: the application designer and Tuxedo domain Boot have SQL error

    People,


    Hello. I was installing HCM and Campus Solution 9.0 with PeopleTools8.53. Server machine is Oracle Linux 5.10 and Windows XP-based client computer.  The architecture of my internet is WebLogic11g/Tuxedo11g/OracleDatabase 11 GR 1 material. PeopleTools 8,53 works correctly in the browser.

    In the database server Oracle Linux 5.10 machine, I run scripts 'createdb10.sql, utlspace.sql, hrcddl.sql, dbowner.sql, psroles.sql, psadmin.sql and connect.sql' one by one. Can I use Data Mover to load Windows XP data into the Oracle Linux 5.10 DB HRCS90 instance. The Data Mover script hrcs90ora.dms is done correctly in Windows XP. Configuration Manager is configured correctly.  But when I login in the application designer, I can't connect and get the message as below:


    «Security Table Manager (Get): the database is release 8.52.»  The PeopleTools running require databases at 8.53 release. »


    I followed the http://docs.oracle.com/cd/E37306_02/psft/acrobat/PeopleTools-8.53-Upgrade_02-2013.pdf document to upgrade HCM and HR 9.0 revision 5 Database Instance HRCS90 in Oracle Database Server with Linux. My upgrade is complete. The above problem is solved.

    When I login in the application designer in Windows XP, the error message as below:

    File: E:\pt853-903-R1-retail\peopletools\src\pssys\stmget.cpp SQL error.

    Stmt #: 2539 error Position: 26 back: 904-ORA-00904: "OPERPSWDSALT": invalid identifier:

    Fail SQL Stmt:

    Select the VERSION, OPERPSWD, OPERPSWDSALT, ENCRYPTED, SYMBOLICID, ACCTLOCK from myAccessId.PSOPRDEFN where OPRID =: 1

    When I boot the Tuxedo Application Server Domain HRCS90 under Linux, I get the same error message as below:

    File:/VOB/PeopleTools/src/pssys/stmget.cpp an SQL error:

    Stmt #: 2539 error Position: 26 back: 904-ORA-00904: "OPERPSWDSALT": invalid identifier:

    Fail SQL Stmt:

    Select the VERSION, OPERPSWD, OPERPSWDSALT, ENCRYPTED, SYMBOLICID, ACCTLOCK from myAccessId.PSOPRDEFN where OPRID =: 1

    ... ...

    GenMessageBox (0,0,M): Signon database: could not access the HRCS90 database with user Psalm code

    I checked the PSOPRDEFN table in the database Linux HRCS90, not the OPERPSWDSALT field.

    I also checked the connection process PS the user traverses the 3 tables: PSOPRDEFN and PSACCESSPRFL, PSSTATUS.

    My oprid, the symbolicid and the accessid ownerid in the 3 tables are correct.

    My question is:

    Why is there a strange OPERPSWDSALT field in the SQL statement that causes Signon failed?  How to solve the problem of access code?

    Thank you.

    > Then it connects with SQL > and then run script rel853.sql, but its outcome is not just because the database is started with sysdba.

    The database is always started '' as sysdba. '' "Useless" to connect as sysdba to run the PSoft script while accessid.

    You need to come back in the book of the Oracle.

    Fair enough, this is my last word to this thread.

    Nicolas.

  • DUPLICATE TAPE BACKUP DATABASE


    Hello

    I wonder if someone can help me. My environment is Linux, and the Oracle version is 11.2.0.3.0. I'm trying to clone a database from one server to another by using a tape backup (no database). I implemented the appropriate TNS entries, so that the two systems can communicate. I created a password file and a PFILE in the destination server, and I started upward (NOMOUNT) of the instance.

    Initially, I tried the operation from the destination server; I received the error message such as: RMAN-06100: no channel to restore a backup or a copy of the data file 11

    Suspecting that the destination server have not may not be the level of appropriate access to the MLL, I tried the operation from the source server.

    But I am getting: RMAN-06101: no channel to restore a backup or a copy of the control file

    Source database: MM1

    (Cloned) database of destination: MBA

    RMAN script

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

    target connection.
    connection Assistant sys/***@MBA

    Run {}
    allocate channel 'dev_01' type 'sbt_tape '.
    parms ' ENV = (OB2BARTYPE = SAP, MM1, OB2BARLIST = WYC_CENTRICA_wycvlsapx115_SAP_MM1_ON_Weekly = OB2APPNAME), SBT_LIBRARY = / opt/omni/lib/libob2oracle8_64bit.so ';
    allocate channel 'dev_02' type 'sbt_tape '.
    parms ' ENV = (OB2BARTYPE = SAP, MM1, OB2BARLIST = WYC_CENTRICA_wycvlsapx115_SAP_MM1_ON_Weekly = OB2APPNAME), SBT_LIBRARY = / opt/omni/lib/libob2oracle8_64bit.so ';
    allocate channel 'dev_03' type 'sbt_tape '.
    parms ' ENV = (OB2BARTYPE = SAP, MM1, OB2BARLIST = WYC_CENTRICA_wycvlsapx115_SAP_MM1_ON_Weekly = OB2APPNAME), SBT_LIBRARY = / opt/omni/lib/libob2oracle8_64bit.so ';
    allocate channel 'dev_04' type 'sbt_tape '.
    parms ' ENV = (OB2BARTYPE = SAP, MM1, OB2BARLIST = WYC_CENTRICA_wycvlsapx115_SAP_MM1_ON_Weekly = OB2APPNAME), SBT_LIBRARY = / opt/omni/lib/libob2oracle8_64bit.so ';
    Disc CHANNEL AUXILIARY ALLOCATE c1 TYPE of AIRCRAFT;
    up to the time "to_date('14-aug-2013:16:20','dd-mon-YYYY:hh24:mi')";
    DUPLICATE THE MBA NOFILENAMECHECK TARGET DATABASE;
    output channel c1;
    release the string "dev_01";
    release the string "dev_02";
    release the string "dev_03";
    release the string "dev_04";
    }

    Journal:

    ------

    Recovery Manager: release 11.2.0.3.0 - Production Fri Aug 15 11:27:24 2013

    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

    RMAN >
    RMAN >
    connected to target database: MM1 (DBID = 1713891644)

    RMAN >
    connected to the auxiliary database: MBA (unassembled)

    RMAN >
    RMAN > 2 > 3 > 4 > 5 > 6 > 7 > 8 > 9 > 10 > 11 > 12 > > > > > > 18 17 16 15 14 13 >
    using the control file of the target instead of recovery catalog database
    allocated channel: dev_01
    channel dev_01: SID = 188 device type = SBT_TAPE
    channel dev_01: A.06.20/PHSS_42081/PHSS_42082/DPSOL_00448/DPLNX_ Data Protector

    allocated channel: dev_02
    channel dev_02: SID = 17 device type = SBT_TAPE
    channel dev_02: A.06.20/PHSS_42081/PHSS_42082/DPSOL_00448/DPLNX_ Data Protector

    allocated channel: dev_03
    channel dev_03: SID = 191 device type = SBT_TAPE
    channel dev_03: A.06.20/PHSS_42081/PHSS_42082/DPSOL_00448/DPLNX_ Data Protector

    allocated channel: dev_04
    channel dev_04: SID = 31 device type = SBT_TAPE
    channel dev_04: A.06.20/PHSS_42081/PHSS_42082/DPSOL_00448/DPLNX_ Data Protector

    allocated channel: c1
    channel c1: SID = 161 type device = DISK

    executing command: SET until clause

    From duplicate Db 15 August 13

    content of Script memory:
    {
    clone of SQL "create spfile from memory";
    }
    execution of Script memory

    SQL statement: create spfile memory

    content of Script memory:
    {
    clone to stop immediately;
    startup nomount clone;
    }
    execution of Script memory

    Instance Oracle to close

    connected to the auxiliary database (not started)
    Oracle instance started

    Total System Global Area 6631034880 bytes

    Bytes of size 2240744 fixed
    2315259672 variable size bytes
    Buffers data 4294967296 bytes
    Redo buffers 18567168 bytes
    allocated channel: c1
    channel c1: SID = 11 type of device = DISK

    content of Script memory:
    {
    until the SNA 208772810.
    clone of SQL 'alter system set = db_name
    "MM1" comment =
    ' Modified by RMAN duplicate "scope = spfile;
    clone of SQL 'alter system set db_unique_name =
    "MBA" comment =
    ' Modified by RMAN duplicate "scope = spfile;
    clone to stop immediately;
    Start clone force nomount
    Restore controlfile primary clone;
    change the clone database mount;
    }
    execution of Script memory

    executing command: SET until clause

    SQL statement: change the system db_name set = comment "MM1" = "modified by RMAN duplicate" scope = spfile

    SQL statement: alter system set db_unique_name = comment "MBA" = "modified by RMAN duplicate" scope = spfile

    Instance Oracle to close

    Oracle instance started

    Total System Global Area 6631034880 bytes

    Bytes of size 2240744 fixed
    2315259672 variable size bytes
    Buffers data 4294967296 bytes
    Redo buffers 18567168 bytes
    allocated channel: c1
    channel c1: SID = 160 type device = DISK

    From restoration to August 15, 13

    output channel: dev_01
    output channel: dev_02
    output channel: dev_03
    output channel: dev_04
    output channel: c1
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Db in dual at 15/08/2013 11:28:44
    RMAN-05501: abandonment of duplicate target database
    RMAN-03015: an error has occurred in the script stored memory Script
    RMAN-06026: some targets not found - abandonment of restoration
    RMAN-06101: no channel to restore a backup or a copy of the control file

    RMAN >
    RMAN >

    Complete recovery manager.

    I finally understood what was wrong with my approach. I had missed a bit in the literature: the definition of AUXILIARY channel should be the same as that used for the backup. Of course, RMAN normally does you not clear in its mystical error messages.

    In addition, according to the document, it's a good idea to create a SPFILE in the auxiliary instance. I did it.

    Therefore, in my case, the same channels as those used for backups on tape. So is the syntax I used successfully:

    target connection.
    connection Assistant sys/***@MBA

    Run {}
    allocate channel 'dev_01' type 'sbt_tape '.
    parms ' ENV = (OB2BARTYPE = SAP, MM1, OB2BARLIST = WYC_CENTRICA_wycvlsapx115_SAP_MM1_ON_Weekly = OB2APPNAME), SBT_LIBRARY = / opt/omni/lib/libob2oracle8_64bit.so ';
    allocate channel 'dev_02' type 'sbt_tape '.
    parms ' ENV = (OB2BARTYPE = SAP, MM1, OB2BARLIST = WYC_CENTRICA_wycvlsapx115_SAP_MM1_ON_Weekly = OB2APPNAME), SBT_LIBRARY = / opt/omni/lib/libob2oracle8_64bit.so ';
    allocate channel 'dev_03' type 'sbt_tape '.
    parms ' ENV = (OB2BARTYPE = SAP, MM1, OB2BARLIST = WYC_CENTRICA_wycvlsapx115_SAP_MM1_ON_Weekly = OB2APPNAME), SBT_LIBRARY = / opt/omni/lib/libob2oracle8_64bit.so ';
    allocate channel 'dev_04' type 'sbt_tape '.
    parms ' ENV = (OB2BARTYPE = SAP, MM1, OB2BARLIST = WYC_CENTRICA_wycvlsapx115_SAP_MM1_ON_Weekly = OB2APPNAME), SBT_LIBRARY = / opt/omni/lib/libob2oracle8_64bit.so ';
    ALLOCATE AUXILIARY CHANNEL aux1 DEVICE TYPE 'sbt_tape '.
    parms ' ENV = (OB2BARTYPE = SAP, MM1, OB2BARLIST = WYC_CENTRICA_wycvlsapx115_SAP_MM1_ON_Weekly = OB2APPNAME), SBT_LIBRARY = / opt/omni/lib/libob2oracle8_64bit.so ';
    up to the time "to_date('15-aug-2013:12:30:46','dd-mon-YYYY:hh24:mi:ss')";
    DUPLICATE THE MBA NOFILENAMECHECK TARGET DATABASE;
    output aux1 channel;
    release the string "dev_01";
    release the string "dev_02";
    release the string "dev_03";
    release the string "dev_04";
    }

    To improve the programming of schedules, the next time I can increase the number of auxiliary channels. I need to know how many tape drives, I have at my disposal.

  • ORA-12154 error using SQL PLUS

    I have no problems connecting using SQL Developer, but I'm having issues using SQL Plus or command prompt. I also set the Oracle_home and SID and still it fails with the following message. Is there anything I can check?

    ORA-12154: TNS could not resolve the connect identifier

    The same account and tnsnames work well using SQL Developer.

    BSK wrote:
    Here's the info. Not sure why only SQL MORE fails to solve the connection identifier when the SQL Developer works very well.

    tnsnames.ora

    B51 =
    (DESCRIPTION =
    (SDU = 32768)
    (ADDRESS = (PROTOCOL = TCP (PORT = 1527))(HOST = hostname.com))
    (CONNECT_DATA =
    (SERVICE_NAME = B51)
    )
    )

    SQLNET.ora

    sqlnet.ora # Network Configuration file: C:\oracle\product\11.2.0\client_1\network\admin\sqlnet.ora
    # Generated by Oracle configuration tools.

    # This file is actually generated by netca. But if customers can opt for
    # install 'Software Only', this file does not exist and without the native
    authentication #, they will not be able to connect to the database on NT.

    SQLNET. AUTHENTICATION_SERVICES = (NTS)

    NAMES. DIRECTORY_PATH = (TNSNAMES, EZCONNECT)

    That's what I'm trying:

    view the results at the bottom

    sqlplus username/passwd@'hostname.com:1527/B51'

  • Reg: SQL query execution time

    Hi all

    How to identify the oracle sql query execution time.

    Thanks in advance.
    SQL> set timing on
    
  • ORA-00904: "SPN": invalid identifier

    Team

    I'm caught in a situation, and I'm tender hand for support. I am importing scripts on Data Mover and I get this error:

    File: Data error MoverSQL. Stmt #: 0 error Position: 2293 return: 904 - ORA-00904: "SPN": invalid identifier
    Failure of SQL stmt:INSERT IN PS_INSTALLATION (COMPANY, MIN_STD_HRS, MAX_STD_HRS, EMPLID_LENGTH, STD_HRS_DEFAULT, STD_HRS_FREQUENCY, TEMP_SSN_MASK, COMMIT_AFTER, POSITION_MGMT, COUNTRY, COMP_FREQUENCY, EMPLID_LAST_EMPL, NON_EMPLOYEE_LAST, DEMAND_ID_LAST, POSN_NBR_LAST, GRIEVANCE_NBR_LAST, INCIDENT_NBR_LAST, CLAIM_NBR_LAST, FILE_CREATE_LAST, ROE_NBR_LAST, CAN_CMA) CAN_IND_SECTOR, MULTI_STEP_GRADE, FSA_CLAIMS, BENEFIT_ADMINISTRN, START_EVENT_DT, EXCHNG_TO_CURRENCY, EXCHNG_TO_RT_TYPE, HR, AM, AP, AR, GL, DB, PC, PO, INV, BI, OM, PUBLIC_SECTOR, RETROPAY_SEQ_LAST, RETRODED_SEQ_LAST, RETRO_DEDUCTIONS, TL, AUTO_EE_TAX, SAME_ST_LCL_RSDNCE, FMLA_ADMINISTRN, BAL_ID_FOR_CAL_YR, MAX_ROWS_SCROLL, PA, CAR_LAST BEN_BILLING, COBRA_ADMINISTRN, LAST_TL_CONTRCTR, ORGCHART, COBRA_EMPLID_LAST, FSA_CLAIM_NBR_LAST, FSA_CRY_CLAIM_LAST, US, POSSIBLE, GER, FRA, UK, JPN, NICE, NLD, ESP, MEX, AUS, MYS, NZL, SGP, HKG, INSTALLED_PAY_GBL, IND, BRA, CHN, THA, INSTALLED_PAY_NA, INSTALLED_PAY_INT, USE_POINTS_SW, USE_RTCD_GROUP_SW, ROWSECCLASS, ILL_NBR_LAST_GER, EDF, FP_FLAG , GVT_PAY_BASIS, ACCT_CD_LAST, CPS_TRANS_ID_LAST, CHE, ITA, ALLW_CONC_CALCCONF, PIN_NUM_LAST, GP_CST_INSTALL_IND, AP_INVNO_PREFIX, AP_INVNO_LAST, ST, ILL_NBR_LAST_NLD, ADJ_TL_FINAL_CHK, ADJ_TL_ONL_CHK, ADJ_TL_REV_ADJ, REFRSH_TL_JOB_CHG, REFRSH_TL_PRECALC, PSEBENEFITS, PSECOMP, PSEPAY, PSEPROFILE, PSERECRUIT, CCU, PSEA, INSTALLED_GP_AUS INSTALLED_GP_BRA, INSTALLED_GP_CAN, INSTALLED_GP_CHE, INSTALLED_GP_CHN, INSTALLED_GP_DEU, INSTALLED_GP_ESP, INSTALLED_GP_FRA, INSTALLED_GP_HKG, INSTALLED_GP_IND, INSTALLED_GP_ITA, INSTALLED_GP_JPN, INSTALLED_GP_MEX, INSTALLED_GP_MYS, INSTALLED_GP_NLD, INSTALLED_GP_NZL, INSTALLED_GP_SGP, INSTALLED_GP_THA, INSTALLED_GP_UK, INSTALLED_GP_USA, PSECOMP_MGR, PSEPROFILE_MGR , PSERECRUIT_MGR, PG, FO_PBM, AUTO_JOB_END, AUTO_JOB_SUSPEND, TEMP_ASSGN_ID_LAST, EHC, EPG, UPR, APS_AUS, DI, RP, INSTALLED_GP_ARG, INSTALLED_GP_IRL, INSTALLED_GP_TWN, TL_MOBILE, PSEPERF_MANAGEMENT, AA_ENABLED_JPN, INSTALLED_PAY_PPS, AV, SA, SG, HGA, ELM, PS_GL_VERSION, ADP, RSRW, CSS, HMCF_VALID_CACHE, HMCF_CACHE_RETAIN, HMCF_EIP_LIMIT LAST_OSHA_CASE_NBR (, GVT_NFC_INDICATOR, MILITARY, BEN_DED_CLS_ORDER, TBH_SEQ_LAST, ENC_TRIGGER, LAST_SP_ID_ASSIGN, UPD_INCUMB_LMT, INSTALLED_OWS, OWS_SEQ_LAST, SAIP, HP_ENFORCE_RTBC, HP_KK_BUDGET_PROC, ARG, TMOD, SPN) VALUES (: 1,: 2,: 3,: 4,: 5,: 6,: 7: 8: 9,: 10:11,: 12,: 13:14,: 15,: 16,: 17,: 18,: 19,: 20,: 21,: 22,: 23: 24). ,: 25, TO_DATE(:26,'YYYY-MM-DD'),: 27,: 28,: 29,: 30,: 31,: 32,: 33,: 34,: 35,: 36: 37,: 38: 39,: 40,: 41,: 42,: 43,: 44,: 45,: 46,: 47,: 48,: 49,: 50,: 51,: 52: 53,: 54,: 55: 56,: 57,: 58,: 59,: 60,: 61,: 62,: 63,: 64,: 65,: 66,: 67,: 68,: 69,: 70,: 71,: 72,: 73,: 74,: 75,: 76,: 77,: 78,: 79,: 80,: 81,: 82 ,: 83,: 84,: 85,: 86,: 87,: 88,: 89,: 90,: 91,: 92,: 93,: 94,: 95,: 96: 97: 98: 99,: 100,: 101,: 102,: 103,: 104,: 105,: 106,: 107,: 108,: 109,: 110,: 111,: 112,: 113,: 114,: 115,: 116,: 117,: 118,: 119,: 120,: 121,: 122,: 123,: 124,: 125,: 126,: 127,: 128,: 129,: 130,: 131,: 132,: 133,: 134,: 135,: 136,: 137,: 138,: 139: 140: 141,: 142,: 143 (,: 144,: 145,: 146,: 147,: 148,: 149,: 150,: 151,: 152,: 153,: 154,: 155: 156,: 157,: 158,: 159,: 160,: 161,: 162,: 163,: 164,: 165,: 166,: 167,: 168,: 169,: 170,: 171,: 172,: 173,: 174,: 175,: 176: 177: 178,: 179)

    No idea why? In the event that you need to know, I am running PT8.50 on the Oracle and HRMS 9.1 database. Be blessed

    If you use 10g or more version of database, run the script below is.

    coil c:/temp/drop.lst
    set pages 0
    SELECT 'DROP '. OBJECT_TYPE | » '|| OWNER: '. ' || Object_name |' purge; "FROM DBA_OBJECTS WHERE OWNER IN ('SYSADM') AND OBJECT_TYPE IN ('DATABASE LINK");
    spool off

    This will generate a spool in c:/temp/drop.lst file

    Now run below a hold in the database as file below.

    SQL > @c:/temp/drop.lst

    Check Finally you do not find any object in the schema SYSADM by running the script below.

    SELECT COUNT (*), OBJECT_TYPE FROM DBA_OBJECTS WHERE OWNER = 'SYSADM' GROUP OF OBJECT_TYPE.

    Thank you

Maybe you are looking for

  • application source Event viewer event id 1000 error

    Dear, I am running windows server 2008 r2 in my business and recently started Active Directory to freezes from time to time, and im not able to use it, below that is the event that is logged in the event viewer: can you please help as im not able to

  • KB958483 - X 86 .exe is not a valid WIN32 Application

    I tried to download an install the update mentioned above and got the download. However, when I tried to install I got the above error message.

  • upgrade processor for my Pavillion DV7 - 4077CL

    I would like to know if I can improve my cpu to an Intel Dual Core i3 350M 2.26 Ghz with an Intel Dual Core i5 - 430 M 2.26 Ghz or any other faster processor model. Semper Fi

  • Have a problem with the Remote Desktop feature

    I'm doing my accessible remote desktop but the only option I have the 'rare' tab in the property window system is 'Remote Assistance '. All online guides show three remote desktop options which I don't have. How can I fix? Running Vista btw *.

  • Inspiron 15R (N5110, early 2011) Dell software Delete?

    I have an Inspiron 15R (N5110, early 2011).My question is, can I safely remove some software from Dell? Software Dell that I want to delete and never use it. 1 Dell DataSafe Local Backup (didn't work as I bought it) 2 Dell DataSafe Local Backup-Suppo