Error in Cursors in Oracle 10g

We have a VB program that is running a procedure with a cursor like this:
cursor cleo is select * from tabla1 where campo1='valor1';
leer cleo%rowtype;
begin
open cleo;
loop
fetch cleo into leer;
exit when cleo%notfound;
end loop;
close cleo;
end
Then return rows that not are part of the set given by the select statement.
The problem is given randomly when running the VB program, instead if run the same statement in sqlplus it works fine.
The program works fine against an Oracle 8 database, the error appears against an Oracle 10g database
null

the code to execute is:
create or replace procedure cpc_jz_aux (dirname varchar2, plan varchar2, error out varchar2) is
file_write sys.utl_file.file_type;
cursor cleo is select *
from oper.plan_hidro_et_per_cpcs
where id_plan = plan
and id_etapa = 1 order by id_hidro,id_per;
leer cleo%rowtype;
BEGIN
error:=NULL;
if sys.utl_file.is_open(file_write) then
sys.utl_file.fclose(file_write);
end if;
file_write := sys.utl_file.fopen(dirname,'cpc_jt3.dat','w');
     open cleo;
     loop
          fetch cleo into leer;
          exit when cleo%notfound;
          sys.utl_file.put_line(file_write,leer.id_hidro||','||leer.id_per||','||
               nvl(leer.ymin,0)||','||nvl(leer.ymax,0)||','||nvl(leer.zmin,0)||
                    ','||nvl(leer.zmax,0));
     end loop;
     close cleo;
     sys.utl_file.fclose(file_write);
exception
when others then
dbms_output.put_line('error:'||sqlcode||' '||sqlerrm);
error := sqlerrm;
if sys.utl_file.is_open(file_write) then
sys.utl_file.fclose(file_write);
end if;
raise;
end cpc_jz_aux;
Message was edited by:
jpastro

Similar Messages

  • Cursors in Oracle 10g XE stored procedures

    I want to use a cursor in a stored procedure. I saw many examples on the net but none of them seem to work in Oracle 10g Express Edition.
    I am new to Oracle and any solution relevant to Oracle 10g XE is highly appreciated.
    Yosief Kesete

    Dear user!
    Simple error. Try that:
    CREATE OR REPLACE PROCEDURE "employeesgetlist
      p_FIRST_NAME IN VARCHAR2,
      returnValue OUT SYS_REFCURSOR
    IS
      p_EMPLOYEE_ID NUMBER;
      CURSOR C1 IS
      SELECT employee_id
      FROM employees
      WHERE first_name = p_FIRST_NAME;
    BEGIN
      BEGIN
        -- OPEN A PREVIOUSLY DECLARED CURSOR
        OPEN C1;
        LOOP
          FETCH C1 INTO p_EMPLOYEE_ID;
          EXIT WHEN C1%NOTFOUND;
        END LOOP;
         -- CLOSE THE CURSOR
        CLOSE C1;
      END;
      OPEN returnValue FOR
      SELECT * FROM employees
      WHERE employee_id = p_EMPLOYEE_ID;
    END;
    {code}
    Yours sincerely
    Florian W.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Error message when installing Oracle 10g on Windows XP Professional

    Hello,
    I need help installing oracle 10g database. When I attempt to run the installation from the setup.exe icon, I get a message that says
    "Error in writing to directory C:\Documents and Settings\Owner\Local Settings\Temp\OraInstall2007-04-29_01-19-29PM. Please ensure this directory is writable and has atleast 45Mb of disk space. Installation cannot continue."
    When I try to open the installation from the Autorun icon, it points to an innability to find setup.exe and when I go back to Setup.exe, it gives me the above error. Everytime I try to run the installation and it fails, the installation leaves a folder in my Temp folder with the above format. Any help would be appreciated. Thank you.

    I do have administrative privilege on my computer and I have plenty of space. I have 80gb of free space. What do I do to successfully install the software without incurring those messages I displayed in my first thread?

  • ORA-03106  Error when connecting to Oracle 10g from Forms 6i

    I have migrated my database from Oracle 8.0.5 to Oracle 10g, version 10.0.1.0.3 through import-export utility. During migration, one difference I made was to change the NLS_LANG to UTF8 from ANSI.
    The NLS_LANG for client is AMERICAN_AMERICA.WE81S08859P1.
    I am using HP ML370 Proliant Server and running Red Hat Enterprise Linux AS version 3 with Oracle 10g
    My client-server application is based on Oracle Developer version 2.1. I am using forms 5.0 and reports 3.0 only.
    The problem with me is that the client-server application is working against the upgraded database, but with greatly downgraded speed. The .fmb files cannot be compiled, however some of the .rdf files are compiled successfully, but remaining not.
    My question is that is Developer 2000 (Forms 5.0.6 and Reports 3.0.5) compatable with Oracle 10 database, as my application is running very slow ?
    I tried Forms 6i to remove this problem. I used Forms Developer 6i Recut version and successfully installed on Windows XP, however, when try to create connection using Net 8 Easy Utility, the connection does not establish with following error:
    ORA-03106 : fatal two-task communication protocol error
    The entry has been checked in tnsnames.ora and is found correct. I also tried connecting through SQL, but the application closes.
    The patch set 17 for installation on Windows XP has also been applied, but still the same error persits.
    The same installation has also been checked on Windows 2000, but the same problem persists.
    I would be thankful if any one provide me solution for the same. Where I am mistaken and what do I do to get out of this problem.
    Regards
    Naveen.

    Naveen,
    Forms 5.0 is not certified and not tested with Oracle DB 10g because it was desupported before 10g got released.
    The other problem is hard to give a generic answer for and I suggest to address this to metalink.oracle.com
    Frank

  • Error on clone database, oracle 10g release 2 for windows server 2008

    Hi,
    OS: Windows Server 2008 X64
    Oracle: oracle 10g release r2 for windows server 2008
    An error occurred when creating a database, stop at last step, Screenshot:
    [http://temp.wsria.com/oracle_create_db.png|http://temp.wsria.com/oracle_create_db.png]
    the trace log content:
    [main] [9:56:35:982] [CommandLineArguments.process:563] CommandLineArguments->process: number of arguments = 32
    [main] [9:56:35:982] [CommandLineArguments.process:738] CommandLineArguments->process: Create Database argument is specified
    [main] [9:56:35:982] [CommandLineArguments.process:910] CommandLineArguments->process: template Name argument is specified
    [main] [9:56:35:982] [CommandLineArguments.process:960] CommandLineArguments->process: db name argument is specified
    [main] [9:56:35:982] [CommandLineArguments.process:3074] CommandLineArguments->process: in Operation Type is Creation/GenerateScripts Mode condition
    [main] [9:56:35:997] [CommandLineArguments.process:3298] CommandLineArguments->process: Successfully process command line arguments
    [main] [9:56:36:668] [Host.checkOPS:2055] Inside checkOPS
    [main] [9:56:36:668] [Host.checkOPS:2067] Trying to check cluster existence
    [main] [9:56:36:715] [Library.getInstance:97] Created instance of Library.
    [main] [9:56:36:715] [Library.load:197] Loading orauts.dll...
    [main] [9:56:36:715] [Library.load:203] oracleHome D:\oracle\product\10.2.0\db_1
    [main] [9:56:36:715] [sPlatform.isHybrid:63] osName=Windows Vista osArch=amd64 rc=false
    [main] [9:56:36:715] [Library.load:223] Loading library D:\oracle\product\10.2.0\db_1\bin\orauts.dll
    [main] [9:56:36:715] [Library.load:247] Loaded library D:\oracle\product\10.2.0\db_1\bin\orauts.dll from path=
    D:\oracle\product\10.2.0\db_1\bin
    [main] [9:56:36:715] [Library.load:197] Loading MSVCRT.dll...
    [main] [9:56:36:715] [Library.load:203] oracleHome D:\oracle\product\10.2.0\db_1
    [main] [9:56:36:715] [sPlatform.isHybrid:63] osName=Windows Vista osArch=amd64 rc=false
    [main] [9:56:36:715] [Library.load:223] Loading library D:\oracle\product\10.2.0\db_1\bin\MSVCRT.dll
    [main] [9:56:36:731] [Library.load:247] Loaded library D:\oracle\product\10.2.0\db_1\bin\MSVCRT.dll from path=
    D:\oracle\product\10.2.0\db_1\bin
    [main] [9:56:36:731] [Library.load:197] Loading orawsec10.dll...
    [main] [9:56:36:731] [Library.load:203] oracleHome D:\oracle\product\10.2.0\db_1
    [main] [9:56:36:731] [sPlatform.isHybrid:63] osName=Windows Vista osArch=amd64 rc=false
    [main] [9:56:36:731] [Library.load:223] Loading library D:\oracle\product\10.2.0\db_1\bin\orawsec10.dll
    [main] [9:56:36:731] [Library.load:247] Loaded library D:\oracle\product\10.2.0\db_1\bin\orawsec10.dll from path=
    D:\oracle\product\10.2.0\db_1\bin
    [main] [9:56:36:731] [Library.load:197] Loading orasrvm10.dll...
    [main] [9:56:36:731] [Library.load:203] oracleHome D:\oracle\product\10.2.0\db_1
    [main] [9:56:36:731] [sPlatform.isHybrid:63] osName=Windows Vista osArch=amd64 rc=false
    [main] [9:56:36:731] [Library.load:223] Loading library D:\oracle\product\10.2.0\db_1\bin\orasrvm10.dll
    [main] [9:56:36:731] [Library.load:247] Loaded library D:\oracle\product\10.2.0\db_1\bin\orasrvm10.dll from path=
    D:\oracle\product\10.2.0\db_1\bin
    [main] [9:56:36:731] [Version.isPre10i:189] isPre10i.java: Returning FALSE
    [main] [9:56:36:731] [WindowsSystem.regKeyExists:1006] WindowsSystem.regKeyExists: mainkey= HKEY_LOCAL_MACHINE subkey = Software\Oracle\Ocr
    [main] [9:56:36:746] [WindowsSystem.getCSSConfigType:1163] configType=null
    [main] [9:56:36:746] [Host.checkOPS:2073] cluster existence:false
    [main] [9:56:36:746] [Host.checkOPS:2111] Cluster installed=false
    [main] [9:56:36:902] [InitParamHandler.endElement:506] CustomSGA flag: false
    [main] [9:56:36:902] [InitParamHandler.endElement:507] Database Type: MULTIPURPOSE
    [main] [9:56:36:918] [InitParamHandler.endElement:508] Mem Percentage: 40
    [main] [9:56:36:918] [InitParamHandler.endElement:526] distributing Memory: 13737443328
    [main] [9:56:36:918] [MemoryCalculator.calculateMemory:122] Setting SGA to MAX_SGA 1610612736
    [main] [9:56:36:918] [StorageAttributes.setAttribute:232] IN threadID:1 group#=1
    [main] [9:56:36:918] [StorageAttributes.setAttribute:232] IN threadID:1 group#=2
    [main] [9:56:36:918] [StorageAttributes.setAttribute:241] Current threadID=1
    [main] [9:56:36:918] [StorageAttributes.setAttribute:248] Current threadID=1 ==> redoGroups[0]=1
    [main] [9:56:36:918] [StorageAttributes.setAttribute:258] vRedoGroups:[1]
    [main] [9:56:36:918] [StorageAttributes.setAttribute:288] setAttribute: bExists=false
    [main] [9:56:36:918] [StorageAttributes.setAttribute:232] IN threadID:1 group#=3
    [main] [9:56:36:918] [StorageAttributes.setAttribute:241] Current threadID=1
    [main] [9:56:36:918] [StorageAttributes.setAttribute:248] Current threadID=1 ==> redoGroups[0]=1
    [main] [9:56:36:918] [StorageAttributes.setAttribute:248] Current threadID=1 ==> redoGroups[1]=2
    [main] [9:56:36:918] [StorageAttributes.setAttribute:258] vRedoGroups:[1, 2]
    [main] [9:56:36:933] [StorageAttributes.setAttribute:288] setAttribute: bExists=false
    [main] [9:56:36:933] [TemplateManager.parseCloneTemplate:1477] See for any transportable datafiles in TemplateManager.....
    [main] [9:56:36:933] [TemplateManager.isInstallTemplate:2178] Selected Template by user:=General Purpose
    [main] [9:56:36:933] [TemplateManager.isInstallTemplate:2185] The Message Id to be searched:=GENERAL_PURPOSE
    [main] [9:56:36:933] [TemplateManager.parseCloneTemplate:1489] create new clone data file for tp file.......
    [main] [9:56:36:933] [Host.setupOIDCommandlineParameters:7184] setupOIDCommandlineParameters:
    [main] [9:56:36:933] [Host.setupOIDCommandlineParameters:7185] m_regWithdirService: false
    [main] [9:56:36:933] [Host.setupOIDCommandlineParameters:7186] m_unregWithdirService: false
    [main] [9:56:36:933] [Host.setupOIDCommandlineParameters:7187] m_updateDirService: false
    [main] [9:56:36:933] [Verifier.processRawConfigFile:3523] StorageType == 0
    [main] [9:56:36:933] [Verifier.setOradataDest:4349] setOradataDest:dfDest=D:\oracle\product\10.2.0\oradata
    [main] [9:56:36:933] [TemplateManager.updateDatafileDestination:1957] updateDatafiles:datafileDir=D:\oracle\product\10.2.0\oradata
    [main] [9:56:36:933] [TemplateManager.updateDatafileDestination:2103] From template, RedoLogGrName=1
    [main] [9:56:36:965] [TemplateManager.updateDatafileDestination:2118] new file name redo01.log
    [main] [9:56:36:965] [TemplateManager.updateDatafileDestination:2103] From template, RedoLogGrName=2
    [main] [9:56:36:965] [TemplateManager.updateDatafileDestination:2118] new file name redo02.log
    [main] [9:56:36:965] [TemplateManager.updateDatafileDestination:2103] From template, RedoLogGrName=3
    [main] [9:56:36:965] [TemplateManager.updateDatafileDestination:2118] new file name redo03.log
    [main] [9:56:36:965] [ProgressOnlyHost.performOperation:162] processRawConfigFile=false
    [main] [9:56:36:965] [Verifier.validateTemplate:1629] StorageType == 0
    [main] [9:56:36:965] [ProgressOnlyHost.performOperation:178] validateTemplate=true
    [main] [9:56:36:965] [OracleHome.isRacEnabled:149] bRacOn = false
    [main] [9:56:36:980] [Verifier.validateTemplate:1629] StorageType == 0
    [main] [9:56:36:980] [Verifier.calculateCloneDatafilePathsAndSizes:2951] canonicalPath=D:\oracle\product\10.2.0\
    [main] [9:56:36:980] [Verifier.calculateCloneDatafilePathsAndSizes:2951] canonicalPath=D:\oracle\product\10.2.0\
    [main] [9:56:36:980] [Verifier.calculateCloneDatafilePathsAndSizes:2951] canonicalPath=D:\oracle\product\10.2.0\
    [main] [9:56:36:980] [Verifier.calculateCloneDatafilePathsAndSizes:2951] canonicalPath=D:\oracle\product\10.2.0\
    [main] [9:56:36:980] [Verifier.calculateCloneDatafilePathsAndSizes:2951] canonicalPath=D:\oracle\product\10.2.0\
    [main] [9:56:36:980] [Verifier.calculateRedoLogGroupFileSizes:3083] canonicalPath=D:\oracle\product\10.2.0\
    [main] [9:56:36:980] [Verifier.calculateRedoLogGroupFileSizes:3083] canonicalPath=D:\oracle\product\10.2.0\
    [main] [9:56:36:980] [Verifier.calculateRedoLogGroupFileSizes:3083] canonicalPath=D:\oracle\product\10.2.0\
    [main] [9:56:36:980] [Verifier.getControlfFileSizes:3001] No. of Control files:=3
    [main] [9:56:37:105] [Host.executeSteps:4044] Executing steps....
    [main] [9:56:37:105] [Host.setUpForOperation:2920] setUpForOperation: Mode = 128
    [main] [9:56:37:121] [Host.executeSteps:4186] setupForOperation returned: true
    [main] [9:56:37:121] [Host.createStepSQLInterface:5948] sid =ora10g
    [main] [9:56:37:136] [SQLEngine.initialize:242] Execing SQLPLUS/SVRMGR process...
    [main] [9:56:37:136] [SQLEngine.initialize:270] m_bReaderStarted: false
    [main] [9:56:37:136] [SQLEngine.initialize:274] Starting Reader Thread...
    [Thread-4] [9:56:37:355] [StepContext$ModeRunner.run:2478] ---- Progress Needed:=true
    [Thread-4] [9:56:37:464] [BasicStep.execute:202] Executing Step : CLONE_DB_CREATION_RMAN_RESTORE
    [Thread-4] [9:56:37:464] [StepErrorHandler.setFatalErrors:322] setting Fatal Error: ORA-01092
    [Thread-4] [9:56:37:464] [StepErrorHandler.setFatalErrors:322] setting Fatal Error: ORA-01034
    [Thread-4] [9:56:37:464] [StepErrorHandler.setFatalErrors:322] setting Fatal Error: ORA-03114
    [Thread-4] [9:56:37:464] [StepErrorHandler.setFatalErrors:322] setting Fatal Error: ORA-12560
    [Thread-4] [9:56:37:464] [StepErrorHandler.setIgnorableErrors:250] setting Ignorable Error: ORA-01109
    [Thread-4] [9:56:37:464] [BasicStep.configureSettings:304] messageHandler being set=null
    [Thread-4] [9:56:37:464] [BasicStep.execute:202] Executing Step : INSTANCE_CREATION
    [Thread-4] [9:56:37:464] [BasicStep.configureSettings:304] messageHandler being set=null
    [Thread-4] [9:56:37:479] [InitParamAttributes.sortParams:3532] m_sortOn:-1 sortOn:4
    [Thread-4] [9:56:37:620] [OracleHome.isRacEnabled:149] bRacOn = false
    [Thread-4] [9:56:37:667] [Host.noEntryinOratab:5115] Check made for oratab arg passed............
    [Thread-4] [9:56:37:667] [Oradim.getAddEntryCommand:353] AddEntry=[D:\oracle\product\10.2.0\db_1\bin\oradim.exe, -new, -sid, ORA10G, -startmode, manual, -spfile]
    [Thread-4] [9:56:38:899] [Oradim.getEditEntryCommand:422] getEditEntry cmd=[D:\oracle\product\10.2.0\db_1\bin\oradim.exe, -edit, -sid, ORA10G, -startmode, auto, -srvcstart, system]
    [Thread-4] [9:56:39:55] [Oradim.addSidToRegistry:871] oracleHomeKey: SOFTWARE\ORACLE\KEY_OraDb10g_home1
    [Thread-4] [9:56:39:117] [BasicStep.configureSettings:304] messageHandler being set=oracle.sysman.assistants.util.UIMessageHandler@c73f0d8
    [Thread-4] [9:56:39:117] [CloneRmanRestoreStep.executeImpl:217] Instance Creation went fine..........
    [Thread-4] [9:56:39:117] [CloneRmanRestoreStep.executeImpl:224] db_recovery_file_dest=D:\oracle\product\10.2.0\flash_recovery_area
    [Thread-4] [9:56:39:117] [CloneRmanRestoreStep.executeImpl:227] db_recovery_file_dest_size=2147483648
    [Thread-4] [9:56:39:991] [SQLEngine.setSpool:1750] old Spool = null
    [Thread-4] [9:56:39:991] [SQLEngine.setSpool:1751] Setting Spool = D:\oracle\product\10.2.0\db_1\cfgtoollogs\dbca\ora10g\CloneRmanRestore.log
    [Thread-4] [9:56:39:991] [SQLEngine.setSpool:1752] Is spool appendable? --> true
    [Thread-4] [9:56:39:991] [CloneRmanRestoreStep.executeImpl:320] starting with pfile=D:\oracle\product\10.2.0\admin\ora10g\pfile\init.ora

    Check your SQLNET.AUTHENTICATION_SERVICES settings in sqlnet.ora file.
    ORA-28547 : Connection to server failed, probable Net8 admin error
    thanks
    http://swervedba.wordpress.com/

  • Error while Installation of Oracle 10g Database on Windows Vista

    while installating Oracle 10g DB on Win Vista Machine it shows the followsing error:-
    Abnormal program termination. An internal error has occoured.Please provide the fillowing files to Oralce Support:
    "Unknows"
    "Unknows"
    "Unknows"
    & OK buttons is there
    kindly provide me the solution for the same.

    Are you using the Oracle installation meant for Windows Vista or any other version?
    Its available here...
    http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10203vista.html

  • Error in the installation - ORACLE 10g on SUSE LES 9

    Hi folks,
    I am installing ORACLE 10g on a SUSE LES 9 . While I launch the Installer I get the following error:
    Preparing to launch Oracle Universal Installer from /tmp/OraInstall2007-09-26_07-11-46AM. Please wait ...oracle@mucsapt2:/home/lrougkal/OraDb10g/database> Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2007-09-26_07-11-46AM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at sun.security.action.LoadLibraryAction.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
    at sun.awt.DebugHelper.<clinit>(Unknown Source)
    at java.awt.Component.<clinit>(Unknown Source)
    I have installed all the required packages from SUSE according to ORACLE installation guide :
    binutils-2.15.90.0.1.1-32.10
    gcc-3.3.3-43.41
    gcc-c++-3.3.3-43.41
    glibc-2.3.3-98.61
    gnome-libs-1.4.1.7-671.1
    libstdc++-3.3.3-43.41
    libstdc++-devel-3.3.3-43.41
    make-3.80-184.1
    pdksh-5.2.14-780.7
    sysstat-5.0.1-35.7
    xscreensaver-4.16-2.6
    Any ideas?
    Thanks in advance,
    Loukas

    How could I force the installation to not be done with graphical env?
    I think by default is searching for the graphical libraries. Do you mean Oracle installation? Unfortunately you can't.

  • Error in Insallation of Oracle 10g in Solaris 5.9

    Hi,
    I am Installing oracle 10g in solaris OS.After completed the pre installation steps.I run the ./runInstaller command.But its showing error like this
    bash-2.05# ./runInstaller
    /export/home3/oracle10/install/.oui: syntax error at line 1: `(' unexpected
    I open the Script file also ...
    bash-2.05# cat runInstaller
    #!/usr/bin/sh
    # The environment variable $SRCHOME cannot be set during the installation
    unset SRCHOME
    AWK=/bin/awk
    BUNDLE=db
    OCR_LOC=/var/opt/oracle/ocr.loc
    LOCALONLY=local_only
    LOCAL=TRUE
    CMDDIR=`dirname $0`
    if [ "$CMDDIR" = "." ]; then
    CMDDIR=`pwd`;
    fi
    # Replace relative path with fully qualified path.
    if [ ! "`echo $CMDDIR|grep '^/'`" ]; then
    CMDDIR=`pwd`/$CMDDIR;
    fi
    if [ x${PATH} != x ]; then
    PATH=$CMDDIR/install:/usr/bin:/usr/ccs/bin:$PATH
    export PATH
    else
    PATH=$CMDDIR/install:/usr/bin:/usr/ccs/bin
    export PATH
    fi
    if [ x${LD_LIBRARY_PATH} != x ]; then
    LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH
    export LD_LIBRARY_PATH
    else
    LD_LIBRARY_PATH=/usr/lib
    export LD_LIBRARY_PATH
    fi
    # Determine whether there is an existing CRS or not.
    # Local is value of local_only in ocr.loc.
    # False means there is an existing CRS installation on the system.
    if [ -r $OCR_LOC ]; then
    LOCAL=`$AWK -F= /$LOCALONLY/'{print $2}' $OCR_LOC`
    fi
    case "$BUNDLE" in
    db)
    # One-click: only if there is no cmd line argument and it's not on CRS node
    if [ $# -gt 0 -o "$LOCAL" = "FALSE" -o \
    ! -r $CMDDIR/install/oneclick.properties ]; then
    $CMDDIR/install/.oui $*
    else
    $CMDDIR/install/.oui -oneclick
    fi
    crs)
    $CMDDIR/install/.oui $* -formCluster
    $CMDDIR/install/.oui $*
    esac
    Please tell me the solution asap.

    bash-2.05# ./runInstallerDon't install as root user.
    Did you install all important packages (listed in installation prerequisities)?

  • Error during installation of oracle 10g on fedora14

    Hi all,
    I am trying to install oracle 10g on fedora14. However i am getting the error during installation.
    Could you people suggest me the root cause...!!
    Error log:
    [oracle@test database]$ ./runInstaller
    Starting Oracle Universal Installer...
    Checking installer requirements...
    Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
    Passed
    All installer requirements met.
    Preparing to launch Oracle Universal Installer from /tmp/OraInstall2011-06-22_03-26-15AM. Please wait ...
    Error in writing to directory /tmp/OraInstall2011-06-22_03-26-15AM. Please ensure that this directory is writable and has atleast 60 MB of disk space. Installation cannot continue.
    : Success
    Tried another option as well but same error:
    [oracle@test database]$ ./runInstaller -ignoreSysPrereqs
    Starting Oracle Universal Installer...
    Checking installer requirements...
    Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
    Passed
    All installer requirements met.
    Preparing to launch Oracle Universal Installer from /tmp/OraInstall2011-06-22_03-26-15AM. Please wait ...
    Error in writing to directory /tmp/OraInstall2011-06-22_03-26-15AM. Please ensure that this directory is writable and has atleast 60 MB of disk space. Installation cannot continue.
    : Success

    Vinod Ranjan wrote:
    Hi all,
    I am trying to install oracle 10g on fedora14. However i am getting the error during installation.
    Could you people suggest me the root cause...!!
    Error log:
    [oracle@test database]$ ./runInstaller
    Starting Oracle Universal Installer...
    Checking installer requirements...
    Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
    Passed
    All installer requirements met.
    Preparing to launch Oracle Universal Installer from /tmp/OraInstall2011-06-22_03-26-15AM. Please wait ...
    Error in writing to directory /tmp/OraInstall2011-06-22_03-26-15AM. Please ensure that this directory is writable and has atleast 60 MB of disk space. Installation cannot continue.
    : Success
    Tried another option as well but same error:
    [oracle@test database]$ ./runInstaller -ignoreSysPrereqs
    Starting Oracle Universal Installer...
    Checking installer requirements...
    Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
    Passed
    All installer requirements met.
    Preparing to launch Oracle Universal Installer from /tmp/OraInstall2011-06-22_03-26-15AM. Please wait ...
    Error in writing to directory /tmp/OraInstall2011-06-22_03-26-15AM. Please ensure that this directory is writable and has atleast 60 MB of disk space. Installation cannot continue.
    : Successpost results from below
    id
    env | sort
    Edited by: sb92075 on Jun 21, 2011 9:33 AM

  • Error in Installing the Oracle 10g RDBMS on linux installed on Vmware

    Hi,
    I am trying to install the Oracle 10g RDBMS software. I have created all the required users and groups, created directories and updaates the sysctl.conf file.
    When I run the installer ./runInstaller it is giving the following error.
    [oracle@aasim database]$ ./runInstaller
    Starting Oracle Universal Installer...
    Checking installer requirements...
    Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
    Passed
    All installer requirements met.
    Preparing to launch Oracle Universal Installer from /tmp/OraInstall2011-02-26_11-48-44PM. Please wait ...[oracle@aasim database]$ Xlib: connection to ":0.0" refused by server
    Xlib: No protocol specified
    Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
    at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
    at sun.awt.X11GraphicsEnvironment.<clinit>(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Unknown Source)
    at java.awt.Window.init(Unknown Source)
    at java.awt.Window.<init>(Unknown Source)
    at java.awt.Frame.<init>(Unknown Source)
    at oracle.ewt.popup.PopupFrame.<init>(Unknown Source)
    at oracle.ewt.lwAWT.BufferedFrame.<init>(Unknown Source)
    at oracle.sysman.oio.oioc.OiocOneClickInstaller.<init>(OiocOneClickInstaller.java:378)
    at oracle.sysman.oio.oioc.OiocOneClickInstaller.main(OiocOneClickInstaller.java:2091)
    Can anyone tell me why I am getting this error and how to resolve it.
    Thanks
    Aasim

    Pl post exact details of "Linux" and "10g" versions. Which install guide are you following ? This error has been discussed many times in this forum - use the search feature to find possible solutions
    http://forums.oracle.com/forums/search.jspa?threadID=&q=%22Can't+connect+to+X11+window%22&objID=f64&dateRange=all&userID=&numResults=15&rankBy=10001
    HTH
    Srini

  • Error accessing table on Oracle 10g Express Edition

    I am unable to access tables uploaded after Oracle 10G express edition installation.
    The error message is ""ORA-00942: table or view does not exist"
    Meanwhile, the table is in existence when viewed via object browser.
    Pls can anybody help out.

    Hi;
    Which user you try to query? Table under which schema?
    You can query as follows:
    SELECT
    TABLE_NAME
    FROM
    ALL_TABLES
    WHERE
    TABLE_NAME LIKE '%xxx%'
    ORDER
    BY TABLE_NAME;
    Regard
    Helios

  • Compilation Errors "skipp incompatible" installing oracle 10g on linux 64z9

    Hello Friends,
    I have errors while installing Oracle 10g 10.2.0 for z9 Systems on a IBM Z/OS System with a SLES 10 Linux for z9 (64bit System).
    The Problem:
    Some programs of oracle cause errors while compiling libraries.
    The Error:
    ------------ With LD_LIBRARY_PATH set to $ORACLE_HOME/lib (which contains 64bit libs) -------------------
    (13:54) [oracle@linux-server-LXS1] /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/bin
    [b]> ./genclntsh
    /usr/lib64/gcc/s390x-suse-linux/4.1.0/../../../../s390x-suse-linux/bin/ld: skipping incompatible /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib/stubs/libdl.so when searching for -ldl
    /usr/lib64/gcc/s390x-suse-linux/4.1.0/../../../../s390x-suse-linux/bin/ld: skipping incompatible /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib/stubs/libm.so when searching for -lm
    /usr/lib64/gcc/s390x-suse-linux/4.1.0/../../../../s390x-suse-linux/bin/ld: skipping incompatible /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib/stubs/libnsl.so when searching for -lnsl
    /usr/lib64/gcc/s390x-suse-linux/4.1.0/../../../../s390x-suse-linux/bin/ld: skipping incompatible /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib/stubs/librt.so when searching for -lrt
    /usr/lib64/gcc/s390x-suse-linux/4.1.0/../../../../s390x-suse-linux/bin/ld: /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib/libclient10.a(obindps.o): relocation R_390_PC32 against `ocibndps' can not be used when making a shared object; recompile with -fPIC
    /usr/lib64/gcc/s390x-suse-linux/4.1.0/../../../../s390x-suse-linux/bin/ld: final link failed: Bad value
    collect2: ld gab 1 als Ende-Status zurück
    genclntsh: Failed to link libclntsh.so.10.1
    ------------ With LD_LIBRARY_PATH set to $ORACLE_HOME/lib32 (which contains 32bit libs) ------------------
    (13:54) [oracle@linux-server-LXS1] /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/bin
    export LD_LIBRARY_PATH=/ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib32(13:54) [oracle@linux-server-LXS1] /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/bin
    ./genclntsh/usr/lib64/gcc/s390x-suse-linux/4.1.0/../../../../s390x-suse-linux/bin/ld: skipping incompatible /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib/stubs/libdl.so when searching for -ldl
    /usr/lib64/gcc/s390x-suse-linux/4.1.0/../../../../s390x-suse-linux/bin/ld: skipping incompatible /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib/stubs/libm.so when searching for -lm
    /usr/lib64/gcc/s390x-suse-linux/4.1.0/../../../../s390x-suse-linux/bin/ld: skipping incompatible /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib/stubs/libnsl.so when searching for -lnsl
    /usr/lib64/gcc/s390x-suse-linux/4.1.0/../../../../s390x-suse-linux/bin/ld: skipping incompatible /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib/stubs/librt.so when searching for -lrt
    /usr/lib64/gcc/s390x-suse-linux/4.1.0/../../../../s390x-suse-linux/bin/ld: /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib/libclient10.a(obindps.o): relocation R_390_PC32 against `ocibndps' can not be used when making a shared object; recompile with -fPIC
    /usr/lib64/gcc/s390x-suse-linux/4.1.0/../../../../s390x-suse-linux/bin/ld: final link failed: Bad value
    collect2: ld gab 1 als Ende-Status zurück
    genclntsh: Failed to link libclntsh.so.10.1
    (13:54) [oracle@linux-server-LXS1] /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/bin
    Questions:
    1) LD_LIBRARY_PATH doesn´t change any behavior of oracle - means the lib-path used stays on the 64bit directory. WHY?
    2) All necessary packages are installed (checked with Oracle Admin Docu!). All other devel and lib and compile and stuff packages are installed as 64 and 32 bit version. OK Nearly every f*#(#*_ package which has something to do with compilation and make processes is installed. COULD SOMETHING BE STILL MISSING?
    3) What do I have to change to get compilation with 32bit?
    4) Is it reasonable to compile with 32bit ? I think it isn´t.
    4) This is a S390 System so are there any special libs or patches to install for Oracle?
    5) Where are the 64bit libs for oracle ??????? (See below)
    What I found out:
    The libraries in $ORACLE_HOME/lib and ../lib32 are both 32 bit .... ????? WHY? Not wondering its incompatible.
    (13:56) [root@linux-server-LXS1] /ASLing01/opt/apps/oracle10g/app/oracle
    find /ASLing01/opt/apps/oracle10g/app/oracle -name "libdl*"/ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib/stubs/libdl-2.3.2-stub.so
    /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib/stubs/libdl.so
    /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib/stubs/libdl.so.2
    /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib32/stubs/libdl-2.3.2-stub.so
    /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib32/stubs/libdl.so
    /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib32/stubs/libdl.so.2
    (14:37) [root@linux-server-LXS1] /ASLing01/opt/apps/oracle10g/app/oracle
    file /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib/stubs/libdl.so/ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib/stubs/libdl.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped
    (14:39) [root@linux-server-LXS1] /ASLing01/opt/apps/oracle10g/app/oracle
    file /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib32/stubs/libdl.so/ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib32/stubs/libdl.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped
    (14:40) [root@linux-server-LXS1] /ASLing01/opt/apps/oracle10g/app/oracle
    file /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib/stubs/libdl-2.3.2-stub.so/ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib/stubs/libdl-2.3.2-stub.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped
    (14:40) [root@linux-server-LXS1] /ASLing01/opt/apps/oracle10g/app/oracle
    file /ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib32/stubs/libdl.so.2/ASLing01/opt/apps/oracle10g/app/oracle/product/10.2.0/db_1/lib32/stubs/libdl.so.2: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped
    (14:40) [root@linux-server-LXS1] /ASLing01/opt/apps/oracle10g/app/oracle[ i]
    Libraries are loaded from system as follows:
    [i](14:37) [root@linux-server-LXS1] /ASLing01/opt/apps/oracle10g/app/oracle
    ldconfig -p|grep -i libnsllibnsl.so.1 (libc6,64bit, OS ABI: Linux 2.6.4) => /lib64/libnsl.so.1
    libnsl.so.1 (libc6, OS ABI: Linux 2.6.4) => /lib/libnsl.so.1
    libnsl.so (libc6,64bit, OS ABI: Linux 2.6.4) => /usr/lib64/libnsl.so
    libnsl.so (libc6, OS ABI: Linux 2.6.4) => /usr/lib/libnsl.so
    ldconfig -p|grep -i libdllibdl.so.2 (libc6,64bit, OS ABI: Linux 2.6.4) => /lib64/libdl.so.2
    libdl.so.2 (libc6, OS ABI: Linux 2.6.4) => /lib/libdl.so.2
    libdl.so (libc6,64bit, OS ABI: Linux 2.6.4) => /usr/lib64/libdl.so
    libdl.so (libc6, OS ABI: Linux 2.6.4) => /usr/lib/libdl.so
    Thanks for help!
    Markus
    Message was edited by:
    user579884

    Not very helpful, but SLES10 is NOT certified on this platform, only SLES9.
    Werner

  • Open cursor query - oracle 10g

    Could anyone tell me which is the right query for fetching open cursor:
    1.
    select max(a.value) as highest_open_cur,s.sid, s.username, oc.sql_text, s.logon_time, s.status, s.machine
    from v$sesstat a, v$statname b, v$parameter p, v$session s, v$open_cursor oc
    where a.statistic# = b.statistic#
    and b.name = 'opened cursors current'
    and p.name= 'open_cursors'
    and username in ('USER_ID')
    and s.sid = a.sid
    -- and s.status <> 'KILLED'
    and oc.sid = s.sid
    group by s.sid,s.username, oc.sql_text, s.logon_time, s.status, s.machine
    order by s.logon_time desc
    2.
    SELECT user_name,sid,sql_text,count(1) total,sysdate snap_time
    FROM v$open_cursor
    WHERE user_name IN ('USER_ID')
    GROUP BY user_name,sid,sql_text
    HAVING count(1)>0;
    The issue is inthe secind query we have had hardly any open cursors and from the first query we are getting quiet a lot.
    Would like someone to explain me the the interpretation of both the queries.
    Does Oracle 10g has a different interpretation of these tables.
    How should we be reading the open cursors? and
    Does anyone feel there is a better way to check for open cursors ?

    ...etc...
    How should we be reading the open cursors? and
    Does anyone feel there is a better way to check for
    open cursors ?Forget cursors, if your purpose is to do some kind of research for performance tuning, just generate either the Enterprise Manager ASH or ADDM reports.

  • Admin error after deploying to Oracle 10g

    I'm trying to deploy Coldfusion 7.02 to Oracle 10g
    Application Server. I successfully installed CF as an ear file and
    deployed it to my OC4J instance. However, when I try to run the
    Administrator, after logging in, I get this error message:
    java.lang.ExceptionInInitializerError
    at com.verity.administration.VAdmin.<init>(Unknown
    Source)
    at
    com.verity.api.administration.VAdministration.<init>(Unknown
    Source).
    Caused by: java.lang.RuntimeException: Encryption algorithm
    not found
    at com.verity.security.k2.K2Encrypt.<clinit>(Unknown
    Source)
    ... 54 more
    Any idea what this has to do with? One thing I have been told
    is that this may have to do with ColdFusion needing to be run on
    its own OC4J instance. I am still working on figuring out how to do
    that setup.
    Any help would be appreciated.
    Thanks.

    See a couple of entries at
    http://blogs.sun.com/marcoscorner
    I hope they help you;-)
    Thanks,
    -- Marco

  • Error while connecting to oracle 10g data base

    Following is the code we used to connect to oracle 10g data base using symbian 7.1 series 80 SDK
    int CTest_S80AppUi::SetupODBC(void)
    RETCODE rc;
    char *DataSource = OD_DATA_SOURCE;
    char UserId = "system", Password = "manager";
    rc=SQLAllocEnv(&Henv);
    //if (TEST_CHECK_ERR(SQL_NULL_HSTMT, rc, "SQLAllocEnv", FALSE) < 0) return(-1);
    rc=SQLAllocConnect(Henv, &Hdbc);
    //if (TEST_CHECK_ERR(SQL_NULL_HSTMT, rc, "SQLAllocConnect", FALSE) < 0)
         //return(-1);
    rc = SQLConnect(Hdbc, (unsigned char *)DataSource, SQL_NTS,
              (unsigned char *)UserId, SQL_NTS,
              (unsigned char *)Password, SQL_NTS);
    bConnected = TRUE;
    //if (TEST_CHECK_ERR(SQL_NULL_HSTMT, rc, "SQLConnect", FALSE) < 0) return(-1);
    SQLAllocStmt(Hdbc, &Hstmt);
    //if (TEST_CHECK_ERR(SQL_NULL_HSTMT, rc, "SQLAllocStmt", FALSE) < 0) return(-1);
    return (1);
    } /* SetupODBC */
    iam getting the return code for SQLConnect as -1.
    Thanks in advance.

    Thanks for the reply.
    //syntax means comments.
    chk the following code.
    int SetupODBC(void)
    char *DataSource = "polite";
    char UserId = "system", Password = "manager";
    if ( SQLAllocEnv(&Henv) < 0 )
    return -1;
    if ( SQLAllocConnect(Henv, &Hdbc) < 0 )
    return -1;
    if ( SQLConnect(Hdbc, (unsigned char *)DataSource, SQL_NTS,
    (unsigned char *)UserId, SQL_NTS,
    (unsigned char *)Password, SQL_NTS) < 0 )
    return -1;
    if (SQLAllocStmt(Hdbc, &Hstmt) < 0 )
    return -1;
    return (0);
    As said earlier there is a problem in SQLConnect. It is returning -1.
    But the code should return 0 if successfully connected.
    The info regarding the arguments used in the above methods:
    HENV Henv; /* Handle to ODBC Environment object */
    HDBC Hdbc; /* Handle to ODBC Connection object */
    HSTMT Hstmt; /* Handle to ODBC Statement object */

Maybe you are looking for