Use package OLE2 in Oracle

Hi!
I try this codes but it have error...
Please check.
Thank you for help!
LAI THE THOI
declare
     application      ole2.obj_type;
     documents      ole2.obj_type;
     document      ole2.obj_type;
     Selection     ole2.obj_type;
     Tables_n     ole2.obj_type;
     Cols     ole2.obj_type;
     event     ole2.obj_type;
     arglist     ole2.list_type;
     ranges     ole2.obj_type;
BEGIN
-- CREATE OBJECTS ---
     application:=OLE2.CREATE_OBJ('Word.Application');
     OLE2.Set_Property(application,'Visible',true);
     OLE2.Set_Property(application,'WindowState',1);
     documents:=OLE2.get_obj_property(application, 'Documents');
     document:=OLE2.INVOKE_OBJ(documents,'Add');
     ole2.set_property(document,'FullName','Thống kj theo nguồn tin...');
     Selection:= ole2.get_obj_property(application,'Selection');
     Ranges := ole2.get_obj_property(Selection,'Range');
     Tables_n := ole2.get_obj_property(Selection,'Tables');
     arglist := ole2.create_arglist;
     ole2.add_arg_obj(arglist,Ranges);
     ole2.add_arg(arglist,3);
     ole2.add_arg(arglist,9);
     event := ole2.invoke_obj(tables_n,'Add',arglist);
     ole2.destroy_arglist(arglist);
-- Error
     arglist := ole2.create_arglist;
     ole2.add_arg(arglist,1);
     Tables_n := ole2.get_obj_property(selection,'Tables',arglist);
     ole2.destroy_arglist(arglist);
     arglist := ole2.create_arglist;
     ole2.add_arg(arglist,3);
     Cols := ole2.get_obj_property(Tables,'Columns',arglist);
     ole2.destroy_arglist(arglist);
-- RELEASE OBJECTS ---     
     ole2.release_obj(event);
     ole2.release_obj(tables_n);
     ole2.release_obj(Ranges);
     ole2.release_obj(Selection);
     ole2.release_obj(document);
     ole2.release_obj(documents);
     ole2.release_obj(application);
END;

Hi!
Thank you for help!
But it have error: ORA-305500.
Did you have solution?
LAI THE THOI
This code VBScript:
Set Cols := Selection.tables(1).Columns(3)
This code Ole2:
application ole2.obj_type;
documents ole2.obj_type;
document ole2.obj_type;
Selection ole2.obj_type;
Tables_n ole2.obj_type;
Cols ole2.obj_type;
event ole2.obj_type;
arglist ole2.list_type;
ranges ole2.obj_type;
BEGIN
-- CREATE OBJECTS ---
application:=OLE2.CREATE_OBJ('Word.Application');
OLE2.Set_Property(application,'Visible',true);
OLE2.Set_Property(application,'WindowState',1);
documents:=OLE2.get_obj_property(application, 'Documents');
document:=OLE2.INVOKE_OBJ(documents,'Add');
Selection:= ole2.get_obj_property(application,'Selection');
Ranges := ole2.get_obj_property(Selection,'Range');
Tables_n := ole2.get_obj_property(Selection,'Tables');
arglist := ole2.create_arglist;
ole2.add_arg_obj(arglist,Ranges);
ole2.add_arg(arglist,3);
ole2.add_arg(arglist,9);
event := ole2.invoke_obj(tables_n,'Add',arglist);
ole2.destroy_arglist(arglist);
-- Error : ORA - 305500?
arglist := ole2.create_arglist;
ole2.add_arg(arglist,1);
Tables_n := ole2.get_obj_property(selection,'Tables',arglist);
ole2.destroy_arglist(arglist);
arglist := ole2.create_arglist;
ole2.add_arg(arglist,3);
Cols := ole2.get_obj_property(Tables_n,'Columns',arglist);
ole2.destroy_arglist(arglist);
-- RELEASE OBJECTS ---
ole2.release_obj(event);
ole2.release_obj(tables_n);
ole2.release_obj(Ranges);
ole2.release_obj(Selection);
ole2.release_obj(document);
ole2.release_obj(documents);
ole2.release_obj(application);
END;

Similar Messages

  • Ole2 in oracle 9i pl/sql

    Hi friends,
    its possible to use the ole2 in oracle db? i have used in forms. its worked. i dont know abt backend db? its possible.
    what i need to install or do if its works in db?
    Thanks in advance friends,

    Life_is_in_money_money_is_in_oracle wrote:
    thank you so much mr. Billy Verreynne. i am really appreciate your fast reply. my goal is generate the excel file using ole2 via oracle db package or procedure. i did in oracle forms. for some reason, i wanna it in oracle db side. Use the new Office (IEEE Standard I believe) XML format to generate a spreadsheet. Oracle has extensive XML support. Save the resulting XML as CLOB (character large object). The CLOB can easily be retrieved by clients, and just as easily downloaded directly from the database via web enabled PL/SQL.
    OLE2 is a complex option on the server side. It is not a mere issue of creating an object and referencing it via late binding. It is a lot more complex than that on the server. If you are not comfortable with and knowledgeable about the Win32 Application Programming Interface, I strongly suggest not trying using Oracle extproc as an OLE2 interface.

  • Problem connecting to Oracle 8i (817) using Packaging Wizard of 9i Lite

    I am having a problem to connect to Oracle 8i database (817) from using Packaging Wizard. I am getting a error message when I tried to use Packaging Wizard -> Snapshot -> Import -> Username/password and jdbc:oracle:oci8:@connect string or jdbc:oracle:thin:@host:1521:Sid
    The error message is 'No Suitable Driver. Make Sure the Proper JDBC drive for "jdbc:oracle:oci8i:@<connect string>" is in the classpath"
    I would appricated if someone can send me any help on this.
    My email address is [email protected]
    Thanks
    Joshua

    I am having a very similar problem.
    It seems that the packaging wizard forces you to use a JDBC driver to connect to your DB.
    I'm getting the "No suitable driver" message also.
    I even made sure the classpath line they ask you to remove in the preinstallation tasks was there. It wasn't to start, so I added it, but that didn't fix the problem.

  • Can we use Dynamic SQL in Oracle Reports ?

    Hi ,
    Can we use Dynamic SQL in Oracle Reports ?
    If yes please give some examples .
    Thanx
    srini

    I believe the built-in package SRW.Do_Sql is what you are looking for
    Example from the document:
    /* Suppose you want to create a "table of contents" by getting the
    ** first character of a columns value, and page number on which its
    ** field fires to print. Assume that you want to put the "table of
    contents"
    ** into a table named SHIP. You could write the following construct:
    DECLARE
    PAGE_NO NUMBER;
    PAGE_FOR INDEX NUMBER;
    SORT_CHAR CHAR(1);
    CMD_LINE CHAR(200);
    BEGIN
    SORT_CHAR := :SORT_NAME ;
    IF :CALLED = Y THEN
         SRW.GET_PAGE_NUM(PAGE_FOR_INDEX);
         SRW.USER_EXIT(RWECOP PAGE_FOR_INDEX
         P_START_PAGENO);
         SRW.MESSAGE(2,TO_CHAR(:P_START_PAGENO));
    END IF;
    SRW.GET_PAGE_NUM(PAGE_NO);
    CMD_LINE := INSERT INTO SHIP VALUES
                          (||SORT_CHAR||,||TO_CHAR(PAGE_NO)||);
    SRW.MESSAGE(2,CMD_LINE);
    SRW.DO_SQL(CMD_LINE);
    COMMIT;
    EXCEPTION
      WHEN DUP_VAL_ON_INDEX THEN
            NULL;
      WHEN SRW.DO_SQL_FAILURE THEN
            SRW.MESSAGE(1,FAILED TO INSERT ROW INTO SHIP TABLE);
      WHEN OTHERS THEN
           COMMIT;
    END;

  • How to open a package body in Oracle sql developer

    How to open a package body in Oracle sql developer..any shortcut for that

    I need another way to get to my package body. I'm on a locked down system, so the only way I can reference anything is if I already know the name of it. I accidentally overwrote my text document that I was using to work on it and I closed out of the package body in sqldeveloper. There must be a command, like an alter or some such. Anyone know the old fashioned way of looking at a package?

  • Use css file in oracle 10g report builder

    hi every one
    i am using oracle 10g report buidler. i want control paramform by usign css file.
    any body have idea how can i use css file in oracle report builder 10g and how can i modify it's path and i how can i manage any css class on a perticular field.

    Thanks Billy.
    Yes you are right.
    Here why I discarded that option is,
    I may get the source files with changing layouts.
    My Actual scenario is as follows.
    Initially we developped all the things using PL/SQL packages. Its working fine.
    But as per the inputs we received from requirements group, the file structure changes dynamically. and we would able to consider those new columns also. We should be able to changes the rules dynamically.
    Lets say, we doing fullouter join on Src_A and Src_B. on columns col1_A and col1_B.
    Now the requirement changes in a way that, the join should be done on Src_A and Src_C. on columns col1_A and col_C.
    For this I need to define a new package.
    Instead of that, I would like to do everything dynamically based on configuration parameters given as input.
    Thank you,
    Regards,
    Gowtham Sen

  • Unneeded packages missing at Oracle 11gR2 installation on RHEL6.3 x86_64

    Hi experts!!
    I am getting a little bit puzzled when I am installing Oracle Database 11gR2 on my RHEL 6.3 server, which is x86_64.
    I have read the installation doc (http://docs.oracle.com/cd/E11882_01/install.112/e24326/toc.htm) over and over again but I cannot get any clue to solve the problem I am facing: when I get to the 'Prerrequisite Checks' step at the installation, I get a message informing that I am missing some packages for i386, which shouldn't be necessary according to the documentation. The documentation says the next packages need to be installed for RHEL6 (all of them either for x86_64 or i686):
    ++The following or later version of packages for Oracle Linux 6, and Red Hat Enterprise Linux 6 must be installed:++
    ++binutils-2.20.51.0.2-5.11.el6 (x86_64)++
    ++compat-libcap1-1.10-1 (x86_64)++
    ++compat-libstdc++-33-3.2.3-69.el6 (x86_64)++
    ++compat-libstdc++-33-3.2.3-69.el6.i686++
    ++gcc-4.4.4-13.el6 (x86_64)++
    ++gcc-c++-4.4.4-13.el6 (x86_64)++
    ++glibc-2.12-1.7.el6 (i686)++
    ++glibc-2.12-1.7.el6 (x86_64)++
    ++glibc-devel-2.12-1.7.el6 (x86_64)++
    ++glibc-devel-2.12-1.7.el6.i686++
    ++ksh++
    ++libgcc-4.4.4-13.el6 (i686)++
    ++libgcc-4.4.4-13.el6 (x86_64)++
    ++libstdc++-4.4.4-13.el6 (x86_64)++
    ++libstdc++-4.4.4-13.el6.i686++
    ++libstdc++-devel-4.4.4-13.el6 (x86_64)++
    ++libstdc++-devel-4.4.4-13.el6.i686++
    ++libaio-0.3.107-10.el6 (x86_64)++
    ++libaio-0.3.107-10.el6.i686++
    ++libaio-devel-0.3.107-10.el6 (x86_64)++
    ++libaio-devel-0.3.107-10.el6.i686++
    ++make-3.81-19.el6++
    ++sysstat-9.0.4-11.el6 (x86_64)++
    However, having a look at the installation log for the packages installed, the Oracle installation is missing some packages for i386, but these infraestructure is not required at all for RHEL6:
    [root@localhost ~]# less /tmp/OraInstall2013-03-04_09-06-59PM/installActions2013-03-04_09-06-59PM.log| grep -i "is missing on node"
    INFO: Error Message:PRVF-7532 : Package "libaio-0.3.105 (i386)" is missing on node "localhost"
    INFO: Error Message:PRVF-7532 : Package "compat-libstdc++-33-3.2.3 (i386)" is missing on node "localhost"
    INFO: Error Message:PRVF-7532 : Package "elfutils-libelf-devel-0.97" is missing on node "localhost"
    INFO: Error Message:PRVF-7532 : Package "libaio-devel-0.3.105 (i386)" is missing on node "localhost"
    INFO: Error Message:PRVF-7532 : Package "libgcc-3.4.6 (i386)" is missing on node "localhost"
    INFO: Error Message:PRVF-7532 : Package "libstdc++-3.4.6 (i386)" is missing on node "localhost"
    INFO: Error Message:PRVF-7532 : Package "unixODBC-2.2.11 (i386)" is missing on node "localhost"
    INFO: Error Message:PRVF-7532 : Package "unixODBC-devel-2.2.11 (i386)" is missing on node "localhost"
    INFO: Error Message:PRVF-7532 : Package "pdksh-5.2.14" is missing on node "localhost"
    If I ignore this warnings, at the next step the Oracle installation stops with an error. I am a little bit lost about how to do to solve this. Is there anybody who has faced the same situation?
    Thanks in advance and kind regards,
    Guiller.

    Hi Srini!
    You are totally right. I have downloaded the following 11gR2 version:
    11.2.0.1.0
    However, having a look at the download page for Oracle databases, I guess that is the latest version I can find to download (if I don't have any kind of support with Oracle). Here it is the link I am using to download the software:
    http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
    Thank you very much and kind regards,
    Guiller.

  • How to download and Install bos.loc.utf.EN_US Package for the Oracle BI locale setting english-usa language in Windows 7 64bit

    OBIEE 11G Installation error during configuration steps with message "Distributing Repository" failed.
    I searched lot of forums but all they say, install bos.loc.utf.EN_US Package for the Oracle BI locale setting english-usa language. From where we can download this package.
    Thanks in advance.

    But I am assuming that when I make the installer, the 32-bit Run Time Engine is appened with the installer, as show below
    Since from the picture you can see its including the support installers from '\Program Files (x86)\'
    The application runs queries to fetch data from database in SQL server 2008, and for that I am using a Microsoft SQL Native Client 2008 R2 64 bit ( this is the only version that installs on either PC, even the one on which I developed my LV Application).
    I am not using any driver, only toolkits for reports - and for that I un-checked the "Remove unused polymorphic VI instances" when making the executable, otherwise LV throws up an exception that share variable are not being included.
    Yes I did reboot every time after I ran the installation.
    Still getting the same error.

  • ORA-21700 error using sys.xmlType in Oracle 9.2

    I'm working on an application which uses the XMLType column in some of its database tables. When we started, we were using Oracle 9.0.1, and this test code works (which emulates how we have to, in some occasions, populate the XMLType column).
    However, we installed Oracle 9.2.0.3 on the same machine and created database instances using this version of Oracle. We didn't upgrade the original 9.0.1 installation (which still exists side-by-side). When we run this code, we get the following exception...
    java.sql.SQLException: ORA-21700: object does not exist or is marked for delete
    ORA-06512: at "SYS.XMLTYPE", line 0
    ORA-06512: at line 1
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180)
    at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
    at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543)
    at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1451)
    at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:862)
    at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:1846)
    at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1771)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2361)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:422)
    at com.edh.oracle.TransactionTester.testClob(TransactionTester.java:134)
    at com.edh.oracle.TransactionTester.main(TransactionTester.java:251)
    This exception occurs after we've written the data to a Clob and are attempting to call createXML to update the column.
    Is there anything additional I need to do to get this working in Oracle 9.2 again? Thanks.
    Code is:
    * TransactionTester.java
    * Created on 11 October 2002, 14:08
    package com.edh.oracle;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    import java.sql.Statement;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    * @author ehillman
    public class TransactionTester {
    private static String ORACLE_URL = "jdbc:oracle:thin:@wallaby:7012:CT2";
    /** Creates a new instance of TransactionTester */
    public TransactionTester() throws SQLException {
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    private void createTables(Connection conn) throws SQLException {
    String createText = "create table SillyData (XML_VALUE XMLTYPE, XML_STORAGE CLOB)";
    Statement stmt = conn.createStatement();
    stmt.execute(createText);
    System.out.println("Tables created");
    private void dropTables(Connection conn) throws SQLException {
    String dropText = "drop table SillyData ";
    Statement stmt = conn.createStatement();
    stmt.execute(dropText);
    System.out.println("Tables dropped");
    private void testClob() throws SQLException, java.io.FileNotFoundException,
    java.io.IOException {
    System.out.println("testClob - START");
    Connection conn = DriverManager.getConnection(ORACLE_URL,
    "ehillman", "ehillman");
    System.out.println("connection received");
    createTables(conn);
    try {
    System.out.println("Loading MyFn.xml");
    java.io.FileReader inputReader = new java.io.FileReader(
    "C:\\Documents and Settings\\ehillman\\.netbeans\\edh test\\oracle jdbc\\com\\edh\\oracle\\MyFn.xml");
    conn.setAutoCommit(false);
    Statement stmt2 = conn.createStatement();
    stmt2.execute("insert into SillyData (XML_STORAGE) values (EMPTY_CLOB())");
    System.out.println("empty row inserted");
    stmt2 = conn.createStatement();
    ResultSet rs = stmt2.executeQuery("select XML_STORAGE from SillyData for update");
    System.out.println("Empty CLOB retireved");
    rs.next();
    java.sql.Clob clobValue = rs.getClob(1);
    oracle.sql.CLOB oraClob = (oracle.sql.CLOB) clobValue;
    System.out.println("casted");
    java.io.Writer writer = oraClob.getCharacterOutputStream();
    char[] buffer = new char[ oraClob.getChunkSize() ];
    for (int charsRead = inputReader.read(buffer); charsRead > -1; charsRead = inputReader.read(buffer)) {
    writer.write(buffer, 0, charsRead);
    writer.close();
    System.out.println("data written to Clob");
    PreparedStatement pState = conn.prepareStatement(
    "update SillyData set XML_VALUE = sys.XMLType.createXML(?)");
    pState.setClob(1, clobValue);
    int result = pState.executeUpdate();
    System.out.println("executeQuery returned " + result);
    } finally {
    dropTables(conn);
    conn.close();
    System.out.println("connection closed");
    System.out.println("testClob - END");
    * @param args the command line arguments
    public static void main(String[] args) {
    try {
    TransactionTester tst = new TransactionTester();
    tst.testClob();
    } catch (Exception ex) {
    ex.printStackTrace();

    I've found this....
    http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96620/xdb05obj.htm#1032058
    Does this mean that, for a table to use an XMLType column, it has to have a single schema definition for every row in the table?
    This won't fit for what we're doing.... that is, our table stores XML data for each row, but they are all different types of XML... they don't have the same structure,they don't use the same schema.
    Please let me know if I'm missing something

  • Can we call and execute a request set using db adapter or oracle apps adapt

    Hi,
    Can we call and execute a request set(which executes a set of packages in a sequence) using db adapter or oracle apps adapter similar to calling a stored procedure and concurrent program?
    thanks,
    RV

    1) In BPEL call the DBAdapter in a sequence, make sure you set the partnerlink 'property' to transaction=participate.
    2) Or create a package that calls the other packages in a sequence
    Marc
    http://orasoa.blogspot.com

  • Generate XML using package xmlgen

    I have the following query:
    select employ_id, last_name, first_name, salary from employ;
    I need generate xml like this:
    <row>
    <employ>
    <employ_id last_name="Dennis" First_name="david">1</employ>
    <salary>6</salary>
    </employ>
    </row>
    How can I get it using xmlgen package? Thanks.
    null

    No, you will not be able to do that. The
    problem is that the columns of the db table
    are mapped to XML elements rather then
    attributes. Your best bet at achieving your
    goal is that after you get your xml document
    from the XSU, you transform it using XSLT.
    The Oracle Parser does include the xsl processor.
    visar
    ps.: Today, when using XSU's java API, you can directly get a DOM tree representation of the XML document, which then you can pass directly to the XSL processor and transform it; unfortunately, the PL/SQL API (i.e. xmlgen) doesn only return a string (i.e. lob) representation of the XML doc. So you have to use the PL/SQL Parser to parse it, get it in the DOM format, and only then can you transform it. The good news is that I was assured that in the future the XMLGEN will have a call to get the XML doc in DOM rep.

  • Debug Package/Procedure in Oracle

    Hi,
    Please let me know the procedure to debug a package/procedure in oracle ( Apart from dbms_output commands). We are using Toad.
    Other option would be to
    1. Set tracing on for a particular session and analyze logs generated through tkprof
    2. Turn on Logon trigger for a user to capture all the SQLs fired.
    The issue with above options is that all system fired SQL's are also captured. It would be a tough task to wade through all the SQL's fired.
    PLease suggest the best option to debug a complex procedure/package.
    Thanks in advance.

    Create one table and caputure all results in that... Thanks!

  • Differences in the characterset used by the database & Oracle Applications

    Hi All,
    I have encrypted one column in the database using Oracle DBMS_OBFUSCATION tool package.When the same field is viewed from the application the characters appear different from those that are there in the database and also sometimes the value is truncated from the applications.
    Could anyone please help me understand why it is happening.
    Is there any difference in the characterset used by the database & Oracle Applications ??
    Please help me ASAP.
    Thanks in Advance,
    Aush

    What I mean by the characters displayed on the form in the Oracle Applications is different from the database value is that suppose the value in the database is 8¿x¿"h the characters(part of the string) displayed in the form are different from what is present in the database.

  • Can use convirture for manage oracle vm?

    Hi
    Is there anyone with experience about managing oracle vm with convirture .
    I've tried to do that and got the following error after installing agent version of convirture on oracle vm 2.2 :
    DISTRO RedHat
    VER 2.2.0
    CODENAME Oracle VM server release 2.2.0
    KERNEL 2.6.18-128.2.1.4.9.el5xen
    ARCH i686
    Info: Sourcing /root/shared/convirture-tools-1.1/install/managed_server/scripts/../../../common/scripts/RedHat_functions
    Virtualization platform XEN Version 3.4.0
    Doing xen setup
    Xen userspace version : 3.0.3
    s_dir = /root/shared/convirture-tools-1.1/install/managed_server/scripts/xen-3.0
    /root/shared/convirture-tools-1.1/install/managed_server/scripts/xen-3.0 exists.
    /root/shared/convirture-tools-1.1/install/managed_server/scripts/../../../common/scripts/nw_functions: line 281: convirt-xen-multibridge: Permission denied
    /root/shared/convirture-tools-1.1/install/managed_server/scripts/../../../common/scripts/nw_functions: line 303: convirt-xen-multibridge: Permission denied
    /root/shared/convirture-tools-1.1/install/managed_server/scripts/../../../common/scripts/nw_functions: line 269: convirt-xen-multibridge: Permission denied
    /root/shared/convirture-tools-1.1/install/managed_server/scripts/../../../common/scripts/nw_functions: line 269: convirt-xen-multibridge: Permission denied
    mv: cannot stat `convirt-xen-multibridge': No such file or directory
    Modified xend-config successfully
    Patching: /usr/lib/python2.4/site-packages/xen/xend/server/XMLRPCServer.py
    patching file /usr/lib/python2.4/site-packages/xen/xend/server/XMLRPCServer.py
    Hunk #1 FAILED at 95.
    1 out of 1 hunk FAILED -- saving rejects to file /usr/lib/python2.4/site-packages/xen/xend/server/XMLRPCServer.py.rej
    Patch attempt failed. exit code=1
    1) check if patch has already been applied.
    2) otherwise, patch manually
    Patching failed.
    Error executing /root/shared/convirture-tools-1.1/install/managed_server/scripts/xen-3.0/configure-xend.sh
    Edited by: user12256596 on Nov 21, 2009 11:13 AM

    thanks for helpfull reply but I've found an answer for this question . so I share it to be useful.
    you can edit file bellow:
    /usr/lib/python2.4/site-packages/xen/xend/server/XMLRPCServer.py
    and change the value of host to "" . I mean:
    host = ""
    then change the following value in /etc/xen/xend-config.spx
    (xend-tcp-xmlrpc-server yes)
    (xend-tcp-xmlrpc-server-address '')
    (xend-tcp-xmlrpc-server-port 8006)
    this is minimum change that need to be done to use convirture to manage oracle vm 2.2
    I strongly recommend that you try using this free tool instead of vm manager

  • Can ODBC use packages?

    I am using Oracle 9.2.0.5.
    I have this code:
    declare
    total_blocks NUMBER;
    total_bytes NUMBER;
    unused_blocks NUMBER;
    unused_bytes NUMBER;
    last_used_extent_file_id NUMBER;
    last_used_extent_block_id NUMBER;
    last_used_block NUMBER;
    partition_name VARCHAR2(100);
    begin
    DBMS_OUTPUT.ENABLE (20000);
    DBMS_SPACE.UNUSED_SPACE('SYS', 'TEST2', 'TABLE', total_blocks, total_bytes, unused_blocks, unused_bytes,
    last_used_extent_file_id ,
    last_used_extent_block_id , last_used_block, partition_name);
    dbms_output.put('total MB=');
    dbms_output.put_line(total_bytes/1024/1024);
    dbms_output.put('unused bytes=');
    dbms_output.put_line(unused_bytes);
    end;
    This runs great with PL/SQL. If I run it with ODBC it says:
    ORA-00942: table or view does not exist
    ORA-06512: at "SYS.DBMS_SPACE", line 59
    ORA-06512: at line 1
    State:S0002,Native:942,Origin:[Oracle][ODBC][Ora]
    It interprets the package as a table! Does this mean I can't use packages in ODBC? Do I have to use OCCI?
    Thanks,
    David Scott

    The SYSDBA role is special, in that you have to connect "as sysdba" in order to have it enabled. That forces connections as the SYS user to explicitly decide whether to connect as SYSDBA or SYSOPER, and ensures that normal users that have been granted SYSDBA really want those privileges when they log in.
    Looking at your code, do you really have a table TEST2 in the SYS schema? The SYS schema should never, ever have any objects created in it (other than those that Oracle corporation creates).
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

Maybe you are looking for

  • Vendor bank control key

    Hi, does anybody know the bank control key for italian banks. when I upload vendors containing italian banks information, it asks for a bank control key...and it is mandatory. I am thinking there will be a specific value for italy. Regards, Vijay

  • Integrated Weblogic domain Creation  error in jdeveloper

    Hi all, Hope all are doing well, I have faced a problem creating a integrated domain in jdeveloper log file show Log File: C:\Users\chakrapani\AppData\Roaming\JDeveloper\system11.1.1.6.38.61.92\o.j2ee.adrs\CreateDefaultDomain.log Label: JDEVADF_11.1.

  • Listener Error - character string buffer too small (ORA-06502)

    I am running into a very strange problem with the APEX listener on seemingly random pages. I can hit every page in my application just fine, but as soon as I hit this specific one, Glassfish throws an HTTP 500 error. If I click Debug, the page seems

  • Menu music won't play iin Center Stage theme?

    I'm trying to use this theme, but whenever I add any music to the menu, the music won't play. Any idea what's wrong and how to fix it other than to change themes?

  • Setting up airport extreme to a Linksys wireless router,

    My problem is that we have set up a secure network for my wifes pc labtop. Wep secure, I tried a airport extreme card in my G5 and cannot find the network or create one to get onto the network, is there something I am missing.