How to describe a synonym in OCI

I getting problem whene i am trying to describe a synonym using OCIDescribeAny()
it saying me object not found
how to over come this problem
if any one know the solution
pl. send me the sample code
Thanks
Mahendra Devabhaktuni

Object Type Function Object Name sample----------------------------------------------------------------------------------
Object Name     Argument     In Out       Datatype
SAMPLE12            -             OUT            VARCHAR2
                    A              IN            VARCHAR2                  
                    B             OUT            VARCHAR2

Similar Messages

  • How to describe placeholder/parameters in a SQL statement

    Hi
    Does anybody know how to describe the placeholder/parameters in a statement? I only find the OCI documentation talking about "Describing Select-list Items". But what if I want to retrieve the data type of a placeholder (assuming I don't know beforehand or just want the program to be more flexible)? Doing this by describing schema metadata first (have to find out which schema object to use) and then using OCIDescribeAny() seems not a very good way. Thanks.

    Jonah, and others,
    how would you find out the (hash_value, address) of the statement just described to extract the statement-relevant information from V$SQL_BIND_CAPTURE?
    Via a join with V$SQL and the statement's text?
    Thanks, --DD                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How do you install the JDBC-OCI patch for a Windows NT4 IFS Installation?

    I am about to install IFS on a Windows NT4 Server. I dont understand the instructions for installing the JDBC-OCI patch.
    How do you install the JDBC-OCI drivers?
    Do I install them after installing Oracle 8.1.6? and before installing IFS?
    Is it necessary to install them?
    I would be grateful for as much help as possible, I have never done anything like this before.
    [email protected]

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jaikishan Tada, Oracle Support:
    Before installing iFS, you need to install
    Oracle8i Client (with Administrator option).
    This installs JDBC-OCI driver and other
    common Oracle components such as Net8,
    OEM ....
    The JDBC-OCI driver patch is available from
    technet to download. Go to the url - http://technet.oracle.com/software/tech/java/sqlj_jdbc/software_index.htm
    and download Oracle8i 8.1.6.0.1 JDBC Drivers for use with JDK 1.1.x.
    Apply the patch and carry out iFS installation/configuration.
    Go through the iFS installation guide.
    Good Luck,<HR></BLOCKQUOTE>
    null

  • How to define a SDO_NUMBER_ARRAY IN OCI

    hi
    I want to get the size of a georaster object using sdo_geor.getBlockSize(), the function returns SDO_NUMBER_ARRAY. how can i define it in oci?
    following is my code ,seems it doesn't work. Please tell me how to deal with it. Thanks.
    text* queryBlockSize = (text*) "select SDO_GEOR.getBlockSize(rast) from tiftest where name='pairs'";
         OCIDefine *defpBlockSize;
         OCIArray *BlockSize;
         OCIInd *BS_ind;
         OCIType *Array_tdo=NULL;
         Array_tdo=get_tdo(SDO_NUMBER_ARRAY);
         CheckErr(errhp, OCIStmtPrepare(stmthp, errhp, queryBlockSize, strlen((char*)queryBlockSize),
              OCI_NTV_SYNTAX, OCI_DEFAULT));
         CheckErr(errhp, OCIDefineByPos(stmthp,&defpBlockSize, errhp, (ub4)1,
         (dvoid *)NULL, (sb4)0, SQLT_NTY, (dvoid *)0,
         (ub2 *)0, (ub2 *)0, (ub4)OCI_DEFAULT));
         CheckErr(errhp, OCIDefineObject( defpBlockSize,
    errhp,
    Array_tdo,
    (dvoid**) &BlockSize,
    (ub4*) NULL,
    (dvoid**) &BS_ind,
    (ub4*) NULL ));
         CheckErr(errhp, OCIStmtExecute(svchp, stmthp, errhp, 1, 0, NULL, NULL,OCI_DEFAULT));      
         printf("BlociSize: %d ",5);

    Hi, look at the definition of SDO_NUMBER_ARRAY :
    CREATE TYPE sdo_number_array as VARRAY(1048576) OF NUMBER;
    It's a VARRAY (colllection). You have to use the OCI collection API (OCICOl***() functions)

  • How to set SQL trace in OCI session ?

    Hello,
    In a SQL*Plus session, I can use the SQL statement "alter session set sql_trace=true;" to set SQL trace in that session only. I assume I could execute the same SQL statement from C code in an OCI client and achieve the same goal.
    However, if I cannot change the code of this OCI client, is there a way to set SQL trace for that single session alone, without changing the C code? Say, through an environment variable, configuration file, etc.?
    Thanks.

    I am not aware of a way to selectively enable the server-side tracing without modifying the client code.
    There is client tracing available by setting the environment variable EVENT_10842 as follows:
    "server=<>;user=<>;stmt=<>;level=<>;interval=<>"
    e.g.
    setenv EVENT_10842 "server=inst1,inst2;user=scott,system;stmt=all;level=15"
    Where:
    "server" is a comma separated list or "all"
    "user" is a comma separated list or "all"
    "stmt" can be INSERT,UPDATE,DELETE,SELECT or "all"
    The following levels are supported:
    1 - Trace all server attach and server detach calls for servers listed in "server" attribute of the environment variable.
    2 - Trace all session begin, logon, session end, logoff calls for the users listed in "user" attribute of the environment variable.
    3 - Trace all prepare, execute, fetch calls for the specified statement types listed in "stmt" attribute of environment variable.
    4 - Trace all Bind, Define, Describe calls.
    5 - Trace all OCI LOB calls
    7 - Get statistical info on all connection pooling /connection related calls
    8 - Get statistical info on all session info
    9 - Get statistical info on all handle info
    10 - Get statistical info on time taken in execute and fetch calls
    11 - Get statistical info on transaction related calls
    15 - Trace all calls with statistical info.

  • How to supply wallet location to OCI client for SSL connection other than sqlnet.ora

    I have a oracle 11g database server and I am connecting to it through OCI client in OBIEE Admin tool. This is working fine, but now the requirement is we need to connect to an SSL enabled database.
    For this I had to update the sqlnet.ora under $ORACLE_HOME/network/admin in OBIEE installation and specify the wallet location where I placed the wallet containing appropriate certificates.
    The above is working fine for me. But due to certain restrictions, we cannot create this sqlnet.ora. Is there a way we can pass this wallet location through some environment variables so that sqlnet.ora is not required?
    If we create a jdbc connection, we can specify the wallet location through jdbc connection properties. Is there any such equivalent for OCI based connection. I dont mind how we make the wallet location available to OCI client, so long as I dont have to create a sqlnet.ora.
    Any pointers is greatly appreciated

    Hi,
    sqlnet.ora file is required if you want to set the wallet location to another directory by using the WALLET_LOCATION parameter.
    If you do not want to use sqlnet.ora then you need to use the default wallet location.
    The wallet is placed, by default, in $ORACLE_BASE/admin/<global_db_name>/wallet.
    If this directory does not exist or ORACLE_BASE is not set, the default location is: $ORACLE_HOME/admin/<global_db_name>/wallet
    Regards,
    Ravi

  • How to execute my procedure in OCI?

    I want to execute procedure in OCI.But it report ORA-28575,why? How to correct it?
    Below is my procedure:
    DECLARE
    B ORDSYS.ORDImage;
    BEGIN
    SELECT CONTENT INTO B FROM LXC.IMAGE WHERE ID=88 FOR UPDATE;
    B.setProperties;
    UPDATE LXC.IMAGE SET CONTENT = B WHERE ID=88;
    END;
    /

    well , i'm going to tell you what exactly is the business.
    we have two distributed databases , 'local_db' and 'remote_db'.
    'local_db' is ours, i mean we desinged and created it . it contains our own views tables. but it contains no data at all.
    we get our data from the remote_db. this remote_db is located on the stock exchange. it is not ours, we did not create it, but we have the privilage to read form its tables.(only select ). in other words , the stock exchange is the our data vendor.
    tha changes that takes palce in the remote_db occures every second.And i urgently need to copy these changes on time to my database(local_db)

  • How to make public synonyms ...

    .... i want to make public synonyms for all the tables in all the schemas ..as i use ..scott schema ..so i want to use ..all the synonyms of all tables under scott schema ..so plz help ...

    how about this?
    BEGIN
       FOR i IN (SELECT table_name FROM user_tables )
       LOOP
          EXECUTE IMMEDIATE    'create public synonym '|| i.table_name|| ' for '|| SCOTT||'.'||i.table_name;
       END LOOP;
    END;
    [pre]                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to Correct Invalid Synonyms

    Hi All,
    Before everyone jumps to conclusions, I am not a newbie and I am NOT getting "ORA-00980: synonym translation is no longer valid".
    I am aware of and very familiar with scripts, like http://www.oracle.com/technology/oramag/code/tips2003/113003.html , that detect and drop synonyms that are pointing to objects that do not exist. That isn't my problem either.
    My problem is that I have thousands on synonyms on my 10.1.0.3 database that point to valid objects but claim to be invalid (SELECT STATUS FROM DBA_OBJECTS). If I reference one of these synonyms (say by selecting from it)it becomes valid.
    The Documentation, http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10759/statements_2.htm#i2295590, claims that there is no "alter synonym" command. Yet garbage alter commands return:
    ORA-00940: invalid ALTER command
    While running "ALTER SYNONYM owner.synonym COMPILE;" as system returns: "ORA-01031: insufficient privileges"
    So what is going on here? And how is a DBA supposed to make all of the synonyms valid?
    Steven

    Yes, that is right. If I run the same script that you show it doesn't work for me.
    10:58:03 sbx4 &gt; create user a identified by a ;
    User created.
    10:58:13 sbx4 &gt; grant create session, dba to a ;
    Grant succeeded.
    10:58:28 sbx4 &gt; connect scott/tiger@sbx4
    Connected.
    10:59:53 sbx4 &gt; create synonym emp_synonym for scott.emp ;
    Synonym created.
    10:59:56 sbx4 &gt; connect a/a@sbx4
    Connected.
    11:00:09 sbx4 &gt; alter synonym scott.emp_synonym compile ;
    alter synonym scott.emp_synonym compile
    ERROR at line 1:
    ORA-01031: insufficient privileges
    I've tried this in a few different databases, all 10.1.0.3, some on Tru64 some on Linux Itanium.

  • How can one lookup synonyms in Pages?

    Hi,
    I would like to lookup synonyms for certain words from within Pages (ideally by highlighting a word and left-clicking on it from the popup menu). I couldn't find such a function.
    Any suggestions how to achieve this (maybe via Applescript?).
    Thanks in advance,
    Marc Baaden

    I think support for the French language is less than impressive on the Mac. MS Word has built in French and German thesauri, but I do not know of any good independent dictionary or thesaurus. I would love being contradicted here, by the way.
    Le Petit Robert is available of course, but you have to carry around the CD for random controls that you have not pirated the software, and I doubt it integrates well with Pages.
    My German dictionary is WordLookup. Actually WordLookup is just a way to access dictionary data, but it works well, and you can call it from Pages using Services. It is not a thesaurus, but moving back and forth to the English translations, you can usually find good synonyms.

  • How to search for synonyms in the tagging window

    Hey there,
    I like the possibility to add synonyms to the Tag, so I can find longer words or names that I shortcuted using a synonym (such as Nicknames, like using "Fry" as a synonym for Frederick Jones), but when it comes to import new content from that person and I enter "Fry" in the tagging line, it does not offer me "Frederick Jones". Is there an option to make the synonym available for tagging?

    Dakota73 wrote:
     Is there an option to make the synonym available for tagging?
    Not in Lightroom proper.
    If you are a person who depends on synonyms (or spaces) in their keywords, I whole-heartedly recommend AnyFile.
    Rob

  • How to 'DESCRIBE' a XMLType table

    Hi,
    When I describe a XMLType table, the output is truncated as follow :
    SQL> desc scott.purchaseorder
    Name Null? Type
    TABLE of SYS.XMLTYPE(XMLSchema "http://localhost:8080/home/SCOTT/poSource/xsd/purchaseOrder.xsd" Ele
    Is there any way to show the complete string ?
    I have tried 'SET LONG' and 'SET LINESIZE', but not succeeded.
    Any suggestion ?

    I've also found under windows that using sqlplus within a command window gives better results with wrapping text than using sqlplusw (the gui version). Also Oracle are deprecating sqlplusw in favour of the SQL worksheet in enterprise manager from version 10 onwards, although it does still get installed at the moment if you really want to keep using it.
    Regards

  • How to describe photos on ipad

    Hello
    I traver a lot and take a lot of photos. I would like to use ipad as a storage device. I know that I should use camera connection kit. The point is that till now I've used notebook so I could change the name of each photo after downloading them to PC (I done it every evening at the hotel). I do it to not forget what exactly the specific photo shows and where the photo has been taken.
    Is there any way to describe the photos downloaded to ipad in similar way?
    Tom

    Well, part of the problem is that I'm inthe US and can't tell you what apps are available in Poland (there will be some variation).
    Start with a search on Photos and narrow it from there. It may take some time, but will also be worth the education when it comes to evaluating apps in teh future.
    In the meantime perhaps someone may have a specific suggestion as the day wears on.

  • How to set timeout during call oci api

    hi all :
    in my program i use OCIInitialize and OCIEnvInit to connect oracle 10g ,but sometime the db does not return ,whether ok or error , at the same time i use sqlplus to connect db ,it is the same .
    so i want to set timeout in my program , does oracle support set timeout in the such scene , if support ,how can i do ?
    thanks a lot
    Message was edited by:
    user549861

    print code :
    if(OCIInitialize(OCI_THREADED ,0, 0, 0, 0)!=OCI_SUCCESS)
         return -1;
         if(OCIEnvInit( (OCIEnv **) &(p_env), OCI_DEFAULT, 0, 0 )!=OCI_SUCCESS)
         return -1;
    if (OCIHandleAlloc ((dvoid *)p_env, (dvoid **)&p_srv,
    OCI_HTYPE_SERVER, 0, (dvoid **) 0)!=OCI_SUCCESS)
         return -1;
         if(OCIHandleAlloc(p_env, (dvoid **) & (p_err), OCI_HTYPE_ERROR, 0, 0)!=OCI_SUCCESS)
         return -1;
    if (OCIServerAttach (p_srv, p_err, (text *)strNodeName,
    strlen (strNodeName), OCI_DEFAULT)!=OCI_SUCCESS)
         return -1;
         if(OCIHandleAlloc(p_env, (dvoid **) & (p_svc), OCI_HTYPE_SVCCTX, 0, 0)!=OCI_SUCCESS)
         return -1;
         if (OCIHandleAlloc ((dvoid *)p_env, (dvoid **)&p_ses,
    OCI_HTYPE_SESSION, 0, (dvoid **) 0)!=OCI_SUCCESS)
         return -1;
         if (OCIAttrSet ((dvoid *)p_svc, OCI_HTYPE_SVCCTX,
    (dvoid *)p_srv, (ub4) 0, OCI_ATTR_SERVER, p_err)!=OCI_SUCCESS)
         return -1;
         if (OCIAttrSet ((dvoid *)p_ses, OCI_HTYPE_SESSION,
    (dvoid *)strUserName, (ub4)strlen(strUserName),
    OCI_ATTR_USERNAME, p_err)!=OCI_SUCCESS)
         return -1;
    if (OCIAttrSet ((dvoid *)p_ses, OCI_HTYPE_SESSION,
    (dvoid *)strPasswd, (ub4)strlen(strPasswd),
    OCI_ATTR_PASSWORD, p_err)!=OCI_SUCCESS)
         return -1;
    if (OCISessionBegin (p_svc, p_err, p_ses,
    OCI_CRED_RDBMS, OCI_DEFAULT)!=OCI_SUCCESS)
         return -1;
    if (OCIAttrSet ( (dvoid *)p_svc, OCI_HTYPE_SVCCTX,
    (dvoid *)p_ses, (ub4) 0, OCI_ATTR_SESSION, p_err)!=OCI_SUCCESS)
         return -1;
    how can i set timeout in the these code

  • How to describe a stored procedure contents?

    hi OTN team,
    1) i want to list all the procedures and functions in a schema
    2) i want to see/descrive total procedure, including declarative section, body every thing.
    Oracle 8i and win 2k environemnt.
    Thanks in advance

    I agree it's a bit of a bizarre oversight, given how many views there are, but Oracle does not provide a view of stored procedures. The closest we get is:
    SELECT object_name, object_type
    FROM   all_objects
    WHERE  owner = upper('&SCHEMA_NAME')
    AND    object_type IN ('PROCEDURE', 'FUNCTION', 'PACKAGE')
    /We can use the SQL*Plus DESC(RIBE) command to see just the signature of a stored procedure. To see everything we need to query the USER/ALL/DBA_SOURCE view.
    Cheers, APC

Maybe you are looking for

  • Mtp usb device failed error - iphone 3g - win 7 pro

    I have iphone 3g. I use Win 7 pro OS. when i plug in iphone to usb port, i get error message as - device driver failed to install - in detail - mtp usb device failed.. In iTUNES i am able to view the iphone, sync my contacts with MS outlook etc.. kin

  • Warning Messages in BPEL to Business rules

    Hi , On Compilation i am receiving the following warning .. Canany one advice me why am i receiving the below warning messages . Project: C:\Documents and Settings\600674748\Desktop\BusinessRules\BusinessRules\BusinessRules.jpr C:\Documents and Setti

  • How to change the skin dynamically

    Hi I have six projects in my application.so each project has trinidad.xml file for Skin configuration. My problem is if I changed the skin at one project it should reflect in all other projects . When I moved from one .jxpx in a project to another on

  • Converting .wpd documents in Pages '09

    How do you convert .wpd documents produced by word perfect?

  • Sending email in work flow to the persons overdue

    Hi, After every activity in workflow an email is being sent to the person who has created it. But now I want an email to be sent to the persons who are overdue with that particular activity. Please suggest me the answers. Thanks & Regards Message was