I am getting ORA-01007 error at runtime in forms

Hello All,
Good Mornig!
I am new to this group.
I have some problems with oracle forms 9i. I am not able to findout the correct reason
for the below problem.
Please read information given below and give me the exact reason what has happend,
1) We have 2 different schemas,one user_samp1 and other user_real .
When we compile the forms against user_samp1 schema and deploy in
production(user_real), we are getting runtime error ie ORA-01007.
When we debug the problem ,we found that the error was with a cursor which
was taking the data using * . ie 'cursor a is select * from table1'. When the cursor is
opened, we were getting this error.
But when we replace * with columns ( ie 'cursor a is select col1,col2 from table1' )
Or the form is compiled against production schema, this error is not coming.
The structure in the two schemas is as below....
user_samp1 ::
table1 ::
col1 number
col2 number
col3 char
production
table1 ::
col1 number
col3 char
col2 number
I am giving the structure because the order of columns is different, when you describe
in those two different schemas.
We are using forms 9i (and oracle 9i) and these forms are migrated from forms 6i.
( Same problem with 10g forms )
2) The below statement works even the col2 column is not present in table2 ,
Select col1 from table1 where col2 in (select col2 from table2);
But when you use alias then the above query gives error.
( This query might be taking col2 in table1 as value for the col2 present in
subquery for table2. But is this not confusing)
3)Is there anyway to findout all the objects(Oracle Objects Used in forms) present in a form. (eg For doing impact)
Thanks in Advance.
With Regards,
Sreekanth Babu

Cause: A reference was made to a variable not listed in the SELECT clause. In
OCI, this can occur if the number passed for the position parameter is less than
one or greater than the number of variables in the SELECT clause in any of the
following calls: DESCRIBE, NAME, or DEFINE. In SQL*Forms or SQL*Report,
specifying more variables in an INTO clause than in the SELECT clause also
causes this error.
Action: Determine which of the problems listed caused the problem and take
appropriate action.

Similar Messages

  • Getting ORA-01429 error while changing character set

    When I am changing character set from WE8DEC to AL32UTF8, I am getting ORA-01429 error
    SQL> ALTER DATABASE CHARACTER SET INTERNAL_USE AL32UTF8 ;
    ALTER DATABASE CHARACTER SET INTERNAL_USE AL32UTF8
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01429: Index-Organized Table: no data segment to store overflow row-pieces

    Chockalingam wrote:
    I am using above steps as per oracle doc only.
    http://docs.oracle.com/cd/B10500_01/server.920/a96529/ch10.htm
    No, you are not.
    - You are not using the correct version doc vs. Oracle server version. Try to find the same suggestion in the relevant doc.
    - The doc you reference specifically says "... it can be used only under special circumstances. The ALTER DATABASE CHARACTER SET statement does not perform any data conversion, so it can be used +if and only if the new character set is a strict superset of the current character set+." (emphasis is mine)
    You do not have a strict superset.
    - Also the special clauses you have used are not documented - for a reason.
    Please edit your posts above to remove the ill-advice (steps with internal use only clauses) that does not belong on a forum.
    Edited by: orafad on Mar 16, 2012 9:47 PM

  • Suddenly getting ORA-12514 error Oracle 11gr2

    I installed Oracle 11g r2 fine, had 2 databases (se3 and mydb, both have db_domain .orcl i.e. mydb.orcl and se3.orcl) running on it fine till yesterday. but suddenly im getting ORA-12514 error (TNS:listener doesn't know of service requested in connect descriptor)..
    My tnsnames.ora file:
    # tnsnames.ora Network Configuration File: G:\oracledb\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    LISTENER_MYDB =
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
        (CONNECT_DATA =
          (SID = CLRExtProc)
          (PRESENTATION = RO)
    MYDB =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = mydb.orcl)
    SE3 =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = se3.orcl)
    LISTENER_SE3 =
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    and my listener.ora file is as follows:
    # listener.ora Network Configuration File: G:\oracledb\product\11.2.0\dbhome_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = G:\oracledb\product\11.2.0\dbhome_1)
          (PROGRAM = extproc)
          (ENVS = "EXTPROC_DLLS=ONLY:G:\oracledb\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    ADR_BASE_LISTENER = G:\oracledb
    * i have both of databases up and running(confirmed through administration assistant), the listener is up.. im able to execute "tnsping mydb/se3".. i'm not able to connect to either one of them through sqlplus/sql developer.. The result of "lsnrctl service" is as follows:
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
      TNS-00511: No listener
       32-bit Windows Error: 2: No such file or directory
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
      Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:0 refused:0
             LOCAL SERVER
    The command completed successfully
    PLEASE HELP ME FRIENDS!! I HAVE A PROJECT DUE IN EARLY OCTOBER

    Hi,
    Instead of this:
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = G:\oracledb\product\11.2.0\dbhome_1)
          (PROGRAM = extproc)
          (ENVS = "EXTPROC_DLLS=ONLY:G:\oracledb\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    have the following in your listener file
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = G:\oracledb\product\11.2.0\dbhome_1)
          (PROGRAM = extproc)
          (ENVS = "EXTPROC_DLLS=ONLY:G:\oracledb\product\11.2.0\dbhome_1\bin\oraclr11.dll")
       (SID_DESC =
          (SID_NAME = mydb)
          (ORACLE_HOME = G:\oracledb\product\11.2.0\dbhome_1)
        (SID_DESC =
          (SID_NAME = se3)
          (ORACLE_HOME = G:\oracledb\product\11.2.0\dbhome_1)   
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    Also, dont have 'localhost' in your listener.ora file, provide the actual IP or hostanme. NEVER YOU should have
    localhost.
    Restart listener and try.
    Thanks &
    Best Regard,

  • Oracle Collaborate Suite ORA-6502 error during loging or form submitting

    Hi!
    I had Oracle Collaborate Suite ORA-6502 error during loging or form submitting:
    Internal error (WWC-00006)
    An unexpected error has occurred (WWS-32100)
    ORA-6502: ORA-06502: PL/SQL: numeric or value error: character string buffer too small (WWC-36000)
    Unexpected error encountered in wwsec_api.person_info (ORA-06502: PL/SQL: numeric or value error: character string buffer too small) (WWC-41417)
    Error (WWS-20000)
    An unexpected error has occurred (WWS-32100)
    ORA-6502: ORA-06502: PL/SQL: numeric or value error: character string buffer too small (WWC-36000)
    Unexpected error encountered in wwsec_api.person_info (ORA-06502: PL/SQL: numeric or value error: character string buffer too small) (WWC-41417).
    This happened when:
    I was using Russian letters in OCS HTML forms (for example - in Administration provision console or in my own HTML forms)
    and only I work in Linux (with UTF-8 encoding) (in Windows with win1251 encoding all is OK).
    My Database NLS not-null Parameters are:
    NLS_LANGUAGE      - AMERICAN
    NLS_LENGTH_SEMANTICS      - BYTE
    NLS_TERRITORY      - AMERICA
    NLS_CHARACTERSET - AL32UTF8
    NLS_NCHAR_CHARACTERSET - AL16UTF16
    WHAT MUST I DO TO AVOID THIS SITUATION?
    Thank
    Valery

    All,
    It appears that the page Javascript maximum limit size was reached. The error stopped appearing after some of the page Javascript code was removed out to Application Static Files. I wonder if there exists any "direct" indicator by the system whenever the size limit has been reached?
    Again, the run error only occurred when the page was loaded in "Debug" mode.
    Bernard

  • How to find the cause ofan error at runtime in forms (10g)

    hi
    can u please tell me how to find the cause ofan error at runtime.
    in forms 6i, the shortcut key is shift+f1
    i needthe shotcut key in 10g forms.
    thanx

    or just look in you menu help, -- last error or you can find the list of shortcut keys there ...
    \Erwin

  • ORA - 12560 Error Whilst i run form

    Can anybody please figure out my problem ???
    i got ORA 12560 Error when i run form ..i am new with oracle ..please help me out ..

    Is this an Oracle Apps environment? If so, what is the application release?
    Is this a standard or custom form?
    Please elaborate more so others can help.

  • Getting "ORA-12703" error in forms 10.1.2.3.0 and database 11.1.0.6.0

    Hello All,
    I am using forms 10g (10.1.2.3.0) version with database 11g (11.1.0.6.0).
    I did some modification in a package. That package is getting called in the forms. After doing modification (just add one if condition) in the package procedure (Not added parameter) I connected to the application and calling the form. I am getting the error message "ORA-12703". After that if I am just compile all the forms, one form is working fine. But in some other form it is not working properly. Still I am getting the error message "ORA-12703". I just put some debug message in the package and form, I compiled both form and package. At this time both are working fine. But if I am putting some debug message in the package only then it is not working. Getting the same error message.
    Does it a forms or database issue or I need to do some thing? Any suggestion welcome.
    Thanks
    SUN

    ORA-12703 this character set conversion is not supported
    Cause: An attempt was made to use the CONVERT function to convert between two character sets, and the requested conversion is not possible due to unavailability of one or both character sets.
    Action: Use character sets available on the system in the CONVERT function.
    What character set do you have on the database and what charset on the client side? Maybe SQL*Net issues the convert function when you use different charsets for both?

  • Oracle 8i, Getting ORA-1501 error while creating new DB

    Hi folks,
    I am trying create a new database on an HP Machine (Details given below) but getting following error.
    ORA-1501 - signalled during Create Database
    LOGFILE 'G:\logfiles\logaf1.ora'
    We actually have a custom application setup.exe to create new database.
    Same setup when installed on a different low end machine works fine.
    Before begining the setup in summary page it shows following information.
    Block buffer count = -3 Bytes
    Shared Pool Size = -41425 KBytes
    Yes the values displayed are in negative.
    Don't know if this is the reason for the ORA-1501 error.
    Can anyone please suggest how to resolve this issue.
    Machine configuration is as follows:
    H/W details:
    HP Server with RAID configuration
    4, PIII CPU's
    RAM: "4 GB"
    S/W details
    O.S:Windows 2000 Server with Service Pack-2
    Oracle Version: 8i
    Patch applied: Oracle8i Patch Set Version 8.1.7.3.0

    Try look to alert<SID>.log file for full error report (you could paste it here).
    Also from alert log you could get real values for db_block_buffers and shared_pool_size parameters that used during instance startup.

  • Oracle 10g installing on Oracle EL, getting ORA-12157 error?

    My boss is getting really impatient. I have tried installing Oracle 10g on... Oracle EL, CentOS 4, Fedora 4, Fedora 5, and I get the same error on them alll...
    ORA-12157: TNS: internal network communication error
    This occurs during the end phase of the installation, when it says "Clone database creation". Network seems to be working, can ping the server, static IP, all that?
    Any help appreciated, I've been working on this for 5 days.
    Jon

    Verbatim, this error means:
    ORA-12157:     TNS:internal network communication error
    Cause:     Internal error during network communication.
    Action:     Not normally visible to the user. For further details, turn on tracing and reexecute the operation. If error persists, contact Worldwide Customer Support.Have you met all requirements before proceeding with installation? Do you have all required patches? Is there any warnng during the prerrequisites verifying routine? Is there any outstanding issue recorded on your install log file?
    I suggest you, after verifying above points, to go ahead wiht a software only installation, next, using the network and databse assistants perform a network configuration and a database creation, this way you'll be able to isolate the source of the problem and go ahead with a specific troubleshootig.

  • Materialized view fast refresh ...getting ORA-22992: error

    Hi All,
    Oracle version 11.1.0.7
    While creating a materialized view(Fast refresh) on remote tables ... i am getting the ORA-22992: cannot use LOB locators selected from remote tables ... error.
    but the actual scenario is... i am not selecting any of the BLOB/LOB columns from the remote tables. I did n't include them in my materialized query.
    I am able to refresh it complete but couldn't refresh it fast. Here i want to mention other thing... when ever i have records in Mat view log(Base table has a blob cloumns in it)
    i am getting the above error. when no record in the Mat view log(i.e on BLOB base table) .. i can able to refresh it as FAST.
    MV_CAPABILITIES table tells that ...My Mat view is able to refresh it FAST.I don't know howw to approach to solve this issue.could some one tell me the approach..to solve it?
    Here is the sample code ....this is what i have done so fat
    session 1 (REMOTE_ONE)
    I have created synonyms for the remote tables on current schema. That's why i didn't include @DBLINK.
    create table RT_A ( col1_A varchar2(20), col2_A BLOB,COL3_A NUMBER);
    create a table RT_B (COl1_B varchar2(20), col2_B BLOB, COL3_B NUMBER);
    create a table RT_C (COL1_C varchar2(20), col2_C VARCHAR2,COL3_C NUMBER);
    create  MATERIALIZED VIEW LOG ON RT_A 
    WITH  ROWID EXCLUDING NEW VALUES;
    create  MATERIALIZED VIEW LOG ON RT_B
    WITH  ROWID EXCLUDING NEW VALUES;
    create  MATERIALIZED VIEW LOG ON RT_C 
    WITH  ROWID EXCLUDING NEW VALUES;
    grant select on RT_A to CUURRENT_ONE with grant option;
    grant select on RT_B to CUURRENT_ONE with grant option;
    grant select on RT_C to CUURRENT_ONE with grant option;
    grant select on MLOG$_RT_A to CUURRENT_ONE with grant option;
    grant select on MLOG$_RT_B to CUURRENT_ONE with grant option;
    grant select on MLOG$_RT_C to CUURRENT_ONE with grant option;Session 2 (CUURRENT_ONE)
    create materialized view ABC_MV
    BUILD IMMEDIATE REFRESH FORCE ON DEMAND START WITH SYSDATE NEXT SYSDATE+1
    AS
    select A.ROWID AS A_ROWID,
    B.ROWID as B_ROWID,
    C.ROWID AS C_ROWID,
    A.COL1_A,
    B.col1_B,
    c.col1_c
    from RT_A, RT_B,RT_C
    where COL3_A = COL3_B(+)
    and COL3_B = COL3_C(+)Appreciate your help.
    Thanks,
    Mike

    Thanks for the reply
    In that he/she is selecting the LOB column from the remote database(master site).
    I am just referencing the table which has BLOB column in it.I am not referencing any LOB column in my select(Mat view) query...
    is there anything i need to check..?
    Regards,
    Mike

  • Need help trouble shooting Database Gateway for MS SQL Server setup, getting ORA-28546 error

    Dear All,
    I am trying to setup Oracle Database Gateway for MS SQL Server(I don't have admin access to the MS SQL Server).  When I try to test the dblink connection, I get the following error.
    I issued select * from dual@xyz;
    ORA-28546: connection initialization failed, probable Net8 admin error
    ORA-28511: lost RPC connection to heterogeneous remote agent using SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SID=dg4msql)))
    ORA-02063: preceding 2 lines from xyz
    28546. 0000 -  "connection initialization failed, probable Net8 admin error"
    My setup is the following.
    1. Oracle 11gR2 running on Oracle Linux 6, the same version gateway is installed on the same server, but different home directory.
    2. Oracle DB home directory is /u01/app/oracle/product/11.2.0/dbhome_1, gateway home directory is /u01/gateway.
    3. I use the same listener.ora file for both the db and the gateway.
    4. the contents of my listener.ora, tnsnames.ora and the initdg4msql.ora are below.
    /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          #(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
          (ADDRESS = (PROTOCOL = TCP)(HOST = db.abc.com.tw)(PORT = 1522))
    mssql =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME=db.abc.com.tw)
          (ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)
          (SID_NAME=orcl)
    SID_LIST_mssql =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME=dg4msql)
          (ENVS=LD_LIBRARY_PATH=/u01/gateway/dg4msql/driver/lib:/u01/gateway/lib)
          (PROGRAM_NAME=/u01/gateway/bin/dg4msql)
    /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
    LISTENER_ORCL =
      (ADDRESS = (PROTOCOL = TCP)(HOST = db.abc.com.tw)(PORT = 1522))
    ORCL =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = db.abc.com.tw)(PORT = 1522))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl.abc.com.tw)
    dg4msql  =
      (DESCRIPTION=
        (ADDRESS=(PROTOCOL=TCP) (HOST=localhost)(PORT = 1521))
        (CONNECT_DATA=(SID=dg4msql))
        (HS=OK)
    /u01/gateway/dg4msql/admin/initdg4msql.ora
    HS_FDS_CONNECT_INFO=[192.168.0.1]:1433//XIETEST
    # alternate connect format is hostname/serverinstance/databasename
    HS_FDS_TRACE_LEVEL=255
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    dblink was created using statement below.
    CREATE DATABASE LINK "xyz.abc.COM.TW"
    CONNECT TO SA IDENTIFIED BY
    USING 'dg4msql';
    Couple more things, that I have done to check the work above.
    [oracle@db admin]$ ping 192.168.0.1
    PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
    64 bytes from 192.168.0.1: icmp_seq=1 ttl=61 time=7.61 ms
    64 bytes from 192.168.0.1: icmp_seq=2 ttl=61 time=7.41 ms
    ^C
    --- 192.168.0.1 ping statistics ---
    2 packets transmitted, 2 received, 0% packet loss, time 1818ms
    rtt min/avg/max/mdev = 7.417/7.516/7.615/0.099 ms
    [oracle@db admin]$ tnsping dg4msql
    TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 11-SEP-2013 10:53:11
    Copyright (c) 1997, 2009, Oracle.  All rights reserved.
    Used parameter files:
    /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=TCP) (HOST=localhost)(PORT = 1521)) (CONNECT_DATA=(SID=dg4msql)) (HS=OK))
    OK (0 msec)
    [oracle@db admin]$ lsnrctl status mssql
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 11-SEP-2013 10:54:23
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     mssql
    Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date                11-SEP-2013 10:09:46
    Uptime                    0 days 0 hr. 44 min. 37 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/diag/tnslsnr/db/mssql/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "dg4msql" has 1 instance(s).
      Instance "dg4msql", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    Obviously, I would like to get this setup to work, but I also have couple other questions regarding this setup.
    1. When installing the gateway, it asks to run the root.sh script.  the root.sh script as for the following.
    Enter the full pathname of the local bin directory: [/usr/local/bin]:
    The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n)
    [n]: n
    The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
    [n]: n
    The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
    [n]: n
    is the above answer correct?
    Thanks for reading.

    Dear Klaus,
    I did start a new SQL*PLUS session
    The output of  /u01/gateway/bin/dg4msql is
    [oracle@db log]$ /u01/gateway/bin/dg4msql
    Oracle Corporation --- WEDNESDAY SEP 11 2013 14:45:06.604
    Heterogeneous Agent Release 11.2.0.1.0 - 64bit Production  Built with
       Oracle Database Gateway for MSSQL
    The output of env is
    HOSTNAME=db.abc.com.tw
    SHELL=/bin/bash
    TERM=xterm
    HISTSIZE=1000
    ORACLE_UNQNAME=orcl
    TMPDIR=/tmp
    QTDIR=/usr/lib64/qt-3.3
    QTINC=/usr/lib64/qt-3.3/include
    USER=oracle
    LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/dbhome_1/lib:/lib:/usr/lib
    LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.tbz=01;31:*.tbz2=01;31:*.bz=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:
    ORACLE_SID=orcl
    ORACLE_BASE=/u01/app/oracle
    ORACLE_HOSTNAME=db.abc.com.tw
    MAIL=/var/spool/mail/oracle
    PATH=/u01/app/oracle/product/11.2.0/dbhome_1/bin:/usr/sbin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/oracle/bin
    PWD=/home/oracle
    LANG=en_US.UTF-8
    SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
    HISTCONTROL=ignoredups
    SHLVL=1
    HOME=/home/oracle
    TMP=/tmp
    LOGNAME=oracle
    QTLIB=/usr/lib64/qt-3.3/lib
    CVS_RSH=ssh
    CLASSPATH=/u01/app/oracle/product/11.2.0/dbhome_1/jlib:/u01/app/oracle/product/11.2.0/dbhome_1/rdbms/jlib
    LESSOPEN=|/usr/bin/lesspipe.sh %s
    ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
    G_BROKEN_FILENAMES=1
    _=/bin/env

  • Getting ORA-22920 Error With 'FOR UPDATE' clause

    Hello all,
    I scanned through all the messages regarding this error and the suggestion posted was to have 'FOR UPDATE' in the SELECT query. I do have that, but I am still getting ORA-22920 (row containing the LOB value is not locked) error.
    I am using JDBC thin driver with 8.0.5. I know the thin driver installation works because I can read data that I inserted using 'INSERT INTO ...' from svrmgr30.
    Can anyone show me some light on this?
    Thanks
    Suresh

    Hi,
    This helped me:
    Before the insert statement:
    connection.setAutoCommit(false);
    ..what you like to do
    at the end..
    connection.commit()
    HTH
    Martin

  • Do I need a sub-query and getting ORA-00937 error

    I'm writing a query where I want returned all data that is in a list 510 and all duplicate entries for the AID are eliminated.
    select *
    from entities e
    where e.list_id in
    (select aid
    from entities e
    where e.list_id = 510
    having count(e.aid) > 1);
    When I run this, I get ORA-00937: not a single-group group function.
    I google the error and see
    http://ora-00937.ora-code.com/
    Which tells me I can't have a group function and individual column expression.
    So I removed the group by, but I still get the errors, and for some reason when I put the alias e for the aid in the subquery, I still get the same error.
    Hopefully this makes sense what I'm asking...
    thanks

    if you want to select rows that eliminate duplicates then you should be using distinct. And if you want to get the duplicate rows then,
    select *
    from entities e1
    where e1.rowid <
    (select max(e2.rowid)
    from entities e2
    where e2.list_id = 510
    and e1.aid = e2.aid);

  • Get ORA-12560 error while accessing 11g database

    Database version: 11.2.0.1.0
    This is a development database running on CentOS. We had setup this database recently and everything has been fine. Today I noticed that when I connect to the database from remote, I get the following error -
    ORA-12560: TNS:protocol adapter error
    I'm able to get in to the database after logging in directly into the database server via putty. I have stopped & restarted the database, but with no help. I have checked the environment variables (ORACLE_HOME, ORACLE_SID) and they seem to be fine.
    Can you please help on what might be the problem here? Is this something to do with some change in the OS firewall setting?
    Edited by: museshad on Dec 20, 2012 12:44 PM

    lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 20-DEC-2012 13:27:55
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date                27-AUG-2012 16:50:42
    Uptime                    114 days 20 hr. 37 min. 13 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/diag/tnslsnr/xxxx/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=xxxx)(PORT=1521)))
    Services Summary...
    Service "orcl.ENTERPRISENET.ORG" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB.ENTERPRISENET.ORG" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    listener.ora
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
    ADR_BASE_LISTENER = /u01/app/oracle
    tnsnames.ora
    ORCL =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl.ENTERPRISENET.ORG)
      )

  • Getting ORA-06502 error. Don't know why. Please help!

    I am getting the following error msgs and don't understand why?
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at "SMSRPT.SP_DATA_CHECK", line 22
    ORA-06512: at line 6
    Here is my procedure. Can someone look at it and explain to me what i could possibly be doing wrong here.
    create or replace
    PROCEDURE sp_data_check(p_date number) is
    --DECLARE
    v_table_name VARCHAR2(35);
         v_string VARCHAR2(1024);
         v_result number;
         v_output VARCHAR2(1024);
    v_report_date VARCHAR2(8);
    v_dt VARCJAR2(8);
    CRLF char(2) := chr(10)||chr(13);
         CURSOR c_table is
              select table_name
              from user_tab_columns
              where COLUMN_NAME = 'REPORT_DATE'
              and table_name NOT LIKE '%BIN%';
         BEGIN
    OPEN c_table;
         loop
              FETCH c_table into v_table_name;
              exit when c_table%NOTFOUND;
              v_string:='select decode(max(report_date),'||p_date||',1,0)'|| ' from ' || v_table_name;
              execute immediate v_string into v_result;
    v_report_date:='select max(report_date)'|| ' from ' || v_table_name;
    excute immediate v_report_date into v_dt;
              v_output:=v_output||CRLF||v_table_name||': '||v_dt;
    end loop;
    if v_result =0 then
    sp_send_mail('reports@localhost','[email protected]',
    'Report Date Not There','The following tables do not have the correct report_date information:'||v_output);
    end if;
    close c_table;
    END;
    The bold section of my code is what i added that broke it. Before adding these lines of code it all worked fine.

    That worked. Here is the revised working program
    create or replace PROCEDURE sp_data_check(p_date number) is
    --DECLARE
    v_table_name VARCHAR2(35);
         v_string VARCHAR2(1024);
         v_result number;
         v_output VARCHAR2(1024);
    v_report_date VARCHAR2(100);
    v_dt VARCHAR2(100);
    CRLF char(2) := chr(10)||chr(13);
         CURSOR c_table is
              select table_name
              from user_tab_columns
              where COLUMN_NAME = 'REPORT_DATE'
              and table_name NOT LIKE '%BIN%';
         BEGIN
    OPEN c_table;
         loop
              FETCH c_table into v_table_name;
              exit when c_table%NOTFOUND;
              v_string:='select decode(max(report_date),'||p_date||',1,0)'|| ' from ' || v_table_name;
              execute immediate v_string into v_result;
    v_report_date:='select max(report_date)'|| ' from ' || v_table_name;
    execute immediate v_report_date into v_dt;
              v_output:=v_output||CRLF||v_table_name||': '||v_dt;
    end loop;
    if v_result =0 then
    sp_send_mail('reports@localhost','[email protected]',
    'Report Date Not There','The following tables do not have the correct report_date information:'||v_output);
    end if;
    close c_table;
    END;

Maybe you are looking for

  • Can I create a custom XMP panel but using the exact same fields from standard XMP panels?

    Hi, I am new to XMP and not very technical, so please excuse me if this sounds like a stupid question! I have managed to create my own custom panels for Photoshop using the Generic Panel method with my own custom fields and they work fine. However wh

  • Blue Screen of Death on Startup

    I have been using Windows 7 x64 for about 3 months but recently, whenever I boot into Windows 7 it starts the load and gets up to the animation then it BSODs with this error code: Stop 0x000000ED UNMOUNTABLEBOOTVOLUME I believe this may be linked to

  • Disable attachment preview

    I work in the graphic world and I receive lots of mails with heavy attachments. I would like to switch to Mail (from Entourage), but my problem is that Mail seems to display all attachments in the preview pane. Because of the size of the attachments,

  • Yosemite reverts to a certain virtual desktop on startup.

    I'm working on one of the 2008 iMacs and I recently upgraded to Yosemite after skipping Mavericks. What I immediately noticed when I had changed to a desired wallpaper, initially, is that on starting up, restarting, or logging back in the wallpaper w

  • Inconsistency with maintenance cycle and task list phases in ChaRM

    Hi Experts, I'm deploying ChaRM with SolMan 4.0 SP09. I was testing a scenario where there are more than one maintenance project open for same landscape (different logical components but values are the same). I have been using maintenance cycle docum