Using Pro*C on Linux Oracle 8.1.6.0 on RH 6.2

Whe have some problems using Pro*C:
the program runs ok on all Oracle versions, including Oracle 8.1.6.0 on DEC OSF, but various sql errors are encountered on Linux Red Hat 6.2:
1) "ORA-01458: invalid length inside variable character string" for this code:
EXEC SQL BEGIN DECLARE SECTION;
varchar I_LANGLB [4];
short O_NOLBLB ;
varchar O_LIBELB [26];
EXEC SQL END DECLARE SECTION;
EXEC SQL INCLUDE SQLCA.H;
EXEC SQL WHENEVER SQLERROR GO TO MAJ_RESULT;
EXEC SQL WHENEVER NOT FOUND CONTINUE;
EXEC SQL DECLARE C0 CURSOR FOR
SELECT LBL.NOLBLB, LBL.LIBELB
FROM LBL
WHERE LBL.EDITLB = 'MON' AND LBL.LANGLB = :I_LANGLB;
strcpy (I_LANGLB.arr, "fra");
I_LANGLB.len = 3;
EXEC SQL OPEN C0;
for ( ; ; )
EXEC SQL WHENEVER NOT FOUND DO break;
EXEC SQL FETCH C0 INTO :O_NOLBLB, :O_LIBELB;
EXEC SQL CLOSE C0;
2) with Dynamic Sql: "ORA-01007: variable not in select list"
SELECT
nvl(MODEME, ''),
nvl(NBANME, 0),
nvl(BASEME, '0'),
nvl(PRORME,'0'),
nvl(EVALME, '0'),
nvl(DECOME, '0') ,
nvl(CDDAME, '0'),
nvl(CDMIME, '0'),
nvl(TXMIME, 0),
nvl(CDMAME, '0'),
nvl(TXMAME, 0),
nvl(CDTXME, '0'),
nvl(CDSUME, '0'),
nvl(TXSUME, 0),
nvl(DUMIME, 0),
nvl(MTVNME, 0),
nvl(NOANML, 0),
nvl(TAUXML, 0),
DESIME
FROM MET, LME
WHERE MODEME = MODEML
AND nvl(INLBME,'1')='1'
ORDER BY MODEME,NOANML
[ or
ORDER BY 1,17 ]
In both cases,
We use the following precompiling options:
include=/oracle/OraHome1/precomp/lib ireclen=132 oreclen=132 sqlcheck=syntax parse=partial select_error=no char_map=VARCHAR2 mode=ORACLE unsafe_null=yes
dbms=V8
Could someone help ?
Thanks ...

My answer is only for 1. problem (about ORA-01458)
I think that you use declaration for cursor C0 with a varchar
variable before you ininitialize length (member .len of varchar
structure) of this variable.
It's famous that many errors come from uninitialized varchar
variables in Pro*C.

Similar Messages

  • Pro c on linux oracle 8.1.5

    I use oracle 8.1.5 on redhat linux 6.1
    and I encounter a problem
    when compile the demo from oracle
    pro c version 8.1.5
    in precomp/demo directory
    make -f demo_proc.mk
    [oracle@dragon proc]$ make -f demo_proc.mk
    make: `/home/oracle/lib/libclntsh.so' is up to date.
    [oracle@dragon proc]$
    what problem?...
    null

    Hi,
    U should use this command
    make -f demo_make.mk samples
    or
    instead of samples , u can use the sample1 or sample2 .....
    Note: above mentioned commands are lnking libraries dynamically. So should set LD_LIBRARY_PATH.
    For static building
    make -f demo_make.mk samples build_static
    If u have any more doubts, U can send personal mails also.
    With regrads,
    Boby Jose
    null

  • Pros and cons of using email sending package in oracle 8.1.6

    hi ,
    i would like to know the advantages /disadvantages of using email sending package from oracle 8.1.6
    compared to sending the same using say perl or php.
    iam developing a site in php/oracle8.1.6 , in which iam supposed to create a payement module.whenever a user
    register(for free trial or subscribing the site) i'll have to send him a welcoming mail.In addition to this iam also supposed to find out wether subscribers are paying cash at right time and if not send them reminder mails and other for related scenarios . i can do the same in Perl or PHP.but if iam not gaining much(say based on server performance or load) then i think i can go ahead with oracle package. when i tested it i found that its slow . what about the load that it may cause for the server (ours is linux ).
    please do give inputs on this

    Hi Ravi,
    Thanks for your reply.
    But I am specifically looking at pros and cons for web services. So the thread which you passed to me won't help.
    Regards
    Nitin.

  • Steps to Connect remote Oracle Server using OCi C in Linux

    Hi !
    I am trying to connect oracle server through my application using OCI C in linux, it works fine in my oracle server machine.
    I want to connect oracle server through my C application from Oracle Client Machine
    can anyone help me in this issue ?
    regards
    Balaji.C

    Sounds like you did not specify your database name. Or you database name is hard-coded.
    Can you show us the code?
    Is your TNSNAMES.ORA set up correctly?
    Also, you did not specify any error messages or anything. Are you checking the result codes after any functions?

  • Unable to connect to Oracle using OCI Drivers on Linux

    Hi Everyone!
    I am facing a peculiar issue while using Instant Client on Linux ( 64Bit ) running on Red Hat 4.1.
    I have downloaded the instant client version 10.2.0.3(.zip) .so files from the below URL
    http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxx86_64soft.html
    UPloaded all the files to a directory under /opt and changed the .bash_profile file, the latest content looks like
    ORACLE_HOME=/opt/instantclient_10_2
    export ORACLE_HOME
    PATH=$PATH:$ORACLE_HOME
    export PATH
    TNS_ADMIN=/opt/instantclient_10_2
    export TNS_ADMIN
    LD_LIBRARY_PATH=/opt/instantclient_10_2
    export LD_LIBRARY_PATH
    PATH=$PATH:$LD_LIBRARY_PATH
    export PATH
    CLASSPATH=/opt/instantclient_10_2:/opt/instantclient_10_2/ojdbc.jar
    export CLASSPATH
    Java.library.path=/opt/instantclient_10_2
    export Java.library.path
    As i have downloaded the Sqlplus utility as well, i am able to connect to the Oracle FARM via sqlplus.
    On the other hand, i am unable to connect to the same database via the application. It constantly gives me the following exception,
    java.lang.UnsatisfiedLinkError: no ocijdbc10 in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
    at java.lang.Runtime.loadLibrary0(Runtime.java:823)
    at java.lang.System.loadLibrary(System.java:1030)
    at oracle.jdbc.driver.T2CConnection$1.run(T2CConnection.java:3138)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.jdbc.driver.T2CConnection.loadNativeLibrary(T2CConnection.java:3134)
    at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:220)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:438)
    at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:131)
    at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:77)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:752)
    at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:296)
    at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:220)
    at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:164)
    at com.sun.gjc.spi.DSManagedConnectionFactory.createManagedConnection(DSManagedConnectionFactory.java:105)
    at com.sun.enterprise.resource.LocalTxConnectorAllocator.createResource(LocalTxConnectorAllocator.java:68)
    at com.sun.enterprise.resource.AbstractResourcePool.createSingleResource(AbstractResourcePool.java:891)
    at com.sun.enterprise.resource.AbstractResourcePool.createResourceAndAddToPool(AbstractResourcePool.java:1752)
    at com.sun.enterprise.resource.AbstractResourcePool.createResources(AbstractResourcePool.java:917)
    at com.sun.enterprise.resource.AbstractResourcePool.initPool(AbstractResourcePool.java:225)
    at com.sun.enterprise.resource.AbstractResourcePool.internalGetResource(AbstractResourcePool.java:516)
    at com.sun.enterprise.resource.AbstractResourcePool.getResource(AbstractResourcePool.java:443)
    at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:248)
    at com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl.java:176)
    at com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:327)
    at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:235)
    at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:165)
    at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:158)
    at com.sun.gjc.spi.base.DataSource.getConnection(DataSource.java:108)
    at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:113)
    at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:79)
    at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:922)
    at org.springframework.jdbc.core.JdbcTemplate.call(JdbcTemplate.java:984)
    at org.springframework.jdbc.object.StoredProcedure.execute(StoredProcedure.java:117)
    at com.gecf.uk.pca.dcs.util.SystemParametersDAO$SysParamsStoredProcedure.execute(SystemParametersDAO.java:150)
    at com.gecf.uk.pca.dcs.util.SystemParametersDAO.getSystemParametersList(SystemParametersDAO.java:67)
    at com.gecf.uk.pca.dcs.util.SystemParametersDAO.getSystemParametersMap(SystemParametersDAO.java:94)
    at com.gecf.uk.pca.dcs.util.SystemParameters.loadParameters(SystemParameters.java:44)
    at com.gecf.uk.pca.dcs.util.SystemParameters.<init>(SystemParameters.java:33)
    at com.gecf.uk.pca.dcs.util.SystemParameters.getInstance(SystemParameters.java:72)
    at org.apache.jsp.common.secure.mypayment_jsp._jspService(mypayment_jsp.java from :86)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:93)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:470)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
    at com.gecf.uk.pca.dcs.web.util.SessionFilter.doFilter(SessionFilter.java:97)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
    at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
    |#]
    I have used the classes12.jar and ojdbc.jar which came with the download and nothing seems to work. A bit surprising when sqlplus works and not the application. I suspect there could be an issue with the driver class. I have been struggling to figure this out for days now...
    Can anyone please share their thoughts if something similar was observed earlier please.
    Any quick help will highly be appreciated.

    ORACLE_HOME=/opt/instantclient_10_2
    export ORACLE_HOMEYou don't set ORACLE_HOME with Instant Client.
    PATH=$PATH:$LD_LIBRARY_PATH
    export PATHThis is unnecessary.
    CLASSPATH=/opt/instantclient_10_2:/opt/instantclient_10_2/ojdbc.jar
    export CLASSPATHThis is wrong.
    It should be:
    CLASSPATH=/opt/instantclient_10_2/ojdbc14.jar:<whatever else you need there>
    Java.library.path=/opt/instantclient_10_2
    export Java.library.pathThis is useless; java.library.path is not an environment variable.
    java.lang.UnsatisfiedLinkError: no ocijdbc10 in java.library.pathThe case is pretty clear. You want to use the OCI driver (your URL starts with "jdbc:oracle:oci:"), so the Java Virtual Machine is looking for libocijdbc10.so in the Java library path but cannot find it.
    What is also clear is that the program does not use the CLASSPATH environment variable you set, because then it would never have found the Oracle Driver.
    So it seems that your program is ignoring the environment you set (which would explain why it also ignores LD_LIBRARY_PATH which you set correctly).
    You must have the environment variables set and exported in the shell that starts the "java" executable.
    Also, check that there is no other ojdbc14.jar on this machine (use "find").
    To help you debug your problem, let me explain how Sun Java sets Java library path on Linux:
    - If you start java with "java -Djava.library.path=/some/dir:/other/dir ...", the Java library path is set to exactly that value.
    - If you do not specify -Djava.library.path, the Java library path is taken from the environment variable LD_LIBRARY_PATH.
    - Directories listed in /etc/ld.so.conf have no influence on the Java library path (which gave me quite a headache in the beginning).
    Do you really need the OCI Driver? If you can do with the Thin Driver (i.e., use an URL that starts with "jdbc:oracle:thin:") you don't need any shared libraries at all.
    Yours,
    Laurenz Albe

  • Oracle 10 Million records insert using Pro c

    Hi,
         As i am new to Oracle 10G Pro c and SQL Loader, i would like to know few informations regarding the same.
    My requirement is this that, i need to read a 20GB file (20Million Lines) line by line and convert the line into database records with few data manipulation and insert
    into a Oracle 10G database table.
         I read some articles and it says Pro C is faster than SQL Loader in performance (fast insertion). And also Pro C talks to
    the oracle directly and it puts the data pages directly into Oracle but not through SQL Engine or Parser.
         Even in the Pro c samples, i have seen a For loop to insert mulitple records. Will each insertion cost
         more time ?
         Is there any bulk insert program on Pro C like 10 Million rows at a shot ?
         Or Pro c can do upload of a file data into Oracle database table ?
         If any one already posted this query means please inform me the thread number or id
    Thank you,
    Ganesh
    Edited by: user12165645 on Nov 10, 2009 2:06 AM

    Alex Nuijten wrote:
    Personally I would go for either an External Table or SQL*Loader, mainly because I've never used Pro*C.. ;)
    And so far I never needed to resort to other option because of poor performance.I fully agree. Also we are talking about "only" 10 mill rows. This will take some time, but probably not more than 30 min, max. 2 hours depending on many factors including storage, network and current database activities. I've seen systems where such a load took only a few minutes.
    I guess if there is a difference between Pro*C and external tables I would still opt for external tables, because they are so much easier to use.

  • Oracle 10g or less Pro Fortran for linux  ?

    Hello,
    I'm looking for the oracle pro-fortran for linux.
    Where can i find it ?
    Thanks

    Doesn't appear to be part of the Linux bundle. It may not have been ported. I checked 10gR1 and 9.2.x.

  • Installing oracle on Linux using the SAP version of oracle software

    Hello All,
    I am trying to install 32bit oracle software on Linux 32 bit os using the SAP version of Oracle Install Software downloaded from marketplace. I have downloaded the required exe and rar files and unpacked them on my PC. The unpacked folder is uploaded in bin mode to the respective server under a common mountpoint. In the folder i have 4 .SAR files with other label files etc.  I want to unarchive these .SAR files to get the runInstaller but running in to issues.
    Here are the steps I tried:
    1. I copied the SAPCAR exe from exe directory and tried to unpack the 4 .SAR files but got permission error. All these 4 .SAR files are owned by ora<sid> user id. I tried to do all these under root user still it fails.
    ora<sid>@xxxyysapdbXX:/sapdata//Oracle32/51031674> SAPCAR -xvf OR110232.SAR
    -bash: ./SAPCAR: cannot execute binary file
    what am i missing?
    Any help is greatly appreciated.

    If you have a 32bit OS then you need to use the 32bit binaries of SAPCAR - yes.
    And:
    Usually those SAR files are unpacked by the installation program sapinst, why do you unpack them manually?
    Markus

  • How to store txt file into Oracle 7 Database using Pro*C

    Hi,
    I want to store a txt file into Oracle 7 database table using
    Pro*C application. But do not know what type of column to use.
    At first glance it appeared to me as LONG can serve the purpose
    but later I noticed that I can not do the sequential read/write
    in LONG type of column. That is, I have to use chunks of max of
    2GB (or file lenght) to read/write into such columns.
    I want something simiar to CLOB of Oracle 8.
    I would appreciate if you can provide me solution.
    Thanks,
    Anurag

    You store images in a BLOB column in the database.
    However, inserting image in that column and displaying data/image from that column are 2 very different tasks.
    If you are using Oracle forms, displaying is easy. Default block sitting on the table with BLOB column, can be easily mapped to image box (or similar control), which will display that image.
    Inserting images will be a different ball game. If your forms are web based (i.e. run from browser) and you want to insert images from client machine, some special arrangements are required.
    If images are on database server and you want to insert them in database, the stored procedure given in the earlier thread (posted above) will do the job.

  • Environnement with pro-cobol and linux redhat

    Hi,
    I have a linux redhat Linux 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux
    and oracle 11g database where we have installed Pro-cobol with a launcher xframe ( not me !)
    we want to use command-line with pro-cobol :
    exemples :
    export COBOLOPTS="-dy -shared -M -lxconv -L$XFRAMEHOME/lib -I $PWD -WC,""DLOAD"" -WC,""SOURCE"" -WC,""COPY"" -WC,""XREF"" -WC,""FLAG(E)"" -WC,""MODE(STD)"" -WC,""ALPHAL(WORD)"" -WC,""NOTRUNC"" -WC,""NOSDS"" -WC,""SRF(FIX)"" -WC,""MAP"" -do ./ -dp ./ "
    cobol -o OV1SLSP.e OV1SLSP.pre OV1MADR0.o $ORACLE_HOME/precomp/lib/cobsqlintf.o OV1MADR1.pre.o OV1MSNT0.pre.o 2> OV1SLSP.errors
    execution:
    OV1SLSP.e
    results
    Erreur de segmentation
    we have a this error.
    but when we use xframe launcher :
    execution:
    xrun OV1SLSP
    results
    XRUN: STARTING OV1SLSP
    OV1MADR0 PLANTAGE SQL RNVP : -1012
    SQLERRMC ORA-01012: non connecté
    COBOL:rts: HALT: JMP0015I-U [PID:000004A0 TID:B7FFC940] CANNOT CALL PROGRAM 'COBCANC'. xvsamRts: undefined symbol: COBCANC PGM=OV1MADR0
    XRUN: TERMINATED WITH CODE 134
    =>This message is normal because we have connect to database !
    It's working perfect.
    My question is : what is the correct librairies to have to make static compiling pro-cobol's programs?
    hope to be cleared.
    Thanks.
    Edited by: french_dam on 28 janv. 2011 10:07
    Edited by: french_dam on 28 janv. 2011 10:11

    Have you checked the system requirements for using Pro-Cobol with Oracle 11g and Linux? See here:
    Pro*COBOL® Programmer's Guide 11g Release 1 (11.1)
    http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28428/pcoabops.htm#insertedID1
    Hope this helps,
    Ben

  • Using alter user to change oracle password for logged in web user on XE

    Hi All
    I'm building an app using the pl/sql web toolkit on XE (installed on Win XP Pro SP2). (I'm not using the APEX front-end).
    I'm using basic authentication and oracle database user accounts, and when a user registers for the first time I create them an oracle user account with dynamic sql, followed by some initial setup stuff, and they then log in with it.
    All fine so far.
    However I want to allow the user to change their oracle password as part of maintaining their user details. I've done this in the past using the web toolkit and Oracle 9i and it has worked fine using dynamic sql.
    Unfortunately I can't get the same thing to work in XE.
    For example, if I create the following procedure in the schema aligned to the DAD which holds my application and then run it from a browser (IE or Firefox) then the
    Browser and the db just hangs - not even an error message:
    CREATE OR REPLACE PROCEDURE ut
    AS
    v_stmt varchar2(300);
    BEGIN
    HTP.htmlOpen;
    HTP.headOpen;
    HTP.title ('User Test');
    HTP.headClose;
    HTP.bodyOpen;
    v_stmt := 'alter user "'||user||'" identified by "BERT"';
    htp.print(v_stmt);
    EXECUTE IMMEDIATE v_stmt;
    htp.print('Done');
    HTP.bodyClose;
    HTP.htmlClose;
    END;
    If I run the same statement in SQL*plus it's fine, and if I run the same proc for a different user then it's fine too.
    I'm sure it's something to do with trying to change the credentials of the currently logged in user, but I would at least have expected an error message.
    I'd be grateful for any ideas.
    Thanks
    Steve

    Hi g.myers
    Thanks for your response.
    Sorry, yes, bad turn of phrase there. It's not the entire db that hangs. The web browser (either IE or FF) hangs, and if I look at v$session at this point, I can see that the user STATUS=ACTIVE and the STATE=WAITING.
    I should also point out that I am using standard Oracle users as users of the application, (e.g. create a new user account called TESTER1). These users are then granted the appropriate privileges on the owning schema in order to run the app, access the tables etc.
    Therefore it is the user account (e.g. TESTER1) that is running the password change procedure that is owned by the SYS schema. (However again, this is the exact code and method that I've used in the past and it has worked fine).
    If I leave the browser hanging long enough, it will eventually return with the following error:
    Proxy Error
    The proxy server received an invalid response from an upstream server.
    The proxy server could not handle the request POST /h/hopapp.pwdmaint_do.
    Reason: Error reading from remote server
    cheers
    Steve

  • ORA-01458 error while using Pro*C to invoke PL/SQL procedure, pls help

    I am using Pro*C (Oracle 10g on Itanium platform) to invoke PL/SQL procedure to read RAW data from database, but always encoutered ORA-01458 error message.
    Here is the snippet of Pro*C code:
    typedef struct dataSegment
         unsigned short     len;
         unsigned char     data[SIZE_DATA_SEG];
    } msg_data_seg;
    EXEC SQL TYPE msg_data_seg IS VARRAW(SIZE_DATA_SEG);
         EXEC SQL BEGIN DECLARE SECTION;
              unsigned short qID;
              int rMode;
              unsigned long rawMsgID;
              unsigned long msgID;
              unsigned short msgType;
              unsigned short msgPriority;
              char recvTime[SIZE_TIME_STRING];
              char schedTime[SIZE_TIME_STRING];
              msg_data_seg dataSeg;
              msg_data_seg dataSeg1;
              msg_data_seg dataSeg2;
              short     indSeg;
              short     indSeg1;
              short     indSeg2;
         EXEC SQL END DECLARE SECTION;
         qID = q_id;
         rMode = (int)mode;
         EXEC SQL EXECUTE
              BEGIN
                   SUMsg.read_msg (:qID, :rMode, :rawMsgID, :msgID, :msgType, :msgPriority, :recvTime,
                        :schedTime, :dataSeg:indSeg, :dataSeg1:indSeg1, :dataSeg2:indSeg2);
              END;
         END-EXEC;
         // Check PL/SQL execute result, different from SQL
         // Only 'sqlcode' and 'sqlerrm' are always set
         if (sqlca.sqlcode != 0)
              if (sqlca.sqlcode == ERR_QUEUE_EMPTY)          // Queue empty
                   throw q_eoq ();
              char msg[513];                                        // Other errors
              size_t msg_len;
              msg_len = sqlca.sqlerrm.sqlerrml;
              strncpy (msg, sqlca.sqlerrm.sqlerrmc, msg_len);
              msg[msg_len] = '\0';
              throw db_error (string(msg), sqlca.sqlcode);
    and here is the PL/SQL which is invoked:
    SUBTYPE VarChar14 IS VARCHAR2(14);
    PROCEDURE read_msg (
         qID          IN     sumsg_queue_def.q_id%TYPE,
         rMode          IN     INTEGER,
         raw_msgID     OUT     sumsg_msg_data.raw_msg_id%TYPE,
         msgID          OUT sumsg_msg_data.msg_id%TYPE,
         msgType          OUT sumsg_msg_data.type%TYPE,
         msgPrior     OUT sumsg_msg_data.priority%TYPE,
         msgRecv          OUT VarChar14,
         msgSched     OUT VarChar14,
         msgData          OUT sumsg_msg_data.msg_data%TYPE,
         msgData1     OUT sumsg_msg_data.msg_data1%TYPE,
         msgData2     OUT sumsg_msg_data.msg_data2%TYPE
    ) IS
    BEGIN
         IF rMode = 0 THEN
              SELECT raw_msg_id, msg_id, type, priority, TO_CHAR(recv_time, 'YYYYMMDDHH24MISS'),
                   TO_CHAR(sched_time, 'YYYYMMDDHH24MISS'), msg_data, msg_data1, msg_data2
                   INTO raw_msgID, msgID, msgType, msgPrior, msgRecv, msgSched, msgData, msgData1, msgData2
                   FROM (SELECT * FROM sumsg_msg_data WHERE q_id = qID AND status = 0 ORDER BY sched_time, raw_msg_id)
                   WHERE ROWNUM = 1;
         ELSIF rMode = 1 THEN
              SELECT raw_msg_id, msg_id, type, priority, TO_CHAR(recv_time, 'YYYYMMDDHH24MISS'),
                   TO_CHAR(sched_time, 'YYYYMMDDHH24MISS'), msg_data, msg_data1, msg_data2
                   INTO raw_msgID, msgID, msgType, msgPrior, msgRecv, msgSched, msgData, msgData1, msgData2
                   FROM (SELECT * FROM sumsg_msg_data WHERE q_id = qID AND status = 0 ORDER BY recv_time, raw_msg_id)
                   WHERE ROWNUM = 1;
         ELSE
              SELECT raw_msg_id, msg_id, type, priority, TO_CHAR(recv_time, 'YYYYMMDDHH24MISS'),
                   TO_CHAR(sched_time, 'YYYYMMDDHH24MISS'), msg_data, msg_data1, msg_data2
                   INTO raw_msgID, msgID, msgType, msgPrior, msgRecv, msgSched, msgData, msgData1, msgData2
                   FROM (SELECT * FROM sumsg_msg_data WHERE q_id = qID AND status = 0 ORDER BY priority, raw_msg_id)
                   WHERE ROWNUM = 1;
         END IF;
         UPDATE sumsg_msg_data SET status = 1 WHERE raw_msg_id = raw_msgID;
    EXCEPTION
         WHEN NO_DATA_FOUND THEN
              raise_application_error (-20102, 'Queue empty');
    END read_msg;
    where sumsg_msg_data.msg_data%TYPE, sumsg_msg_data.msg_data1%TYPE and sumsg_msg_data.msg_data2%TYPE are all defined as RAW(2000). When I test the PL/SQL code seperately, everything is ok, but if I use the Pro*C code to read, the ORA-01458 always happen, unless I change the SIZE_DATA_SEG value to 4000, then it passes, and the result read out also seems ok, either the bigger or smaller value will encounter ORA-01458.
    I think the problem should happen between the mapping from internal datatype to external VARRAW type, but cannot understand why 4000 bytes buffer will be ok, is it related to some NLS_LANG settings, anyone can help me to resolve this problme, thanks a lot!

    It seems that I found the way to avoid this error. Now each time before I read RAW(2000) data from database, i initialize the VARRAW.len first, set its value to SIZE_DATA_SEG, i.e., the outside buffer size, then the error disappear.
    Oracle seems to need this information to handle its data mapping, but why output variable also needs this initialization, cannot precompiler get this from the definition of VARRAW structure?
    Anyone have some suggestion?

  • SOLUTION MANAGER 7.1 install on linux/oracle java error on ABAP IMPORT

    Hello sdn experts, Im trying to install the Solution Manager 7.1 on linux/oracle, but It always stops at the abap import,
    The error is in the Program "Migration Monitor", that exit with error.
    Reviewing the logs, it seems that is trying to execute a java command line with a unrecognized option:
    "Execution of the command "/opt/IBMJava2-amd64-142/bin/java -classpath migmon.jar -showversion -Xmx1024m com.sap.inst.migmon.imp.ImportMonitor -sapinst" finished with return code 1. Output:
    JVMJ9VM007E Command-line option unrecognized : -Xjvm:j9vm23"
    Usage : java [-options] class...
    As you can see, the sdk used is from IBM, and it works for all other saps we have here.
    Is the wrong jdk? Which I should use if its wrong?
    If is the right jdk, how could I get rid of this option and change it?
    Any idea would be appreciated.
    Thank you

    Hi Maurici,
    have you checked this note already?
    [https://service.sap.com/sap/support/notes/1159935|https://service.sap.com/sap/support/notes/1159935]
    It is about your error message. ...
    Best, Hannes

  • Zero padding the LUN using dd command in Linux

    Grid Infrstructure: 11.2.0.3
    OS : Oracle Enterprise Linux 6.3
    When we were installing RAC in solaris, we used to zero pad all LUNs meant for ASM . We used to do like below
    dd if=/dev/zero of=/dev/rdsk/c0t600A0B8008A4CA005ACd0s0 bs=1024k count=2000Now we are going to install RAC in Oracle Linux v6 . When I googled Linux related stuff for RAC , I didn't come across documents in which zero padding is done on LUNs meant for ASM Disk groups.
    Question1. Is zero padding using dd necessary in Linux platform ?
    Question2. If dd command has to be run in the LUN, shouldn't that be done before we create the partition table ?

    Question1. Is zero padding using dd necessary in Linux platform ?No, never did that, not even on Solaris.
    Question2. If dd command has to be run in the LUN, shouldn't that be done before we create the partition table ?Of course it should.
    What would be the point of creating the partition table and after that overwriting it with 0-s :)
    Do you use a NAS for ASM disks?
    Solaris: http://docs.oracle.com/cd/E11882_01/install.112/e24616/storage.htm#CACDHHJJ
    Linux: http://docs.oracle.com/cd/E11882_01/install.112/e22489/storage.htm#CFACJAGB

  • WHERE ARE Linux Oracle Services (as in NT) ?

    WHERE ARE the Linux Oracle Services created by the OUI (such as listener, db, apache, etc) and how cn i start / stop them automatically ?
    Also, is there in any place "the oracle program group menus" like in WINDOWS START MENU, so we can see all programs installed ?
    I Installed 9iAS release 2 in RedHat
    Thanks

    I use 8.1.7 on LInux. There are dbshut and dbstart scripts in $ORACLE_HOME/bin and there is example of "service-script" in Installation Guiede. So you can create "service-scripts", put in in /etc/rc.d/init.d and usecommends like /etc/rc.d/init/oradb start/stop, besides it you can make links for this script in rc.0, rc.6, rc.3 etc.. (like other services). You may write me a letter ([email protected]) and I'll send you service-scripts, if you will have troubles.

Maybe you are looking for

  • How can i downgrade my iphone 4s from iOS 6.0.1 to iOS 5.1.1?

    i've ugraded my iphone 4s to iOS 6.0.1 and i'm not satisfied. it slows down my phone and takes a lot of RAM and CPU. i want to downgrade to 5.1.1 and i've been searching a lot on the web apparently i have to be jailbreaked so i can downgrade. this is

  • Analog cameras

    I have three analog/digital capture cards and I can get one camera to show up but the second will not. If I switch the second camera to a digital camera all is well. Got any ideas as to how to trouble-shoot this issue? TIA d

  • Purpose of KEAT and KEAW reports

    Can someone please explain the purpose of KEAT and KEAW reports in COPA? I understand that KEAT is used for reconciling COPA with SD and FI and KEAW is for reconciling CO with PS and Sales Orders, CO with COPA and CO with FI. I would like to know in

  • WAD: Error Valid InfoObjects

    Hi Gurus, I have IP Layout with 9 Tabs(9 query) on it. My Variable Screen has 9 Product Hier (Optional).user can enter on one Product hier and get it to the Layout. if the user stays it the same Tab then No issues. But if the user moves to different

  • Can the Intellipoint mouse center scroll button open a new tab?

    I have a Microsoft Wheel Mouse optical USB mouse with a scroll wheel which can be modified from within the System Preferences settings. The Wheel Button however has a limited number of options. Different from Windows, this mouse, in the Mac, does not