Workaround for function to_blob in Oracle 8i

Hi all,
this query run in Oracle 9i but not in oracle 8i:
select
to_lob(dbms_lob.substr(data,dbms_lob.getlength(data)-dbms_lob.instr(data,'3F3E')-1,dbms_lob.instr(data,'3F3E')+4)) as stream_data,
filename as stream_name,
substr(filename,instr(filename,'.')+1,length(filename)) as stream_type,
dbms_lob.getlength(to_lob(dbms_lob.substr(data,dbms_lob.getlength(data)-dbms_lob.instr(data,'3F3E')-1,dbms_lob.instr(data,'3F3E')+2))) as content_length,
progr as stream_progr
from
vm_mmsrelay_mmcontent
where id_msg like '%1071760263441%'
and CONTENTTYPE='application/smil'
SQL> desc vm_mmsrelay_mmcontent
Name Null? Type
DATA BLOB
FILENAME VARCHAR2(50)
CONTENTTYPE VARCHAR2(50)
ID_MSG NOT NULL VARCHAR2(150)
PROGR NOT NULL NUMBER(38)
Thanks in advance

Have you already configured a Heterogeneous Services and Generic Connectivity to create a database link from Oracle to SQL Server? I haven't tried copying IMAGE data from SQL Server via Heterogeous Services myself, but from the [data type map|http://download.oracle.com/docs/cd/B19306_01/server.102/b14232/apb.htm#sthref509] in the documentation, I would expect that it would work so long as the SQL Server ODBC driver maps the IMAGE data type to SQL_LONGVARBINARY
Justin

Similar Messages

  • IS FUNCTION TO_BLOB( ) IS SUPPORTED IN ORACLE 8i

    HELP me!!!!
    Thanks,
    Antonio

    Workaround for function to_blob (oracle 8i):
    REM* Funzione che simula la TO_BLOB() prsente nella release 9i
    REM* ma assente nella release 8i
    CREATE OR REPLACE FUNCTION raw_in_blob(in_buffer IN RAW)
    RETURN BLOB
    IS
    PRAGMA AUTONOMOUS_TRANSACTION; -- direttiva per il compilatore per evitare l'errore: ORA-14553
    lobloc BLOB;
    amount BINARY_INTEGER;
    BEGIN
    DBMS_LOB.CREATETEMPORARY(lobloc,TRUE); -- creo un lob temporaneo
    amount:=ROUND(LENGTH(in_buffer)/2);
    DBMS_LOB.WRITE(lobloc,amount,1,in_buffer); -- scrivo il contenuto in RAW nel BLOB
    RETURN lobloc; -- restituisco il RAW trasformato in BLOB
    END;
    /

  • How to use java api for function activity in embed oracle workflow?

    because i can't install standalone oracle workflow successfully.
    pls tell me how to use java api for function activity in embed oracle workflow?
    are there some patch or pulg-in package?
    ths a lot...........

    The Java Function Activity Agent is not certified for Oracle Workflow embedded in Oracle Applications. Installing standalone workflow should be a lot easier than what you have found, although it looks like you did hit a Pentium 4 issue with the Oracle Universal Installer. I suggest you contact Oracle Support or Oracle Consulting for assistance.
    because i can't install standalone oracle workflow successfully.
    pls tell me how to use java api for function activity in embed oracle workflow?
    are there some patch or pulg-in package?
    ths a lot...........

  • Java.lang.VerifyError - Incompatible object argument for function call

    Hi all,
    I'm developing a JSP application (powered by Tomcat 4.0.1 in JDK 1.3, in Eclipse 3.3). Among other stuff I have 3 classes interacting with an Oracle database, covering 3 use cases - renaming, adding and deleting an database object. The renaming class simply updates the database with a String variable it receives from the request object, whereas the other two classes perform some calculations with the request data and update the database accordingly.
    When the adding or deleting classes are executed, by performing the appropriate actions through the web application, Tomcat throws the following:
    java.lang.VerifyError: (class: action/GliederungNewAction, method: insertNewNode signature: (Loracle/jdbc/driver/OracleConnection;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V) Incompatible object argument for function call
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:120)
         at action.ActionMapping.perform(ActionMapping.java:53)
         at ControllerServlet.doResponse(ControllerServlet.java:92)
         at ControllerServlet.doPost(ControllerServlet.java:50)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    ...The renaming works fine though. I have checked mailing lists and forums as well as contacted the company's java support but everything I have tried out so far, from exchanging the xerces.jar files found in JDOM and Tomcat to rebuidling the project didn't help.
    I just can't explain to myself why this error occurs and I don't see how some additional Java code in the other 2 classes could cause it?
    I realize that the Tomcat and JDK versions I'm using are totally out of date, but that's company's current standard and I can't really change that.
    Here's the source code. I moved parts of the business logic from Java to Oracle recently but I left the SQL statements that the Oracle stored procedures are executing if it helps someone.
    package action;
    import java.sql.CallableStatement;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.util.StringTokenizer;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    import oracle.jdbc.driver.OracleConnection;
    * This class enables the creation and insertion of a new catalogue node. A new node
    * is always inserted as the last child of the selected parent node.
    public class GliederungNewAction implements Action {
         public String perform(ActionMapping mapping, HttpServletRequest request,
                   HttpServletResponse response) {
              // fetch the necessary parameters from the JSP site
              // the parent attribute is the selected attribute!
              String parent_attribute = request.getParameter("attr");
              String catalogue = request.getParameter("catalogue");
              int parent_sequenceNr = Integer.parseInt(request.getParameter("sort_sequence"));
              // connect to database    
              HttpSession session = request.getSession();   
              db.SessionConnection sessConn = (db.SessionConnection) session.getAttribute("connection");
              if (sessConn != null) {
                   try {
                        sessConn.setAutoCommit(false);
                        OracleConnection connection = (OracleConnection)sessConn.getConnection();
                        int lastPosition = getLastNodePosition( getLastChildAttribute(connection, catalogue, parent_attribute) );
                        String newNodeAttribute = createNewNodeAttribute(parent_attribute, lastPosition);
                        // calculate the sequence number
                        int precedingSequenceNumber = getPrecedingSequenceNumber(connection, catalogue, parent_attribute);
                        if ( precedingSequenceNumber == -1 ) {
                             precedingSequenceNumber = parent_sequenceNr;
                        int sortSequence = precedingSequenceNumber + 1;
                        setSequenceNumbers(connection, catalogue, sortSequence);
                        // insert the new node into DB
                        insertNewNode(connection, catalogue, newNodeAttribute, parent_attribute, "Neuer Punkt", sortSequence);
                        connection.commit();
                   } catch(SQLException ex) {
                        ex.printStackTrace();
              return mapping.getForward();
          * Creates, fills and executes a prepared statement to insert a new entry into the specified table, representing
          * a new node in the catalogue.
         private void insertNewNode(OracleConnection connection, String catalogue, String attribute, String parent_attribute, String description, int sortSequence) {
              try {
                   String callAddNode = "{ call fasi_lob.pack_gliederung.addNode(:1, :2, :3, :4, :5) }";
                   CallableStatement cst;
                   cst = connection.prepareCall(callAddNode);
                   cst.setString(1, catalogue);
                   cst.setString(2, attribute);
                   cst.setString(3, parent_attribute);
                   cst.setString(4, description);
                   cst.setInt(5, sortSequence);
                   cst.execute();
                   cst.close();
              } catch (SQLException e1) {
                   // TODO Auto-generated catch block
                   e1.printStackTrace();
    //          String insertNewNode = "INSERT INTO vstd_media_cat_attributes " +
    //                    "(catalogue, attribute, parent_attr, description, sort_sequence) VALUES(:1, :2, :3, :4, :5)";
    //          PreparedStatement insertStmt;
    //          try {
    //               insertStmt = connection.prepareStatement(insertNewNode);
    //               insertStmt.setString(1, catalogue);
    //               insertStmt.setString(2, attribute);
    //               insertStmt.setString(3, parent_attribute);
    //               insertStmt.setString(4, description);
    //               insertStmt.setInt(5, sortSequence);
    //               insertStmt.execute();
    //               insertStmt.close();
    //          } catch (SQLException e) {
    //               e.printStackTrace();
          * This method returns the attribute value of the last child of the parent under which
          * we want to insert a new node. The result set is sorted in descending order and only the
          * first result (that is, the last child under this parent) is fetched.
          * If the parent node has no children, "parent_attr.0" is returned. 
          * @param connection
          * @param catalogue
          * @param parent_attribute
          * @return attribute of the last child under this parent, or "parent_attr.0" if parent has no children
         private String getLastChildAttribute(OracleConnection connection, String catalogue, String parent_attribute) {
              String queryLastChild = "SELECT attribute FROM vstd_media_cat_attributes " +
                                            "WHERE catalogue=:1 AND parent_attr=:2 ORDER BY sort_sequence DESC";
              String lastChildAttribute;
              PreparedStatement ps;
              try {
                   ps = connection.prepareStatement(queryLastChild);
                   ps.setString(1, catalogue);
                   ps.setString(2, parent_attribute);
                   ResultSet rs = ps.executeQuery();
                   /* If a result is returned, the selected parent already has children.
                    * If not set the lastChildAttribute to parent_attr.0
                   if (rs.next()) {
                        lastChildAttribute = rs.getString("attribute");
                   } else {
                        lastChildAttribute = parent_attribute.concat(".0");
                   rs.close();
                   return lastChildAttribute;
              } catch (SQLException e) {
                   e.printStackTrace();
                   return null;
          * This helper method determines the position of the last node in the attribute.
          * i.e for 3.5.2 it returns 2, for 2.1 it returns 1 etc.
          * @param attribute
          * @return position of last node in this attribute
         private int getLastNodePosition(String attribute) {
              StringTokenizer tokenizer = new StringTokenizer(attribute, ".");
              String lastNodePosition = "0";
              while( tokenizer.hasMoreTokens() ) {
                   lastNodePosition = tokenizer.nextToken();
              return Integer.parseInt(lastNodePosition);
          * This method calculates the attribute of a node being inserted
          * by incrementing the last child position by 1 and attaching the
          * incremented position to the parent.
          * @param parent_attr
          * @param lastPosition
          * @return attribute of the new node
         private String createNewNodeAttribute(String parent_attr, int lastPosition) {
              String newPosition = new Integer(lastPosition + 1).toString();
              return parent_attr.concat("." + newPosition);
          * This method checks if the required sequence number for a new node is already in use and
          * handles the sequence numbers accordingly.
          * If the sequence number for a new node is NOT IN USE, the method doesn't do anything.
          * If the sequence number for a new node is IN USE, the method searches for the next free
          * sequence number by incrementing the number by one and repeating the query until no result
          * is found. Then all the sequence numbers between the required number (including, >= relation)
          * and the nearest found free number (not including, < relation) are incremented by 1, as to
          * make space for the new node.
          * @param connection
          * @param catalogue
          * @param newNodeSequenceNumber required sequence number for the new node
         private void setSequenceNumbers(OracleConnection connection, String catalogue, int newNodeSequenceNumber) {
              // 1. check if the new sequence number exists - if no do nothing
              // if yes - increment by one and see if exists
              //           repeat until free sequence number exists
              // when found increment all sequence numbers freeSeqNr > seqNr >= newSeqNr
              String query = "SELECT sort_sequence FROM vstd_media_cat_attributes " +
                        "WHERE catalogue=:1 AND sort_sequence=:2";
              PreparedStatement ps;
              try {
                   ps = connection.prepareStatement(query);
                   ps.setString(1, catalogue);
                   ps.setInt(2, newNodeSequenceNumber);               
                   ResultSet rs = ps.executeQuery();
                   // if no result, the required sequence number is free - nothing to do
                   if( rs.next() ) {
                        int freeSequenceNumber = newNodeSequenceNumber;
                        do {
                             ps.setString(1, catalogue);
                             ps.setInt(2, freeSequenceNumber++);
                             rs = ps.executeQuery();
                        } while( rs.next() );
                        // increment sequence numbers - call stored procedure
                        String callUpdateSeqeunceNrs = "{ call fasi_lob.pack_gliederung.updateSeqNumbers(:1, :2, :3) }";
                        CallableStatement cst = connection.prepareCall(callUpdateSeqeunceNrs);
                        cst.setString(1, catalogue);
                        cst.setInt(2, newNodeSequenceNumber);
                        cst.setInt(3, freeSequenceNumber);
                        cst.execute();
                        cst.close();
    //                    String query2 = "UPDATE vstd_media_cat_attributes " +
    //                                      "SET sort_sequence = (sort_sequence + 1 ) " +
    //                                      "WHERE catalogue=:1 sort_sequnce >=:2 AND sort_sequence <:3";
    //                    PreparedStatement ps2;
    //                    ps2 = connection.prepareStatement(query2);
    //                    ps2.setString(1, catalogue);
    //                    ps2.setInt(2, newNodeSequenceNumber);
    //                    ps2.setInt(3, freeSequenceNumber);
    //                    ps.executeUpdate();
    //                    ps.close();
                   } // end of if block
                   rs.close();
              } catch (SQLException e) {
                   e.printStackTrace();
          * This method finds the last sequence number preceding the sequence number of a node
          * that is going to be inserted. The preceding sequence number is required to calculate
          * the sequence number of the new node.
          * We perform a hierarchical query starting from the parent node: if a result is returned,
          * we assign the parent's farthest descendant's node sequence number; if no result
          * is returned, we assign the parent's sequence number.
          * @param connection
          * @param catalogue
          * @param parent_attr parent attribute of the new node
          * @return
         private int getPrecedingSequenceNumber(OracleConnection connection, String catalogue, String parent_attr) {
              int sequenceNumber = 0;
              String query = "SELECT sort_sequence FROM vstd_media_cat_attributes " +
                                "WHERE catalogue=:1 " +
                                "CONNECT BY PRIOR attribute = parent_attr START WITH parent_attr=:2 " +
                                "ORDER BY sort_sequence DESC";
              try {
                   PreparedStatement ps = connection.prepareStatement(query);
                   ps.setString(1, catalogue);
                   ps.setString(2, parent_attr);
                   ResultSet rs = ps.executeQuery();
                   if ( rs.next() ) {
                        sequenceNumber = rs.getInt("sort_sequence");
                   } else {
                        // TODO: ggf fetch from request!
                        sequenceNumber = -1;
                   rs.close();
                   ps.close();
              } catch (SQLException e) {
                   e.printStackTrace();
              return sequenceNumber;
    }

    After further googling I figured out what was causing the problem: in eclipse I was referring to external libraries located in eclipse/plugins directory, whereas Tomcat was referring to the same libraries (possibly older versions) in it's common/lib directory.

  • SSAS Tabular in DirectQuery - What are the workarounds for formula limitations?

    Hello,
    I need to create an SSAS Tabular model against the database of a live, real-time, line of business transactional system (i.e. a CRM).
    The business requirement behind it is that we need to create some complex reports against live data, and our DW is only updated daily.
    This live model will however be partitioned with a time-variance limitation (e.g. only records which are XX old can be returned).
    Now here is the challenge. Since I am querying live data, then I believe the model must be configured in DirectQuery model. Am I right?
    The issue is that DirectQuery mode is full of formula limitations. So my concern is, if I need a calculated column or measure that I cannot make it work due to DirectQuery limitations, then what are the alternatives?
    Remember that the data source is from a live system, so it is not like I can create columns and measures in the underlying relational database.
    Please advise.
    Regards,
    P.

    Hi pmdci,
    According to your description, you want to use some functions in calculated measure which are not supported in DirectQuery mode. Right?
    In Analysis Services Tabular, since DirectQuery has the real time access and scalability, this comes with a price of restrictions on a number of DAX functions and missing Calculated Column feature. Generally the workaround for these scenarios
    is replacing those functions with other functions which are supported in DirectQuery mode, or create columns in the data source. However, as you said, your environment is not possible to create columns in the database. And a lot of those limited
    function are not replaceable, like time intelligence functions. So actually, there's no really effective workaround currently.
    For you requirement, I suggest you submit Microsoft a feature request
    at https://connect.microsoft.com/SQLServer
    so that we can try to modify and expand the product features based on your needs.
    Best Regards,  
    Simon Hou
    TechNet Community Support

  • FUNCTION-BASED INDEX ( ORACLE 8I NEW FEATURE )

    제품 : ORACLE SERVER
    작성날짜 : 2004-08-16
    FUNCTION-BASED INDEX ( ORACLE 8I NEW FEATURE )
    ==============================================
    SCOPE
    10g Standard Edition(10.1.0) 이상 부터 Function-based Index 기능이 지원된다.
    Explanation
    1. 개요
         Function-based index는, 함수(function)이나 수식(expression)으로 계산
    된 결과에 대해 인덱스를 생성하여 사용할 수 있는 기능을 제공한다.
         질의 수행 시 해당 함수나     수식을 처리하여     결과를 가져 오는 것이 아니라,
         인덱스 형태로 존재하는 미리 계산되어 있는 결과를 가지고 처리하므로
         성능 향상을 기할 수 있다.
    2. 제약사항
    1) aggregate function 에 대한 function-based index 생성 불가.
    (예 : sum(...) )
    2) LOB, REF, nested table 컬럼에 대한 function-based index 생성 불가.
    3. 주요 특징
         1) cost-based optimizer에 의해 사용됨.
         2) B*Tree / bitmap index로 생성 가능.
         3) 산술식 (arithmetic expression), PLSQL function, SQL built-in
    function 등에 적용 가능.
         4) 함수나 수식으로 처리된 결과에 대한 range scan 가능
         5) NLS SORT 지원
         6) SELECT/DELETE를 할 때마다 함수나 수식의 결과를 계산하는 것이 아니라
         INSERT/UPDATE 시 계산된 값을 인덱스에 저장.
         7) 질의 속도 향상
         8) object column이나 REF column에 대해서는 해당 object에 정의된
         method에 대해 function-based index 생성 가능.
    4. 생성 방법
         CREATE [UNIQUE | BITMAP ] INDEX <index_name>
         ON <tablename> (<index-expression-list>)
         <index-expression-list> -> { <column_name> | <column_expression> }
         예) CREATE INDEX EMP_NAME_INDEX ON EMP (UPPER(ENAME));
         CREATE INDEX EMP_SAL_INDEX ON EMP( SAL + COMM, empno);
         * Function-based index를 생성하기 위해서는 QUERY REWRITE 권한이
         부여 되어 있어야만 한다.
         예) GRANT QUERY REWRITE TO SCOTT;
    5. Function-Based Index 사용을 위한 사전 작업
         1) Function-based index는 cost based optimizer에서만 사용 가능하므로,
         테이블에 대해 미리 analyze 해 주는 것이 바람직하다.
         그리고 init 파일에서 OPTIMIZER_MODE 를 FIRST_ROWS 나 ALL_ROWS 등으
    로 지정하거나 HINT 등을 사용하여 cost based optimizer가 사용되도록
    한다.
         2) init 파일에서 COMPATIBLE 파라미터 값을 8.1 이상으로 설정되어 있어야
    한다.
         ( 예 : COMPATIBLE = 8.1.6 )
         3) session/instance level 에서 QUERY_REWRITE_ENABLED 값이 TRUE 지정
    되어 있어야 한다.
         ( 예 : ALTER SESSION SET QUERY_REWRITE_ENABLED = TRUE; )
    6. 예제
         1) init 파라미터에서 다음과 같이 지정
         compatible = 8.1.6 (반드시 8.1이상이어야 한다)
         query_rewrite_enabled = true
         query_rewrite_integrity = trusted
         2) SCOTT 유저에서 function_based_index 생성
         create index idx_emp_lower_ename
         on emp
         ( lower(ename) ) ;
         3) EMP table analyze
         analyze table emp compute statistics ;
         4) PLAN_TABLE 생성
         @ ?/rdbms/admin/utlxplan.sql
         5) Cost based optimizer 선택
         alter session set optimizer_mode = FIRST_ROWS ;
         6) Query 실행
         explain plan set statement_id='qry1' FOR
         select empno, ename
         from emp
         where lower(ename) = 'ford' ;
         7) PLAN 분석
         SELECT LPAD(' ',2*level-2)||operation||' '||options||' '||object_name query_plan
         FROM plan_table
         WHERE statement_id='qry1'
         CONNECT BY prior id = parent_id
         START WITH id = 0 order by id ;
         -> 결과
         QUERY_PLAN
         SELECT STATEMENT
         TABLE ACCESS BY INDEX ROWID EMP
         INDEX RANGE SCAN IDX_EMP_LOWER_ENAME
    7. 결론
    Function-based index는 적절하게 사용될 경우 성능상의 많은 이점을 가져
    온다. Oracle8i Designing and Tuning for Performance에서도 가능한 한
    Function-based index를 사용하는 것을 권장하고 있으며, LOWER(), UPPER()
    등의 함수를 사용하여 불가피하게 FULL TABLE SCAN을 하는 경우에 대해서도
    효과적으로 처리해 줄 수 있는 방안이라 할 수 있다.
    Reference Documents
    -------------------

    Partha:
    From the Oracle8i Administrators Guide:
    "Table owners should have EXECUTE privileges on the functions used in function-based indexes.
    For the creation of a function-based index in your own schema, you must be
    granted the CREATE INDEX and QUERY REWRITE system privileges. To create
    the index in another schema or on another schemas tables, you must have the
    CREATE ANY INDEX and GLOBAL QUERY REWRITE privileges."
    Hope this helps.
    Peter

  • Implementing Function Security in Oracle apps.

    I wanted to restrict certain menus in Payables manager for a particular user. How should i implement it? Is there any live example of implementing function security in oracle apps? Please Help.

    Hi,
    One approach is to create a custom menu and attach to it all the menus and functions you want and the add this menu to a new responsibility. But this is not the best way to solve the issue because you have to define different menus + responsibilities for each different user. Other way is to create roles which can be assigned to users.
    Thanks,
    Bahchevanov.

  • Workarounds for searching a text field in SQL Server 2000

    Hi,
    I have a need to search within a text field in SQL Server 2000. In the
    limitations section it notes that this is not possible. Is there a
    recommended workaround for this in terms of performance? I have no way
    of knowing the length of the text field in advance, and this could be
    fairly large. Also, the number of objects that could contain the text
    can be fairly large as well.
    Thanks in advance,
    Khamsouk

    Note that some databases (or Oracle, at least) provide alternatives to
    LIKE '%foo%' that are more efficient for large text blocks, given that
    you have the appropriate indexing plugins etc. etc.
    To use one of those types of search operators, you'd have to put
    together a custom extension.
    -Fred
    Fred Lucas <[email protected]> wrote:
    I'm assuming that when you say 'a text field', you're referring to a
    SQLServer TEXT field, as opposed to just any old field that contains
    text.
    Like I said, I'm by no means a SQLServer pro, but I just ran:
    SELECT CLOBSTRINGX
    FROM LOCATORTESTOBJECTX
    WHERE CLOBSTRINGX LIKE '%o%';
    and got back my test row with 'foo' in the CLOBSTRINGX column.
    CLOBSTRINGX is a TEXT column.
    So, it is possible that our stringContains() extension will just work.
    But then again, maybe not. I'm guessing it will.
    Give it a try and, if you get an error, post the generated SQL (turn on
    SQL output by setting the com.solarmetric.kodo.Logger property to
    'stdout') and the error that you get. Also, try executing the generated
    SQL directly against your data store to see if it works there.
    -Fred
    Khamsouk Souvanlasy <[email protected]> wrote:
    Basically I just want to use kodo's extended stringContains syntax on a
    text field. Is this possible?
    Khamsouk
    Fred Lucas wrote:
    I'm not intimitely familiar with SQLServer's text searching
    capabilities, but I'm confident that you could create a query extension
    that would do what you need it to do.
    What is the SQL that you are trying to generate?
    -Fred
    Khamsouk Souvanlasy <[email protected]> wrote:
    Hi,
    I have a need to search within a text field in SQL Server 2000. In the
    limitations section it notes that this is not possible. Is there a
    recommended workaround for this in terms of performance? I have no way
    of knowing the length of the text field in advance, and this could be
    fairly large. Also, the number of objects that could contain the text
    can be fairly large as well.
    Thanks in advance,
    Khamsouk
    Fred Lucas
    SolarMetric Inc.
    202-595-2064 x1122
    http://www.solarmetric.com

  • Can i create any procedure or function inside a oracle reserve package?

    Hi!
    Can i create any procedure or function inside a oracle reserve package. Suppose, I want to create a function called x in the dbms_output package. Can i do that? Or can i extend the features of this package and create/derived a function from it like we extend any class in JAVA. I'm not sure - whether this is at all possible. I'll be waiting for your reply.
    Thanks in advance.
    Satyaki De.

    No, but you can write a wrapper package and use that instead of using the Built-In package directly. So, instead of calling DBMS_OUTPUT, you call your own Package.
    Steven Feuerstein wrote a wrapper for DBMS_OUTPUT, called P:
    Re: DBMS_OUTPUT.PUT_LINE

  • Compiling mono under Solaris 10: workaround for __builtin_frame_address ?

    Hi,
    I'm trying to compile the current svn release of mono (free implementation of .NET framework) under Solaris 10/x86.
    After fixing some GCC specific code, I'm currently stuck with the GCC internal function __builtin_frame_address (and __builtin_return_address).
    These functions return information about the current stack trace, e.g. the function that invokes the current function. They are used in the integrated debugger for single stepping and other functionality.
    So far I haven't been able to find a workaround for these function within the Studio Compiler.
    What's is the best way to implement these function? Does the Studio Compiler (or the libc or some other library) already provide the necessary functionality?
    With best regards,
    Burkhard Linke

    I'm afraid you have to write assembly code for that sort of functions

  • XFI Extreme Music workaround for hanging and lock

    Well I think I found a workaround for all the problems with my new XFI XM card.
    I uninstalled it by activating a System Restore point to just before I installed the drivers with the Installation CD.
    Then I rebooted and when the Add New Hardware prompt popped up as it detected the installed XFI card I made sure my XFI install disk was in the dri've and went through the wizard. It located the drivers it needed on the install disk. Finished the installation and rebooted.
    Been running my system ever since, bout 0 hours now, also played Rise of Legends for about 2 hours straight (and if anyone knows how buggy ROL can be, thats no small feat), ran Itunes, all the normal stuff I do and not one glitch or hangup since. Even with about 50+ units duking it out in ROL I had momentary spots where the sounds seemed to bleed together but hey, with all that stuff going on and no lockup or BOOM BOOM BOOM starting up non stop, I'm a happy camper.
    Granted I didn't install any of the other fancy software from the install disk, but this is much better, at least it works with no locku
    ps.
    Hope this maybe helps anyone else who at least wants a functional system.
    Have a good one.

    Hi KokChoy, thanks for the reply. The reason I am asking is that others seem to be having the same issue with the Vista CD available online and seems to relate only to the extrememusic. Has the CD available online been updated since release It appears as though the online CD is for all XFI cards (except extreme audio). I was under the assumption that this would be the same CD which was distributed through retail with Xfi product's. The CD which I received with my extremegamer does have the drivers for the extrememusic as I pointed vista to the CD to search for drivers and it did indeed locate and install as an extrememusic.
    Not meaning to sound rude so I appologize in advance if I do but upon researching this I have found a number of posts but they all seem to contain "may not", "might", "should" or something similar. I was hoping to get some form of official response about the status of the install CD and specifically the extrememusic before ordering and paying shipping and handling for something which may end up being of no use to me.
    Thanks.

  • Workaround for 503 error  please help

    Hi all
    I am looking for a solution that would redirect a 503 error to
    an error page.
    I have read the documentation which says i can write my own
    NSAPI function.
    I donot know how to write NSAPI.Could anyone help me with an
    easy workaround
    for this problem.
    Thanks in advance
    Sridhar

    "Sree" <[email protected]> wrote in message
    news:[email protected]..
    Hi all
    I am looking for a solution that would redirect a 503 error to
    an error page.
    I have read the documentation which says i can write my own
    NSAPI function.
    I donot know how to write NSAPI.Could anyone help me with an
    easy workaround
    for this problem.Well, I have no idea how to generate a 503 error, and you didn't mention
    what web server you're using, so I can't be of too much help, however, you
    might want to try adding to your obj.conf file:
    Error fn="query-handler" code=503 path="/path/to/file"
    Which in theory, should serve up the file located at "/path/to/file" when a
    503 error is generated.
    Joe Hourcle
    Networking and Information Technology
    The George Washington University

  • Workaround for IE active content problem?

    Adobe
    posted
    a workaround for existing web pages to respond to the change in
    IE that requires users to manually activate Flash content. I tried
    doing the same document.write in an external file for the HTML
    files FlashHelp generates wherever I found the <object> and
    <embed> tags, but I get a script error ("Object expected") in
    the lines where I call the function. (The solution worked for me in
    simple HTML pages with Captivate movies, so I know it can work.)
    The only reason I can think of that it won't work is that the
    scripts are concatenating strings, not just showing a movie where
    the <object> and <embed> tags are. Has anyone found a
    workaround for FlashHelp so users don't have to manually activate
    the top and left panes? I put in a "wish" for Adobe to provide a
    solution on the site and later in an update or new version of
    RoboHelp (which is another issue in and of itself), but who knows
    when the developers will be able to come up with it. Thanks!

    Thanks for asking, Mimi. Here are more specific steps:
    1. Open Notepad or another program for creating text files.
    2. Create two functions. For example:
    function insertMaster1() {
    function insertMaster2() {
    You can call your functions anything you want, but the names
    must be different. Note that for the moment, they're empty, but
    we'll change that in a minute.
    3. Save the Notepad file with a JS file extension (for
    example, runactive.js). In Notepad, specify “All Files”
    for “Save as type” so that it doesn’t save as a
    TXT.
    4. When you generate your FlashHelp system, it creates a
    bunch of HTM files containing JavaScript in the destination folder
    you specified when generating your output. Locate wf_master.htm and
    wf_navpane.htm in the output folder. (If you leave RoboHelp to use
    its defaults, it puts your help system in an !SSL!/FlashHelp
    directory within your project folder.)
    5. Open wf_master.htm.
    6. In the <head> tags, insert a line that references
    your JS file:
    <script language=“JavaScript”
    src=“runactive.js”></script>
    7. Find the lines in the code that look like this:
    // Insert the “Master” SWF
    8. Highlight everything AFTER this commented-out block until
    the </script> tag. The last thing you highlight should be
    "document.write(strObject);".
    9. Cut the highlighted code and paste it into the first
    function in your JS file so it looks like this:
    function insertMaster1() {
    // Build up the variable string we will be sending
    strFlashVars = "uniqueHelpID=" + parent.UniqueID();
    ……(more code)
    document.write(strObject);
    10. In the place where you just cut all that code out of
    wf_master.htm, insert a call to the function:
    insertMaster1();
    That’s all you need because all that code you just
    moved was already in <script> tags in the HTM file. The
    </script> tag should come immediately after this function
    call.
    11. Open wf_navpane.htm.
    12. Repeat steps 6 – 10 for wf_navpane.htm. The code
    we’re concerned with in this file looks almost exactly like
    that in wf_master.htm, but there are a few lines less this time.
    Put the code you take out of wf_navpane.htm into the second
    function in your JS file. Where you cut out the code from
    wf_navpane.htm, put a call to the second function (it should come
    right before the end of the <script> tags):
    insertMaster2();
    13. Save your JS file and the two HTM files.
    14. Whenever you re-generate your output, RoboHelp is going
    to erase your new versions of these HTM files and create its own
    again. Copy your new versions of wf_master.htm and wf_navpane.htm
    to another location (can be a folder within your output folder).
    Now you have them so you can paste them back over RoboHelp’s
    versions each time you finish generating your output. For example,
    I would stow my wf_master.htm and wf_navpane.htm in a folder called
    "drop files." Then, after I get done generating my output, I copy
    those files and paste them in the output folder, letting them save
    over the ones that RoboHelp created.
    15. To test it once you've finished the swap, find the HTM
    file in your output folder that is named after your project. For
    example, if my project is called flying_monkey, I would find
    flying_monkey.htm. Open this HTM file in Internet Explorer, and you
    shouldn’t have any messages telling you that you have to
    press Enter or Spacebar or click on the panes to activate them.
    This runs from the same basic idea as Adobe’s
    workarounds for Flash—we’re going to a file external to
    the HTM files for the active content tags. Hope you find this
    useful! Let me know if you run into any problems.
    --Ben

  • How to install only OATS for Functional Testing ?

    How to install only OATS for Functional Testing for Oracle EBS?
    I tried micro installation, but installation tried to install whole test manager/oracle xe db/Weblogic etc..
    I want to evaluate how it works, can we leverage for Functional/regression tesitng...
    Please advise...
    Thanks
    Edited by: 956069 on Aug 30, 2012 6:19 AM

    Hello
    You should be able to install OpenScript only using the micro install distribution. You can just skip the steps concerning XE & WLS installation/connection.
    JB

  • WARNING: workaround for critical clustering bug in OC4J

    I found a workaround for the HTTP clustering bug described in my previous posting of August 16, 2001 "Urgent: serious HTTP clustering bug in OC4J?" (http://technet.oracle.com:89/ubb/Forum99/HTML/000261.html)
    The workaround:
    When adding the <cluster config/> tag in orion-web.xml specify and ID (numeric) with no more than 9 figures. The autogenerated ID is longer (14 figures on my test system)
    and will cause the error.
    Luciano
    null

    burricall wrote:
    ..Did you find a solution?See [this post|http://forums.sun.com/thread.jspa?threadID=5426321&messageID=11001580#11001580].

Maybe you are looking for

  • TV LCD 23'' SONY BRAVIA G5 DUAL

    Hey people, I have a Power Mac G5 and a TV LCD Sony. My connection design today is: (apple) DVI-RGB<------>RGB (sony). Max resolution is 1280x720... why I dont put it 1366x768 anyone have TV LCD??? thks Celso

  • Activating audit for Dimension Members in BPC 7.5 NW

    Hi, Is it possible to activate dimension member audit in BPC 7.5 NW. Meaning, can we trace changes to master data (dimension members) in BPC 7.5 NW? Best regard SSC

  • BEA-149004

    Hi , I am trying to deploy my application in integrated weblogic server of jdeveloper 11g.it is showing following error can any one help me out. Actually it was working previously fine,today only i am facing this type of error. <Sep 9, 2011 12:17:20

  • Google Calendar: A DISASTER!!​!

    Hello, I configured my google cal on my q10 and the results were a freezing of the cal app, a overheating till 39 degrees and a battery draining of 1 point every 2 minutes. Obviously with no oportunity to see my appointments on the bb. I deleted it a

  • 8320 connectivity issue

    Guys - need some help here. My curve is getting low network, just about everywhere. I happen to be with Airtel, which is know for its network.  But very recently phone is 80% of then time on SOS or one or two network bars. The result is that EDGE ser