ProC problem

We have a problem accessing multiple Oracle tables from embedded SQL(Pro*C). The problem appears to occur when several functions containing embedded SQL are compiled separately. If all the Oracle functions are combined and compiled together then so far we have not found a problem.
NOTE: We have successfully compiled and run these Oracle programs on HP and IBM UNIX machines (HP-UX and AIX).
Basically the problem is that accesses to the second and subsequent tables return incorrect values - in fact it appears that the system thinks it is still accessing the first table.
For example, the following are three functions that are compiled separately
and then linked:
iesmain.pc
ies1.pc
ies2.pc
Link step:
gcc -o iesmain iesmain.o ies1.o ies2.o -L/oracle/product/8.1.5/lib -lclntsh
Execution results:
When run iesmain second table returns data but is really data from the
first table:
READING XCTNNEXT
SQLCODE = 0
JOBNAME = bulljob
SQLCODE = 100
CLOSE CURSOR CODE. SQLCODE = 0
READING LINES_IN
SQLCODE = 0
RRRCC = bullj
SQLCODE = 100
CLOSE CURSOR CODE. SQLCODE = 0
If instead you compile the three functions together then the result is different:
eg cat iesmain.pc ies1.pc ies2.pc > escat.pc
Link step:
gcc -o iescat iescat.o -L/oracle/product/8.1.5/lib -lclntsh
Execution results:
READING XCTNNEXT
SQLCODE = 0
JOBNAME = bulljob
SQLCODE = 100
CLOSE CURSOR CODE. SQLCODE = 0
READING LINES_IN
SQLCODE = 0
RRRCC = SVI01
SQLCODE = 0
RRRCC = JKA01
SQLCODE = 0
RRRCC = JKB01
SQLCODE = 0
etc
null

I too have experienced a similar problem on 8i for Linux, yet the same code works fine on 8.0.5 and 8i on Solaris. After struggling with this for a couple days I'm glad to see I am not the only one with the problem.
I tried copying the pre-compiled source from Solaris to Linux, but the problem still exists. The only significant difference between two precompiler outputs seems to be
linux :static const unsigned int sqlctx = 1;
solaris:static unsigned long sqlctx = 619115;
The code that is causing me problems is anonymous pl/sql blocks in the ProC code, executing the first block in the second file seems to re-execute the last block in the first file (this is my current thinking anyway).
Has anyone managed to successfully use multiple ProC files?
Thanks,
Jill

Similar Messages

  • Stored Proc Problem

    Hi everyone,
    I have inherited a classic asp site that uses stored procs with a SQL 2005 Server. The problem is this, when I open up "Command" to view the data that my predecessor used all seems ok as I am not an expert in Stored Procs and am just learning this web application. I do not make any changes and then select "OK" - when I do this an error comes up telling me that there is a "MIssing Run Time Variable" for a particular variable. The site itself works well so the error seems incorrect.
    Because I inherited the site and do not have access to my predecessors computer is there a chance that because I am opening the "Command" box for the first time that I am not seeing exactly what was added into it originally??
    I am at a bit of a loss and would really appreciate a steer in the right direction.
    Many thanks
    Scott

    I would not worry too much if it works. I have noticed that if I enter 'custom' code that DW gives me error messages when the code is actually O/k.
    HTH

  • G++ and proc problem

    I am trying to compile a C++ program using proc on Linux and everything works fine until when I actually try to compile the output source from proc using g++. The problem is that there is a function
    sqlcxt(void **, unsigned int *, sqlexd *, const sqlcxp *) that is called with the variable 'static const unsigned int sqlctx = 1;'
    Both of these are generated by the precompiler and when I try to compile it using g++, I get an error saying passing `const unsigned int *' as argument 2 of `sqlcxt() disgards qualifiers.
    What I have to do to get around this is to edit the output source manually and change the variable declaration to 'static unsigned int sqlctx = 1;'
    Does anyone know how to fix this??
    Thanks a lot!

    When I use g++ link ,an error generate " Undefind sqlcxt(void **, unsigned int *, sqlexd *, const sqlcxp *) " . But I use gcc link ,find there is no error.
    How can I resolve it??
    Thanks for reply it!

  • Java Stored proc problem

    When I am trying to create a procedure with below details gives the following errors:
    create or replace
    Procedure test ( id IN NUMBER,
    i IN NUMBER,
    j IN VARCHAR2,
    ret1 OUT NUMBER,
    ret2 OUT VARCHAR2,
    k IN NUMBER) AS
    LANGUAGE JAVA NAME 'com.fn.oracle.proc.trading.TestProcedure.testIt(int, double, java.lang.String, int, java.lang.String, int)';
    PL/SQL: Compilation unit analysis terminated
    PLS-00235: the external type is not appropriate for the parameter
    Please help me on this..
    Thank you....

    The problem is with the OUT parameters. If you read the documentation you will see that OUT parameters
    need to be declared as one element arrays. Hence this should compile:
    CREATE OR REPLACE PROCEDURE TEST ( id IN NUMBER,
    i IN NUMBER,
    j IN VARCHAR2,
    ret1 OUT NUMBER,
    ret2 OUT VARCHAR2,
    k IN NUMBER) AS
    LANGUAGE JAVA NAME 'com.fn.oracle.proc.trading.TestProcedure.testIt(int, double, java.lang.String, int[], java.lang.String[], int)';Cheers, APC

  • Stored Procs problems

    Hi EveryBody,
    I might sound silly with my problems but please reply me with best possible solutions.
    Let me clear the scenario first
    I am having Oracle 8.1.7.2 on sunsparc solaris machines as production system and oracle 8.1.7.5 on intel server with windows as testing machine.
    I have written some stored procs that get executed very finely on my testing machine but they take ten times more time on my production server even after we bring down the application and only database is kept up.
    We looked up for few things here and there and these are our findings
    1) A lot number of sessions are created with the user(that is having all tables we are firing our procs upon) . I want to know can a stored proc also create different sessions (bcoz 1 stored proc is callling two or more procs)
    2)There are a few cron jobs executing that are used for analyze of the tables that we fire our procs upon. Could this also hamper performance of stored procs.
    3) In the v$session_longops we found that there are few Table Scan and Index Scan processes that were showing time remaining of more than 20 hrs. the sid for these longops did not belong to usernames with which any app. or any user logs into oracle.
    4) One of my procs does not responds for a no. of hrs but as soon as we kill the session using (alter system kill session) it starts populating the table and generating results. And the session gets marked for killed but never gets killed.
    Please help me for these issues

    hi kamal
    data volume on both servers is same as first i took backup of production server by exporting it to dmp and then imported it to test server.
    the scripts of procs are same for both infact scripts were first developed on test server and after testing there only we put those scripts in production
    i dont have any idea about tkproof (completely new term for me or if u r using it as an abbreviation)
    moreover the tables have been analyaed on both servers.

  • Oracle stored proc problem

    HI, I have created a stored proc in oracle similar below:
    CREATE OR REPLACE PACKAGE PACK_REFCURSOR_NHM_TRANSACTION AS
    TYPE TRANS_TableRows IS REF CURSOR
    RETURN NHM_TRANSACTION%ROWTYPE;
    PROCEDURE REFCUR_NHM_TRANSACTION (
    IN_sTMPACC IN string,
    IN_sITEM_TYPES IN string,
    OUT_TRANS OUT TRANS_TableRows);
    END PACK_REFCURSOR_NHM_TRANSACTION ;
    -- the above works fine
    --but this one below has the error when
    CREATE OR REPLACE PACKAGE BODY PACK_REFCURSOR_NHM_TRANSACTION
    AS
    PROCEDURE REFCUR_NHM_TRANSACTION (
    IN_sTMPACC IN string,
    IN_sITEM_TYPES IN string,
    OUT_TRANS OUT TRANS_TableRows) IS
    BEGIN
    OPEN OUT_TRANS FOR
    SELECT T.TRANSACTION_ID, T.TRANSACTION_TYPE,
    T.TRANSACTION_DATE, T.TRANSACTION_TIME,
    T.ITEM_CODE, 0 OE_DETAIL_ID,
    T.QUANTITY, T.LIST_PRICE, T.DISCOUNT, T.SALE_PRICE,
    T.GST_AMOUNT, 'I'INSURER_TYPE
    FROM NHM_TRANSACTION T
    WHERE DISPENSED_FLG = 'Y'
    AND T.ACCOUNT_ID = IN_sTMPACC
    AND T.TRANSACTION_TYPE IN ('01','02', '09')
    AND NVL(T.STATUS,'F') != 'C'
    AND T.BILLED_FLG = 'N'
    AND T.ITEM_TYPE IN (IN_sITEM_TYPES)
    AND T.BILL_ITEM_FLG = 'Y'
    UNION ALL
    SELECT T.OE_TRANSACTION_ID TRANSACTION_ID, TRANSACTION_TYPE,
    T.TRANSACTION_DATE,
    T.TRANSACTION_TIME, NVL(T.ITEM_CODE,T.PACKAGE_CODE)
    ITEM_CODE, T.OE_DETAIL_ID,
    T.QUANTITY, T.LIST_PRICE, T.DISCOUNT, T.SALE_PRICE,
    T.GST_AMOUNT, 'S' INSURER_TYPE
    FROM NHC_OE_TRANSACTION T, NHC_MASTER_ITEM M, NHM_PACKAGE P
    WHERE T.ACCOUNT_ID = IN_sTMPACC
    AND T.ITEM_CODE = M.ITEM_CODE(+)
    AND T.PACKAGE_CODE = P.PACKAGE_CODE(+)
    AND (DECODE(T.ITEM_CODE,NULL,P.BILL_OPTION,M.BILL_OPTION) in
    ('P','O','F'))
    AND NVL(T.STATUS,'F') != 'C'
    AND T.BILLED_FLG = 'N'
    AND ((T.TRANSACTION_TYPE = '09' AND STATUS IN ('P','R'))
    OR T.TRANSACTION_TYPE IN ('01','02','11','12', '10'))
    AND T.BILL_ITEM_FLG = 'Y'
    AND T.ITEM_TYPE IN (IN_sITEM_TYPES) ;
    END REFCUR_NHM_TRANSACTION ;
    END PACK_REFCURSOR_NHM_TRANSACTION ;
    --this gives error: PLS-00382: expression is of wrong type
    but when i tried to change the query similar to this:
    OPEN OUT_TRANS FOR
    SELECT T.*
    FROM NHM_TRANSACTION T
    WHERE DISPENSED_FLG = 'Y'
    AND T.ACCOUNT_ID = IN_sTMPACC
    AND T.TRANSACTION_TYPE IN ('01','02', '09')
    AND NVL(T.STATUS,'F') != 'C'
    AND T.BILLED_FLG = 'N'
    AND T.ITEM_TYPE IN (IN_sITEM_TYPES)
    AND T.BILL_ITEM_FLG = 'Y' ;
    --that worked fine. what i found out is the proc doesn't seem
    to work with complicated queries. instead it works only in
    something similar to SELECT T.*? and not when individual fields are
    extracted? I can't understand why? can anyone help me with this>
    thanks.

    I think what is hapenning is that you are declaring the
    reference cursor in your package spec as a "strong" type as a
    rowtype of table NHM_TRANSACTION. However, in your OPEN FOR SELECT
    statement, you are selecting columns that do not exist in the the
    NHM_TRANSACTION table, such as 0 OE_DETAIL_ID, 'I'INSURER_TYPE,
    etc.
    You would be much better off to declare your reference cursor
    as a "weak" type so that your OPEN FOR SELECT statement actually
    defines the return structure:
    TYPE TRANS_TableRows
    IS REF CURSOR;
    In other words, leave off the RETURN NHM_TRANSACTION%ROWTYPE
    in your ref cursor declaration, and you would probably be OK
    (assuming, of course, that all of the columns selected in your
    UNION statements are like data types).
    Phil

  • Call stored proc problem (SQL exception)

    Hello
    I have a stored procedure with one param
    as follows:
    PROCEDURE test1 (xnrid IN VARCHAR2)
    This stored procedure is created in package known as "smart".
    I tried to call my stored proc via toplink as follows:
              UnitOfWork uow= dbSession.acquireUnitOfWork();
              StoredProcedureCall storedProcedureCall = new StoredProcedureCall();
              storedProcedureCall.setProcedureName("smart.test1");
              storedProcedureCall.addNamedArgument("xnrid");
              DataReadQuery query = new DataReadQuery();
              query.setCall(storedProcedureCall);
              Vector parameters = new Vector();
              //storedProcedureCall.setUsesBinding(true);
              /** For all input params **/
              query.addArgument("xnrid");
              parameters.add("ffff");
              /** execute query **/
              Object result = dbSession.executeQuery(query, parameters);
    And I have good oracle exception such as
    Internal Exception: java.sql.SQLException: ORA-00900: invalid SQL statement
    Error Code: 900
    Call:BEGIN smart.test1(xnrid=>'ffff'); END;
    Any help is appreciated
    gurcan

    Hi Sharon
    1. You said this code is written in the stored procedure.
    2. The scope of the temporary table is valid till its executer's session is valid.
    3. So if you execute the stored procedure and then try to find these temporary tables then you wont find them as the stored procedure has already finished its execution. And as soon as the execution of the stored procedure is over these temporary tables are automatically deleted.
    4. If you try to execute the code individually then it will show up untill you are logged on. And as your session is valid (Untill you are logged on), SQL Server will show up the tables.
    5. As a proof-of-concept:
    - Logon to SQL Server.
    - Create a temporary table.
    - Log off from SQL Server.
    - Log on again and try to find the temp table you created. It would not be there as it was valid only for your earlier session.
    Let me know if you have any further queries.
    Regards
    Nikhil

  • Migrating from MSSQL2005 to OracleExpress 10g - stored proc problems

    I'm trying to migrate from MSSQLExpress2005 to OracleExpress 10g.
    I upgraded my SQLDeveloper 1.1.3 to SQLDeveloper 1.2 from Check Updates (Even it still displays 1.1.3 at Help->About, I assume it was upgraded because version of extensions changed to 10.2.0.29.98)
    First I have renaming of my objects problem :
    Why does SQLDeveloper renames my stored procedures? I dont see any reason to change.Some of about 50 occurrences :
    1-"spCPLN_Alloc_ReSortForMultiAttendance" to "spCPLN_lloc_ReSortForMultitten"
    2-"spCPLN_Alloc_CalculateFixedConstraints" to "spCPLN_lloc_CalculateFixedCons"
    3-"spCPLN_Alloc_GetAllocationResult" to "spCPLN_lloc_GetllocationResult"
    Another problem : What is the problem of this T/SQL scode snippet?I cant convert it with Scratch editor too. I got "Unexpected end of subtree : Line 0 Col 0." error
    CREATE PROCEDURE spCPLN_XML_InsertDers
    @CourseID int,
    @Type1 int
    AS
    BEGIN
    IF((NOT EXISTS(
    SELECT * FROM DersKur
    WHERE CourseID = @CourseID))
    AND ( @Type1 = 2 ))
    BEGIN
    SELECT 1
    END
    END     
    I have more than 15 error like this.
    thank you
    tuna

    Hi Tuna ,
    Thanks for the feedback.
    Stored procedure names are collision managed so that they are not longer than 30 characters in length. This is a limitation of Oracles object naming convention.
    http://download-west.oracle.com/docs/cd/B19306_01/appdev.102/b14261/fundamentals.htm#sthref309
    WRT the procedure.
    There is a issue in the T-SQL translator which I have logged a bug for.
    bug 6127111 NOT EXITS SUB EXPRESSION NOT RECOGNIZED
    It looks like the translator cannot recognize the
    IF(( NOT EXISTS
    and is expecting IF NOT EXISTS.
    As a workaround the following manually modified T-SQL translates
    T-SQL
    CREATE PROCEDURE spCPLN_XML_InsertDers
    @CourseID int,
    @Type1 int
    AS
    BEGIN
    IF NOT EXISTS(
    SELECT * FROM DersKur
    WHERE CourseID = @CourseID) AND ( @Type1 = 2 )
    BEGIN
    SELECT 1
    END
    END
    GENERATED PL/SQL
    CREATE OR REPLACE PROCEDURE spCPLN_XML_InsertDers
    v_CourseID IN NUMBER DEFAULT NULL ,
    v_Type1 IN NUMBER DEFAULT NULL ,
    cv_1 IN OUT SYS_REFCURSOR
    AS
    v_temp NUMBER(1, 0) := 0;
    BEGIN
    BEGIN
    SELECT 1 INTO v_temp
    FROM DUAL
    WHERE NOT EXISTS ( SELECT *
    FROM DersKur
    WHERE CourseID = v_CourseID )
    AND ( v_Type1 = 2 );
    EXCEPTION
    WHEN OTHERS THEN
    NULL;
    END;
    IF v_temp = 1 THEN
    BEGIN
    OPEN cv_1 FOR
    SELECT 1
    FROM DUAL ;
    END;
    END IF;
    END;

  • Java stored proc problem..urgent

    Hi,
    I have a java code which uses custom made jar files....it is running fine standalone...but I need to run it from within Oracle.I have loaed the jar files using loadjava utility....also written the code in oracle.It compiled fine. But while running it is giving error :=MicrosoftSQLServer 2000 Driver for JDBCError establishing socket.Conn error.
    I am pasting the code below:-
    DROP JAVA SOURCE "sqlsqerverconn";
    CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "sqlsqerverconn" as import java.sql.*;
    import java.lang.*;
    import com.microsoft.*;
    public class sqlsqerverconn{
    public static String GetSQLServerResult(String query) throws SQLException{
    String oneColumn = "";
    String allColumn = "";
    String genericStr = "";
    String connURL ="";
    String url = "jdbc:sqlserver://";
    String serverName = "xxxxxx";
    String portNumber = "1433";
    String databaseName = "dddddddddd";
    String userName = "uuuuuuuuu";
    String password = "ppppppppp";
    String selectMethod = "cursor";
    Connection conn = null;
    connURL = url + serverName + ":" + portNumber + ";databaseName=" + databaseName + ";selectMethod=" + selectMethod + ";";
    try {
    Class.forName ("com.microsoft.jdbc.sqlserver.SQLServerDriver");
    } catch (Exception e) {
    genericStr = e.getMessage().toString() ;
    return genericStr+"Dirver not found";
    try{
    conn = DriverManager.getConnection(connURL, userName, password);
    catch (Exception e) {
    genericStr = e.getMessage().toString() ;
    return genericStr+"Conn error" ;
    try{
    Statement stmt = conn.createStatement();
    ResultSet rset = stmt.executeQuery(query);
    for(int i=1;i<=rset.getMetaData().getColumnCount();i++)
    oneColumn =rset.getMetaData().getColumnLabel(i)+","rset.getMetaData().getColumnTypeName(i)","rset.getMetaData().getColumnDisplaySize(i)","rset.getMetaData().getScale(i)","+rset.getMetaData().getPrecision(i);
    allColumn = allColumn "~" oneColumn;
    rset.close();
    stmt.close();
    conn.close();
    return allColumn;
    } catch (Exception e) {
    genericStr = e.getMessage().toString() ;
    return genericStr+"Last Error" ;
    This is code for the java class.
    CREATE OR REPLACE FUNCTION BTPDW_USER.GETSQLSERVERRESULT
    (query VARCHAR2) RETURN VARCHAR2 IS
    LANGUAGE JAVA
    NAME 'sqlsqerverconn.GetSQLServerResult(java.lang.String) return java.lang.String';
    This is the code for the function which uses the java code.
    Can anyone please suggest as how to get rid of this error??
    Many help for your suggestions...........
    Thanks,
    user...
    Edited by: user5815929 on Dec 29, 2008 12:04 PM

    Hi:
    In my Oracle 11g instance I found the .trc files at:
    /u01/app/oracle/diag/rdbms/$ORACLE_SID/$ORACLE_SID/trace
    Once I execute a Java Stored procedure which raise an error I can find the .trc file by executing:
    [root@mochoa trace]# ls -ltr
    -rw-r----- 1 oracle oinstall 76 2008-11-18 08:33 test_ora_18474.trm
    -rw-r----- 1 oracle oinstall 1006 2008-11-18 08:33 test_ora_18474.trc
    -rw-r----- 1 oracle oinstall 12147 2008-11-18 08:33 alert_test.log
    Latest .trc file in the list usually contains the Java stack trace exception raised by the OJVM.
    Note that .trc files have a naming convention which is $ORACLE_SID_ora_PID.trc where PID is the Unix process ID of the OJVM running into your Oracle Instance.
    Best regards, Marcelo.

  • Driver Setup problem!k8n user plz help.....

    when i wanna setup the SATA/RAID driver on the beginning of the windows setup, i can only run the 'nVidia RIAD class driver',  if i setup the 'nVidia nForce Storage Controller' as well, my windows setup will occurs error and cannnot setup windows anymore unless i no install the 'nVidia nForce Storage Controller' at the next of windows setup. What happening actually??? i no have SATA hard disk, is that the problem occurs???
    beside that, if i trying to upgrade my motherboard version to latest version that download from nVidia website, my windows will occurs error/blue screen and cannot boot windows anymore and restart everytime when computer wanna try to boot the windows. What is the problem?? is that also cause from 'nVidia nForce Storage Controller' too?? last time i using another nForce board and can setup new driver and everything working fine. but this board make me so sick to update the driver.
    ya...BTW why the MSI utility software (WMI info) showing my AMD Athlon 64 proc data width only 32bit??? is that proc problem or the software problem??
    thank everyone who helping me to solve those problem

    Hi Davidsk2001
    1) Quote
    beside that, if i trying to upgrade my motherboard version to latest version that download from nVidia website, my windows will occurs error/blue screen and cannot boot windows anymore and restart everytime when computer wanna try to boot the windows. What is the problem?? is that also cause from 'nVidia nForce Storage Controller' too?? last time i using another nForce board and can setup new driver and everything working fine. but this board make me so sick to update the driver
    I've had this, the Driver asks if you want to update Pata drivers, if you say Yes it goes to blue screen on restart.
    Use the Windows XP Pata Drivers NOT NVidia - there is no difference in performance
    2) Quote
    when i wanna setup the SATA/RAID driver on the beginning of the windows setup, i can only run the 'nVidia RIAD class driver', if i setup the 'nVidia nForce Storage Controller' as well, my windows setup will occurs error and cannnot setup windows anymore unless i no install the 'nVidia nForce Storage Controller' at the next of windows setup. What happening actually??? i no have SATA hard disk, is that the problem occurs???
    Are you using the Floppy Disc that came with your motherboard. This is faulty
    Raid / Win XP install problems
    you only have a IDE Drive
    you dont need floppy when you install windows
    Disk is for Raid and 'nVidia nForce Storage Controller' =Sata
    Windows will install the XP  IDE drivers ok
    3)Quote
    ya...BTW why the MSI utility software (WMI info) showing my AMD Athlon 64 proc data width only 32bit??? is that proc problem or the software problem??
    do you mean the
    Accessories / System Tools / System Information / I cant find anything
    hope this helps

  • Problem of Uncertain no. of columns

    Hi,
    I have a requirement where I have to insert data into a pre-defined table (with 'x'  no. of columns) from dynamically generated SELECT statements (through a proc) . example, 
    INSERT INTO Table 
    EXEC Proc
    Problem is, that some of those SELECT statements may not have 'x' no. of columns. Any idea will be really helpful.
    I have tried some hit and trial but all in vein.
    'In Persuit of Happiness' and ..... learning SQL.

    Ok. you've two options in that case
    1. use a temporary table with same structure as SP output and populate it as below
    INSERT #Temp
    EXEC Proc...
    Now use temp table to fill your table
    INSERT YourTable (col1,col2,col3,..)
    SELECT Col1,NULL,Col2,...
    FROM #Temp
    fill missing columns with NULL values
    2. use a direct select based on distributed query
    INSERT YourTable (Col1,Col2,Col3,..)
    Select Col1,NULL,Col2,..
    from
    OPENROWSET('SQLOLEDB','Data Source=Servername;Trusted_Connection=yes;
    Integrated Security=SSPI','Execute yourdbname..Proc')
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Java stored proc deploy problem

    I get follow error,when I deploy Java stored proc with JDeveloper3.2.
    Errors:
    *** Errors occurred while loading the archive into 8i JVM ***
    How can i do?
    Thanks a lot!!

    The problem is with the OUT parameters. If you read the documentation you will see that OUT parameters
    need to be declared as one element arrays. Hence this should compile:
    CREATE OR REPLACE PROCEDURE TEST ( id IN NUMBER,
    i IN NUMBER,
    j IN VARCHAR2,
    ret1 OUT NUMBER,
    ret2 OUT VARCHAR2,
    k IN NUMBER) AS
    LANGUAGE JAVA NAME 'com.fn.oracle.proc.trading.TestProcedure.testIt(int, double, java.lang.String, int[], java.lang.String[], int)';Cheers, APC

  • Problem with the file /proc/sys/kernel/hotplug which is incorrect

    Hello,
    Since few days, I can't import photos from my camera with my user (that work in root), I open a thread in this forum (http://bbs.archlinux.org/viewtopic.php?pid=348659).
    After investigations, the problem come from the content of the file /proc/sys/kernel/hotplug which is just :
    -e
    When I run the start_udev script, the content of /proc/sys/kernel/hotplug change and importing photos with my user work again.
    I isolate the only important line for my problem :
    echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug
    When I run this line after a boot, the import file from camera work.
    I think that the content of the file is bas setted while the udev starting or replaced by another event which occurs later !
    I use the x86 version up-to-date with kdemod.
    Someone have an idea of why the content of /proc/sys/kernel/hotplug (it must contain an executable for kernel call on hotplugging) is bad ?
    Last edited by tuxom (2008-03-30 13:31:14)

    I think I've found the problem, see my comment in http://bugs.archlinux.org/task/9935. Thanks for the information about /proc/sys/kernel/hotplug!

  • Oracle 10g R 10.2 for Linux x86-64 - /proc/sys/vm/disable_cap_mlock problem

    Hi All,
    During installation - Oracle Database Configuration Assistance, I have got below error and thus I stuck. As per Metalink note 293988.1, this will be resolved if I do [root@localhos]# echo 1 > /proc/sys/vm/disable_cap_mlock . But problem is when I do this because I dont have /proc/sys/vm/disable_cap_mlock file in my system, it giving ¨bash: /proc/sys/vm/disable_cap_mlock: No such file or directory¨ error. So I am unable to get rid of this error. I also set SELinux Default and Current mode as permissible and rebooted it.
    No use, Its giving same error.
    ORA-27125: Unable to create shared memory segment.
    DB Details_
    Oracle 10g Release 2 (10.2) for Linux x86-64
    Choosen Basic Installation
    OS Details:_
    *[root@localhost vm]# uname -rm*
    2.6.32-100.0.19.el5 x86_64
    *[root@localhost vm]# uname -a*
    Linux localhost.localdomain 2.6.32-100.0.19.el5 #1 SMP Fri Sep 17 17:51:41 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
    *[root@localhost etc]# cat /etc/redhat-release*
    Red Hat Enterprise Linux Server release 5.5 (Tikanga)
    *[root@localhost etc]# make -v*
    GNU Make 3.81
    Copyright (C) 2006 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.
    There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
    PARTICULAR PURPOSE.
    This program built for x86_64-redhat-linux-gnu
    This is bugging me since last two days. Any help would be appreciated.
    Thanks in advance.
    Regards,
    Mahi

    From what I can gather form your post, the ORA-27125: Unable to create shared memory segment is probably the result of:
    a) not enough physical memory available.
    b) /dev/shm not configured properly.
    c) kernel parameters are not set according to Oracle requirements.
    Since this is happening during the installation of Oracle I suggest to check the SHMMAX kernel parameter. This is all mentioned in the pre-installation steps. Oracle 11g will actually check these kernel parameters prior to installing. Not sure about 10g now, which you are trying to install.
    The most common, easiest way to prepare the system for Oracle RDBMS is to install the "oracle-validated" package. If you don't have access to ULN, you can setup public yum.
    http://public-yum.oracle.com/ Then you can simply type as the root user: yum install oracle-validated
    Edited by: waldorfm on Nov 3, 2010 1:18 PM

  • Problem with .c code generated from proc compiler.

    I am having a problem compiling the c code generated from the proc pre-compiler.
    First some info on my system.
    [root@dell-xps-420-22 ~]# cat /etc/redhat-release
    Red Hat Enterprise Linux Client release 5.4 (Tikanga)
    [root@dell-xps-420-22 ~]# cat /proc/version
    Linux version 2.6.18-164.11.1.el5 ([email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Wed Jan 6 13:26:04 EST 2010
    [root@dell-xps-420-22 ~]# uname -a
    Linux dell-xps-420-22.drew.com 2.6.18-164.11.1.el5 #1 SMP Wed Jan 6 13:26:04 EST 2010 x86_64 x86_64 x86_64 GNU/Linux
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    I have written a simple PRO*C program to test the compile.
    [oracle@dell-xps-420-22 etl]$ cat Test.pc
    #include <stdio.h>
    main(int argc,char **argv)
    printf("Testing ........\n");
    [oracle@dell-xps-420-22 admin]$ cat pcscfg.cfg
    sys_include=(/usr/include,/usr/include/linux,/build/s630/precomp/public,/usr/lib/gcc/x86_64-redhat-linux/4.1.1/include)
    include=$(ORACLE_HOME)/precomp/public
    include=$(ORACLE_HOME)/precomp/hdrs
    include=$(ORACLE_HOME)/precomp/include
    CODE=cpp
    TYPE_CODE=ORACLE
    DEF_SQLCODE=YES
    VARCHAR=YES
    LTYPE=short
    define=__x86_64__
    When compiling the Test.pc program with the pcscfg.cfg file above.
    [oracle@dell-xps-420-22 etl]$ proc Test.pc
    Pro*C/C++: Release 10.2.0.1.0 - Production on Sun Feb 21 19:51:15 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    System default option values taken from: /u01/app/oracle/product/10.2.0/db_1/precomp/admin/pcscfg.cfg
    [oracle@dell-xps-420-22 etl]$ gcc -c ./Test.c -I . -I$ORACLE_HOME/precomp/public
    ./Test.c:117: error: expected identifier or '(' before string constant
    ./Test.c:131: error: expected identifier or '(' before string constant
    The code generated by the proc compiler that has problems is below.
    //File Test.c
    // Prototypes
    Line 117: extern "C" {
    void sqlcxt (void **, unsigned int *,
    struct sqlexd *, const struct sqlcxp *);
    void sqlcx2t(void **, unsigned int *,
    struct sqlexd *, const struct sqlcxp *);
    void sqlbuft(void **, char *);
    void sqlgs2t(void **, char *);
    void sqlorat(void **, unsigned int *, void *);
    // Forms Interface
    Line 131: extern "C" { void sqliem(char *, int *); }
    It seems like the compiler is generating c++ code but the gcc compiler is only compiling in cc mode. I've tried a number of options in the pcscfg.cfg file to no avail. I have tried the different options for the CODE=cpp in the pcscfg.cfg file but still get the same error and/or multiple errors. I have also tried to compile the oracle demo programs using the demo_proc.mk file and also get the same error.
    The install of Oracle is fine. I can start the database and have created a needed user and tables but cannot successfully compile the pro*C code.

    My proc is also compiling for cpp code but in the pcscfg.cfg file there is no "CODE=cpp"

Maybe you are looking for

  • IT Service Management (Solution Manager - Configuration)

    Dear Expert! We are using SM 7.1 SP11. The System Preparation and Basic Configuration has been done Now, we want to configure the IT Service Management under the Solution Manager Configuration. There are some steps are manual in the standard configur

  • Flat rate prices on iTunes Music Store

    Apple, please pass this along to the greedy record publishers.... If you IDIOT publishers raise the price of music on the iTMS past $.99 to $1.24... MANY will find ALTERNATIVE means of getting their music. Period. End of Story. --- Rob

  • How to attach existing T-Hub 2 to new Guardian 301 phone

    I have a new Guardian 301 phone and an existing T-Hub 2 - want to know how to link extisting T-Hub to new phone please

  • Cannot download document (.doc) anymore in webbrowser after update

    Recently I've made a few changes in a Document (iOS Pages) through an older Pages-Version in Format .doc. I just uploaded the Document through icloud.com – it replaced my original one with the new one. So far so good - but I cannot view a preview nor

  • JSP In Portal

    I have a JSP file, written by someone else. I was given the task to post the JSP in Portal. When I looked up the help file in Portal, it says: Go to Administer tab and click on "Add a JSP APplication". I could not find that! No matter what usr ID I l