Ore.Connect gives me ORA-06512: at "RQSYS. RQEVALIMPL', line 47

I want to install Oracle Enterprise R, and I'm in step "Start the Oracle R Enterprise Client on Linux" in the installation guide. My output is as follows:
$library (ORE)
Loading required package: OREbase

Package pricing: "OREbase."

The following objects are hidden from "package: base:

cbind data.frame, eval, interaction, order, dough, pmax, pmin,
rbind, table

Loading required package: OREstats
Loading required package: MASS
Loading required package: OREgraphics
Loading required package: OREeda
Loading required package: OREdm
Loading required package: lattice
Loading required package: OREpredict
Loading required package: ORExml
$ore.connect (user = "josh", sid = "orcl", host is"cascade", password = *, port = 1521, all = TRUE)
Loading required package: ROracle
Loading package perl: DBI
Error in .oci. GetQuery (Conn., instruction, data = data = prefetch prefetch,):
ORA-20000: RQuery error internal [24323, rqetPrepare, 2, 0]
ORA-06512: at "RQSYS. RQEVALIMPL', line 47
ORA-06512: at "RQSYS. RQEVALIMPL', line 43
ORA-06512: at line 4 level
I looked at the code for RQSYS. RQEVALIMPL and line 47 is the beginning of a static function called StubTablePrepare, which looks like it called rqeLib rqetNilPrepare. I checked and my $LD_LIBRARY_PATH contains librqe.so and librqe.so contains a function named rqetNilPrepare.

It is quite possible, I missed a step when installing, but I don't know what it could be. Is it possible that I can get diagnoses more detailed telling me why StubTablePrepare seem to be failing?

Here are my details of environment:
Oracle version: 11.2.0.1.0 Enterprise Edition for Linux x 64
Version R: R Oracle version 2.15.1 Distribution (-)-"of toasted marshmallows.
Oracle Enterprise R version: 1.3_R_x86_64

The client is installed on the same computer as the server. I can connect to the database as the user 'josh' through SQL Developer. The user 'josh' has the following grants:
RUN A PROCEDURE
CREATE TABLE
EXECUTE ANY TYPE
CREATE SESSION
CREATE MINING MODEL
CREATE PROCEDURE
CREATE SEQUENCES
CREATE VIEW
RQADMIN
CONNECT
RUN RQSYS. RQEVALIMPL

Thank you
Josh Davis

Josh,

In point 1.3 of the ORE ore.connect use R shipped to check the version of R in the server. Embedded R won't work without an RDBMS bug fix available in 11.2.0.3.

Denis

Tags: Business Intelligence

Similar Questions

  • ORA-06512: at "RQSYS. RQEVALIMPL', line 77

    Hello

    I test our add-on R Oracle and I get errors when I try a use of the ore.lm function using the example in the "User Guide". Here's the example and errors:

    Example 4-2 using ore.lm

    longley_of <- ore.push(longley) # Fit full model oreFit1 <- ore.lm(Employed ~ ., data = longley_of) class(oreFit1) summary(oreFit1)

    > longley_of <-ore .push (longley)

    > oreFit1 <-ore.lm (employees ~., data = longley_of)

    Error in .oci. GetQuery (Conn., instruction, data = data = prefetch prefetch,):

    ORA-20000: RQuery error internal [rqerExec, 3, 0, 0]

    ORA-06512: at "RQSYS. RQEVALIMPL', line 77

    ORA-06512: at "RQSYS. RQEVALIMPL', line 74

    Thanks Sherry for your quick response on this issue.

    We have uninstalled company Oracle R and reinstalled and everything works now. Thanks again for your support! RA

  • Trigger the error ORA-06512: in SYS. Line SECURE_DML 5

    Hi all
    I am trying to create a procedure that is called by a trigger like this:

    CREATE or REPLACE PROCEDURE SECURE_DML is
    BEGIN
    If (TO_CHAR(SYSDATE, 'DY') IN ('SAB', 'DOM')) OR (TO_CHAR (SYSDATE, 'HH24')
    NOT FROM 08:00 ' 17:00 ') THEN
    RAISE_APPLICATION_ERROR (-20500, ' Insercoes funcionarios only no comercial Monday ');
    end if;
    end;
    /

    CREATE OR REPLACE TRIGGER secure_dml2
    INSERT BEFORE ON SCOTT. EMP2
    BEGIN
    exec SECURE_DML procedure;
    end;
    /
    ALTER SESSION set nls_date_format = 'HH24 DY';
    insert into SCOTT.emp2 (sal, empno, ename, deptno) values (7935, 'SANDRA', 1203, 10);

    The error that is:
    ORA-06512: In SYS. Line SECURE_DML 5
    ORA-06512: In SYS. SECURE_DML2 line 2

    What should I do to remove these erros?
    Thank you

    SQL * Plus still displays the full error stack. You raise an error in the stored procedure that is propagated to trigger that is propagated to SQL * more.

    SY.

  • I get the error message like "error - ORA-29273 report: failure of the HTTP ORA-06512: at"SYS. " UTL_HTTP", line 1130 ORA-12535: TNS:operation expired ORA-06512: 37 29273 line. 00000 - "HTTP request failed" * Cause: package UTL_HTTP The Impossible to run

    I have tried the code

    DECLARE

    lv_url VARCHAR2 (1000): = ' http://shenzhoufellowship.org/main2/files/old/SpecialTopics/TheLoveDare.pdf';

    lc_return BLOB;

    lhttp_url httpuritype.

    Varriables - declared to have written the LOB to pdf file-

    l_file UTL_FILE. TYPE_DE_FICHIER;

    l_buffer RAW (32767).

    l_amount directory: = 32767;

    l_pos INTEGER: = 1;

    l_blob BLOB;

    l_blob_len INTEGER.

    BEGIN

    -create URIs

    lhttp_url: = httpuritype.createuri (lv_url);

    -get the PDF document

    lc_return: = lhttp_url.getblob ();

    -Open the destination file.

    l_file: = UTL_FILE. FOPEN ('MBO_INPUT_DIR', 'MBD.zip', 'wb');

    -Get the total length of the BLOB

    l_blob_len: = DBMS_LOB.getlength (lc_return);

    -Pieces of the BLOB to read and write to the file

    -full up.

    While l_pos < l_blob_len LOOP

    DBMS_LOB. READ (lc_return, l_amount, l_pos, l_buffer);

    UTL_FILE.put_raw (l_file, l_buffer, FALSE);

    l_pos: = l_pos + l_amount;

    END LOOP;

    -Closes the file.

    UTL_FILE. FCLOSE (l_file);

    EXCEPTION

    WHILE OTHERS THEN

    -Close the file if something goes wrong.

    IF UTL_FILE.IS_OPEN (l_file) THEN

    UTL_FILE. FCLOSE (l_file);

    END IF;

    LIFT;

    END;

    But make a mistake like:

    Error report-

    ORA-29273: HTTP request failed

    ORA-06512: at "SYS." UTL_HTTP", line 1130

    ORA-12535: TNS:operation expired

    ORA-06512: at line 37 level

    29273 00000 - "the HTTP request failed.

    * Cause: The UTL_HTTP package cannot run the HTTP request.

    * Action: Use get_detailed_sqlerrm to check the detailed error message.

    Correct the error and restart the HTTP request.

    Please suggest a solution. Is it possible to download a zip file with the same code?

    [oracle@localhost ~]$ sqlplus scott/tiger
    
    SQL*Plus: Release 11.2.0.1.0 Production on Mon Apr 6 13:59:09 2015
    
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    SQL> --My Database version
    SQL> ----------------------
    SQL> SELECT * FROM v$version;
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  DECLARE
      2        lv_url    VARCHAR2(500) := 'http://shenzhoufellowship.org/main2/files/old/SpecialTopics/TheLoveDare.pdf';
      3        lc_return BLOB;
      4        lhttp_url httpuritype;
      5        ---Varriables declared for writing the LOB to pdf file --
      6        l_file     UTL_FILE.FILE_TYPE;
      7        l_buffer   RAW(32767);
      8        l_amount   BINARY_INTEGER := 32767;
      9        l_pos      INTEGER := 1;
    10       l_blob     BLOB;
    11       l_blob_len INTEGER;
    12     BEGIN
    13       --create uri
    14       lhttp_url := httpuritype.createuri(lv_url);
    15       --get the PDF document
    16       lc_return := lhttp_url.getblob();
    17       -- Open the destination file.
    18       l_file := UTL_FILE.FOPEN('SAUBHIK', 'TheLoveDare.pdf', 'wb');
    19       --Get the total length of the BLOB
    20       l_blob_len := DBMS_LOB.getlength(lc_return);
    21       -- Read chunks of the BLOB and write them to the file
    22       -- until complete.
    23       WHILE l_pos < l_blob_len LOOP
    24         DBMS_LOB.READ(lc_return, l_amount, l_pos, l_buffer);
    25         UTL_FILE.put_raw(l_file, l_buffer, FALSE);
    26         l_pos := l_pos + l_amount;
    27       END LOOP;
    28       -- Close the file.
    29       UTL_FILE.FCLOSE(l_file);
    30     EXCEPTION
    31       WHEN OTHERS THEN
    32         -- Close the file if something goes wrong.
    33         IF UTL_FILE.IS_OPEN(l_file) THEN
    34           UTL_FILE.FCLOSE(l_file);
    35         END IF;
    36         RAISE;
    37*    END;
    38  /
    DECLARE
    *
    ERROR at line 1:
    ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1130
    ORA-24247: network access denied by access control list (ACL)
    ORA-06512: at line 36
    
    SQL> conn sys as sysdba
    Enter password:
    Connected.
    SQL> ed
    Wrote file afiedt.buf
    
      1  BEGIN
      2    DBMS_NETWORK_ACL_ADMIN.CREATE_ACL(acl         => 'love.xml',
      3                                      description => 'Love ACL',
      4                                      principal   => 'SCOTT',
      5                                      is_grant    => true,
      6                                      privilege   => 'connect');
      7    DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(acl       => 'love.xml',
      8                                         principal => 'SCOTT',
      9                                         is_grant  => true,
    10                                         privilege => 'resolve');
    11    DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL(acl  => 'love.xml',
    12                                      host => 'shenzhoufellowship.org');
    13  commit;
    14* END;
    15  /
    
    PL/SQL procedure successfully completed.
    
    SQL> conn scott/tiger
    Connected.
    SQL> ed
    Wrote file afiedt.buf
    
      1  DECLARE
      2        lv_url    VARCHAR2(500) := 'http://shenzhoufellowship.org/main2/files/old/SpecialTopics/TheLoveDare.pdf';
      3        lc_return BLOB;
      4        lhttp_url httpuritype;
      5        ---Varriables declared for writing the LOB to pdf file --
      6        l_file     UTL_FILE.FILE_TYPE;
      7        l_buffer   RAW(32767);
      8        l_amount   BINARY_INTEGER := 32767;
      9        l_pos      INTEGER := 1;
    10       l_blob     BLOB;
    11       l_blob_len INTEGER;
    12     BEGIN
    13       --create uri
    14       lhttp_url := httpuritype.createuri(lv_url);
    15       --get the PDF document
    16       lc_return := lhttp_url.getblob();
    17       -- Open the destination file.
    18       l_file := UTL_FILE.FOPEN('SAUBHIK', 'TheLoveDare.pdf', 'wb');
    19       --Get the total length of the BLOB
    20       l_blob_len := DBMS_LOB.getlength(lc_return);
    21       -- Read chunks of the BLOB and write them to the file
    22       -- until complete.
    23       WHILE l_pos < l_blob_len LOOP
    24         DBMS_LOB.READ(lc_return, l_amount, l_pos, l_buffer);
    25         UTL_FILE.put_raw(l_file, l_buffer, FALSE);
    26         l_pos := l_pos + l_amount;
    27       END LOOP;
    28       -- Close the file.
    29       UTL_FILE.FCLOSE(l_file);
    30     EXCEPTION
    31       WHEN OTHERS THEN
    32         -- Close the file if something goes wrong.
    33         IF UTL_FILE.IS_OPEN(l_file) THEN
    34           UTL_FILE.FCLOSE(l_file);
    35         END IF;
    36         RAISE;
    37*    END;
    38  /
    
    PL/SQL procedure successfully completed.
    
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@localhost ~]$ cd saubhik/
    [oracle@localhost saubhik]$ pwd
    /home/oracle/saubhik
    [oracle@localhost saubhik]$ ls -l *.pdf
    -rw-r--r-- 1 oracle oinstall 60055 Apr  6 14:03 TheLoveDare.pdf
    [oracle@localhost saubhik]$
    

    I love this pdf file. I would like to read this and mean while if you get an error then please post in its entirety and also think that it is an Oracle error or network.

  • ORA-06512: In SYS. SECURE_DML, line 5

    Hi all
    I am trying to create a procedure that is called by a trigger like this:

    CREATE or REPLACE PROCEDURE SECURE_DML is
    BEGIN
    If (TO_CHAR(SYSDATE, 'DY') IN ('SAB', 'DOM')) OR (TO_CHAR (SYSDATE, 'HH24')
    NOT FROM 08:00 ' 17:00 ') THEN
    RAISE_APPLICATION_ERROR (-20500, ' Insercoes funcionarios only no comercial Monday ');
    end if;
    end;
    /
    ALTER SESSION set nls_date_format = 'HH24 DY';

    CREATE OR REPLACE TRIGGER secure_dml2
    INSERT BEFORE ON SCOTT. EMP2
    BEGIN
    exec SECURE_DML procedure;
    end;
    /
    ALTER SESSION set nls_date_format = 'HH24 DY';
    insert into SCOTT.emp2 (sal, empno, ename, deptno) values (7935, 'SANDRA', 1203, 10);

    The error that is:
    ORA-06512: In SYS. Line SECURE_DML 5
    ORA-06512: In SYS. SECURE_DML2 line 2

    What should I do to remove these erros?
    Thank you

    Published by: 994323 on 16/03/2013 20:05

    You post in the wrong forum. Mark the correct answer and close this message. Post to {forum: id = 75}

  • Collecting Table statistics get error ORA-20001 and ORA-06512 on 11g

    Hi Forum!

    I'm trying to collect statistics on a DB 11.2.0.1 for Siebel application.
    The script that generates the statistical errors out and I don't know why. So I tried to interview sys.dba_tab_statistics manually, but the event, and then I got an error message:

    Select * from sys.dba_tab_statistics


    ORA-20001: BIN$ PV5XQQHLSAYJ0KPMEY1MHG == $0 is an invalid identifier
    ORA-06512: in "SYS-DBMS_STATS", line 2082
    ORA-06512: in "SYS-DBMS_STATS", line 2098
    ORA-06512: in "SYS-DBMS_STATS", line 26789


    Any ideas?

    Edited by: Penky October 10, 2011 14:51

    Penky wrote:
    Note that I have not even the error when you make a right selection * of dba_tab_statistics which I think should work fine, no?

    It is that:

    select * from dba_tab_statistics
    

    or

    select * from sys.dba_tab_statistics
    

    It is unusual for a view error SYS, unless it is a specific bug in this version of the database, but I wonder if there are other patterns, such as SYS who have something in their basket (not that anyone should have to be create or drop things in SYS)?

  • Problem with ore.save () - leads to ORA-00942 table or view does not exist

    I get an error when I try to use ore.save () to register a function of R in a data store. This works in our environment of DEV, but for some reason any is not going back to QA. (No not the right to try Prod...)

    What I see:

    -The function to be saved - loadInputData() - is defined

    -A confirmed that the data store exists

    -Tried to save a simple vector - same question

    -Looked directly into RQSYS. RQ$ DATASTOREOBJECT and it seems that he actually recorded? Except call ore.load () for the same object (function loadInputData) also gives the ORA-00942.

    -Both the function and the simple vector see when I call ore.datastoreSummary (), even if the call to ore.save () for both threw the ORA-00942

    -I am connected to a synonym account

    Full traceback from left to right:

    12 .oci. GetQuery (Conn., instruction, data = data = prefetch prefetch,

    bulk_read = bulk_read)

    11 .local (conn, statement,...)

    10 ROracle::dbGetQuery (.ore.con (), qry,...)

    9 ROracle::dbGetQuery (.ore.con (), qry,...)

    8 ore. QueryEnv$ dbGetQuery (qry, healthy = healthy,...)

    7 OREbase:.ore.dbGetQuery (stmt, data = raw.df)

    6.ore.insertObj (get (nm, envir = envir), name, nm, envAsEmptyenv)

    5 FUN ("loadInputData" [[1 L]],...)

    4 lapply (X = X, FUN = FUN,...)

    3 sapply (existingobj.names, function (nm).ore.insertObj (get (nm,

    ((envir = envir), name, nm, envAsEmptyenv))

    2 ore.save (loadInputData, name is MODEL_SAVE_DATASTORE, overwrite = TRUE)

    Question of privilege. The account was missing rights RQADMIN, as well as CREATING of DATA MINING, UNLIMITED TABLESPACE and maybe a few others

  • dmp Impdp file error: ORA-29283: operation invalid file ORA-06512: at "SYS." UTL_FILE", line 536

    Hi all.

    Sorry to ask this error again, I read a lot of topic in this forum on this subject, but I can't fix it.

    So I create this topic.

    My computer is running oracle database 11 g 2 express edition on ubuntu LTS 14.04.

    I'm trying to import the database of dmp file. That's what I do:


    > sqplus

    opening session with sys as sysdba, then run:

    Hoangnv CREATE USER IDENTIFIED BY hoangnv;

    GRANT CONNECT TO hoangnv;

    GRANT RESOURCE, s/n hoangnv;

    CREATE OR REPLACE DIRECTORY dmpdir AS ' / home/hoangnv/downloads/db ";

    GRANT read, write the DIRECTORY ON dmpdir TO hoangnv;


    my_project.dmp file is stored on /home/hoangnv/Downloads/db folder.

    Finally, I ran the command below in terminal:

    impdp hoangnv/hoangnv@xe directory = dmpdir dumpfile = my_project.dmp logfile = my_project.log


    That's what see the Terminal:

    ORA-39002: invalid operation

    ORA-39070: unable to open the log file.

    ORA-29283: invalid file operation

    ORA-06512: at "SYS." UTL_FILE", line 536

    ORA-29283: invalid file operation

    Any ideas? I run these commands on window and import the database successfully.

    Hello

    Please try the suggestions below:

    1. make sure that the roles granted to the user are 'default' for him.

    SQL > change the user hoangnv the role by default all;

    then try to re-import.

    Note: the DBA role contains the IMP_FULL_DATABASE with it.

    2. try import with the use of the 'System' this time, which is the result then? don't forget to give the system read, write on directory dmpdir.

    3. is the permission to/home/hoangnv/Downloads/db fine OS?

  • The stalls on BigDataLite VM Ore.Connect

    After the installation of Oracle Enterprise R 1.4 on the 2.4.1 VM Bigdatalite I am unable to connect using ore.connect.

    Since a Linux Terminal window, I started R and carried out as a result of the actions.

    > library (ORE)
    Loading required package: OREbase

    Package pricing: "OREbase."

    The following objects are hidden from "package: base:

    cbind data.frame, eval, interaction, order, dough, pmax, pmin,
    rbind, table

    Loading required package: OREembed

    Package pricing: "OREembed."

    The following objects are hidden from the "package: OREbase:

    As.Ore.List, as.ore.object, is.ore.list, is.ore.object,
    Ore.datastore, ore.datastoreSummary, ore.delete, ore.doEval,
    ore.groupApply, ore.indexApply, ore.lazyLoad, ore.load,
    ore.rowApply, ore.save, ore.scriptCreate, ore.scriptDrop,
    ore.tableApply

    Loading required package: OREstats
    Loading required package: MASS
    Loading required package: OREgraphics
    Loading required package: OREeda
    Loading required package: OREmodels
    Loading required package: OREdm
    Loading required package: lattice
    Loading required package: OREpredict
    Loading required package: ORExml
    There were 21 warnings (using warnings() to see them)
    >

    > warnings()

    Warning messages:

    1: tables of multiple methods are for "as.ore.object."

    2: tables of multiple methods are for "as.ore.list."

    3: import replacing previous "as.ore.list" loading "OREembed".

    4: replace the previous "as.ore.object" import loading "OREembed".

    5: replacement of previous import '. __C__ore.list' loading "OREembed".

    6: replacement of previous import '. __C__ore.object' loading "OREembed".

    7: replacement of import previous "is.ore.list" loading "OREembed".

    8: import replacing previous "is.ore.object" loading "OREembed".

    9: import replacing previous "ore.datastore" loading "OREembed".

    10: import replacing previous "ore.datastoreSummary" loading "OREembed".

    11: import replacing previous "ore.delete" loading "OREembed".

    12: import replacing previous "ore.doEval" loading "OREembed".

    13: replacement of import previous "ore.groupApply" loading "OREembed".

    14: import replacing previous "ore.indexApply" loading "OREembed".

    15: import replacing previous "ore.lazyLoad" loading "OREembed".

    16: import replacing previous "ore.load" loading "OREembed".

    17: import replacing previous "ore.rowApply" loading "OREembed".

    18: import replacing previous "ore.save" loading "OREembed".

    19: replacement of import previous "ore.scriptCreate" loading "OREembed".

    20: import replacing previous "ore.scriptDrop" loading "OREembed".

    21: replacement of import previous "ore.tableApply" loading "OREembed".

    >

    > ore.connect ("rquser", "orcl", "piet", "welcome1", all = TRUE)

    Loading required package: ROracle

    Loading package perl: DBI

    Therefore the process hangs.

    The process is the only way to regain.

    I uninstalled the software several times and re-installed.

    During uninstall the hook of process on the withdrawal of the RQSYS data, there are probably few current database lock.

    Killing the session will continue the uninstall procedure.

    I have also connected to the database using the ROracle package only as follows:

    > drv <-dbDriver ("Oracle")

    > con <-dbConnect (drv, "rquser", "welcome1")

    > dbListTables (con)

    [1] "RQ$ DATASTOREINVENTORY" 'RQTEST ".

    >

    If the ROracle and DBI packages seem to work correctly.

    Can someone explain why the connection hangs by using ore.connect.

    Bertram Hof

    Hello

    Was already implemented for the Big Data Lite 3.0.

    After the installation of this virtual machine works the ora.connect.

    Thanks for the replies of al

  • ORA-06512: at "SYS." DBMS_XMLGEN", (ORA-00942: table or view does not exist)

    Hey guys, it's Xev.

    I decide to use SQL and XML and it works in a scenario, but in another scenario, is not.

    Here's the Code, I'm passing to two variables, first of all, I spend in the table table_name, and then I spend in the schema.

    If I connected it with "user" and that it seeks it's own pattern, he found the results, as for example, but if I try to run this code while not

    connected to the same user I'm looking for more, I get this error.

    ORA-19202: an error has occurred in the processing of XML

    ORA-00942: table or view does not exist

    ORA-06512: at "SYS." DBMS_XMLGEN", line 288

    ORA-06512: at line 1

    19202 00000 - "an error has occurred in the treatment of XML %s.

    * Cause: An error occurred during the processing of the XML function

    * Action: Check the given error message and resolve the problem appropriate

    /*-------------------------------------------------------------------------------

    This code works only you are connected to the user you are looking on.

    But if you're looking for a different user tables, it is kicking up and gives the above XML error...

    */

    SET SERVEROUTPUT ON

    exec DBMS_OUTPUT. ENABLE (1000000);

    Search_string VAR VARCHAR2 (28)

    EXEC: search_string: = ' ^ [0-9]{3}-[0-9]{2}-[0-9]{4}$']

    COLUMN "Keyword" FORMAT A28

    COLUMN 'Table' FORMAT A9

    COLUMN ' column value / "FORMAT A50

    SELECT DISTINCT SUBSTR (: search_string, 1: 28) "keyword."

    SUBSTR (table_name, 1, 14) "table."

    SUBSTR (t.column_value.getstringval (), 1, 50) ' / value of the column.

    OF dba_tab_cols.

    -where owner = ('& SCHEMA_NAME')

    TABLE

    (XMLSEQUENCE

    (DBMS_XMLGEN. GETXMLTYPE

    ("SELECT" | column_name |)

    'FROM ' | table_name |

    "WHERE REGEXP_LIKE.

    (' | column_name |) ','''

    || : search_string. ''')'

    () .extract (' LINES/rowset / * ""))) t

    -WHERE table_name IN ("FIND_TEST")

    WHERE table_name = upper ('& table_name')

    AND the OWNER = upper ('& SCHEMA_NAME')

    ORDER BY "Table".

    /

    Can someone please explain how works (DBMS_XMLGEN) and why it is throwing this error?

    Thank you

    Xev.

    It has nothing to do with DBMS_XMLGEN. GETXMLTYPE. It simply means the user running your SQL has no select privileges on the table & SCHEMA_NAME. & TABLE_NAME.

    SY.

  • ORA-13033 ORA-06512 at 11.1.0.7

    I have a single shape that seems to cause of ORA-13033 11.1.0.7 but not 11.1.0.6. Wondering if I am missing something stupid, or if someone else has experienced this problem. I did a quick search of positions, but found nothing. It could also be that space has a problem on the 11.1.0.7 server...

    Thank you

    -on 11.1.0.7

    SQL > drop index foo_spatial_index;

    The index is deleted.

    SQL > drop table foo;

    Deleted table.

    SQL > delete from user_sdo_geom_metadata where table_name = 'FOO ';

    1 line removal.

    SQL >
    SQL > create table foo (shape sdo_geometry);

    Table created.

    SQL > insert into foo values (SDO_GEOMETRY (3002, NULL, NULL, SDO_ELEM_INFO_ARRAY (1, 4, 1, 1, 2, 2), SDO_ORDINATE_ARRAY (484893.192, 1845442.68))
    0, 484881.786, 1845444.7,.5, 484871.639, 1845450.28, 1)));

    1 line of creation.

    SQL > insert into user_sdo_geom_metadata values ("FOO", "SHAPE", SDO_DIM_ARRAY (SDO_DIM_ELEMENT(, 484719.102, 484904.266,.0000005), SDO_DI
    (M_ELEMENT(null, 1845366.11, 1845513.86,.0000005), SDO_DIM_ELEMENT (NULL, 0, 5368.70912,.0000005)), null);

    1 line of creation.

    SQL > create index foo_spatial_index on foo (shape) indextype is mdsys.spatial_index;
    create index foo_spatial_index on foo (shape) indextype is mdsys.spatial_index
    *
    ERROR on line 1:
    ORA-29855: an error has occurred in the execution of routine ODCIINDEXCREATE
    ORA-13249: internal error in the Spatial index: [mdidxrbd]
    ORA-13249: error in the Spatial index: index build failed
    ORA-13249: error in the spatial index: [mdrcrtxfergm]
    ORA-13249: error in the spatial index: [mdpridxtxfergm]
    ORA-13200: internal error [ROWID:AAFV8VAAHAAAGUtAAA] in spatial indexing.
    ORA-13206: [] internal error creating the spatial index
    ORA-13033: invalid data in the SDO_ELEM_INFO_ARRAY in the SDO_GEOMETRY object
    ORA-06512: at the 'MDSYS. SDO_INDEX_METHOD_10I', line 10

    -on a different 11.1.0.6

    SQL > drop index foo_spatial_index;
    Drop index foo_spatial_index
    *
    ERROR on line 1:
    ORA-01418: specified index does not exist


    SQL > drop table foo;
    drop table foo
    *
    ERROR on line 1:
    ORA-00942: table or view does not exist


    SQL > delete from user_sdo_geom_metadata where table_name = 'FOO ';

    0 rows deleted.

    SQL >
    SQL > create table foo (shape sdo_geometry);

    Table created.

    SQL > insert into foo values (SDO_GEOMETRY (3002, NULL, NULL, SDO_ELEM_INFO_ARRAY (1, 4, 1, 1, 2, 2), SDO_ORDINATE_ARRAY (484893.192, 1845442.68))
    0, 484881.786, 1845444.7,.5, 484871.639, 1845450.28, 1)));

    1 line of creation.

    SQL > insert into user_sdo_geom_metadata values ("FOO", "SHAPE", SDO_DIM_ARRAY (SDO_DIM_ELEMENT(, 484719.102, 484904.266,.0000005), SDO_DI
    (M_ELEMENT(null, 1845366.11, 1845513.86,.0000005), SDO_DIM_ELEMENT (NULL, 0, 5368.70912,.0000005)), null);

    1 line of creation.

    SQL > create index foo_spatial_index on foo (shape) indextype is mdsys.spatial_index;

    The index is created.

    There are a number of things wrong with your geometry.

    The record says that for compound geometries (sdo_etype = 4) SDO_INTERPRETATION (in this case with sdo_etype = 4) gives the number of subitems. This should be more then 1 large:

    http://download.Oracle.com/docs/CD/B28359_01/AppDev.111/b28400/sdo_objrelschema.htm#BGHDGCCE

    4

    n > 1

    Compound line string with some vertices connected by straight segments and some by circular arcs. The value n in the interpretation column specifies the number of contiguous subelements that make up the line string.

    The triplets following n in the Ansdo_elem_info table describe each of these sub-elements. Subitems cannot SDO_ETYPE 2. The last point of a subelement is the first point of the next subelement, and should not be repeated.

    In your case, you will either need a string of single line that makes the first triplet even unnecessary or incorrect in the Ansdo_elem_info, or you are missing a third triplet in the Ansdo_elem_info.

    You should always validate your geometry first, if you do this also on your 11.1.0.6 version you will get:

    SDO_GEOM. VALIDATE_GEOMETRY_WITH_CONTEXT

    ---------------------------------------

    54506 point: 0, Edge: 2,.

    ORA-54506: compound curve not supported for 3D geometries
    Cause: The 3D geometry contained one or more compound curves, which are not
    support for 3D geometries.
    Action: Remove all the curves of geometry.

    As you can see also compound curveare not supported in 3D geometries.

    IF it is not a compound (with SDO_ELEM_INFO_ARRAY = (1,2,2), you will see that this geometry will validate.

    Looks like the validation could be integrated now in creating indexes in 11.1.0.7.

    Published by: lucvanlinden on March 20, 2009 09:07

  • ORA-06533: index beyond County ORA-06512:

    Hello

    I tried to insert the collection of data (below) in two individual tables, when I tried to insert a unique collection of data in two individual tables, it has been introduced.

    But when I tired to insert several collections into two individual tables, I am getting below error.

    Einf is my PLSQL CODE with details of the error,

    could you please give me solution.

    Thanks in advance .

    Set serveroutput on

    DECLARE

    /*

    PL ORG_ADDRESSES_PHONES_TAB: = ORG_ADDRESSES_PHONES_TAB (ORG_ADDRESSES_PHONES_TYPE ('a1', 'c1', 's1', 'p1', 1, ORG_PHONES_TAB (ORG_PHONES_TYPE ('a2', 'p1', 's1', 'e1')));)

    If inserted unique collections

    */

    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    ------------------------------------------------------------------------          But Below data is not inserting because of multiple collections          ----------------------------------------------------------------------------------------------

    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    PL ORG_ADDRESSES_PHONES_TAB: = ORG_ADDRESSES_PHONES_TAB (ORG_ADDRESSES_PHONES_TYPE ("a1", "c1", "s1", "p1", 1, ORG_PHONES_TAB (ORG_PHONES_TYPE ("a2", "p1", "s1", "e1"))), ORG_ADDRESSES_PHONES_TYPE ('a2', 'c2', 's3', 'p4', 2, ORG_PHONES_TAB (ORG_PHONES_TYPE ('d3', 'f3', 'ws3', 're3')));)

    BEGIN

    I'm IN pl. FIRST... LAST pl.

    LOOP

    PL. EXTEND;

    dbms_output.put_line (i);

    dbms_output.put_line ('next': pl (i) .ORG_PHONES.) Next (1));

    PL of YEW. (I) exists, THEN - if the element exists then display

    dbms_output.put_line (' ADDRESS ': pl (i).) ADDRESS);

    dbms_output.put_line (' CITY ' | pl (i).) IN TOWN);

    dbms_output.put_line ('STATE_CODE' | pl (i).) STATE_CODE);

    dbms_output.put_line (' zip_code ' | pl (i).) ZIP_CODE);

    dbms_output.put_line ('PRIMARY_YESNO': (i) pl.) PRIMARY_YESNO);

    dbms_output.put_line ('POSTAL Code': pl (i) .ORG_PHONES (i).) AREA CODE);

    dbms_output.put_line ('PREFIX': pl (i) .ORG_PHONES (i).) PREFIX);

    dbms_output.put_line ('SUFFIX' | pl (i) .ORG_PHONES (i).) SUFFIX);

    dbms_output.put_line ('EXTENSION' | pl (i) .ORG_PHONES (i).) EXTENSION);

    -pl. EXTEND;

    -pl (i) .ORG_PHONES. EXTEND;

    END IF;

    PL (i) .ORG_PHONES. EXTEND;

    END LOOP;

    COMMIT;

    -dbms_output.put_line ('hii');

    end;

    ----------------------------------------

    Failed query see the settings

    Error from line: 3 in command.

    DECLARE

    -declare a variable of type projecttable

    PL ORG_ADDRESSES_PHONES_TAB: = ORG_ADDRESSES_PHONES_TAB (ORG_ADDRESSES_PHONES_TYPE ("a1", "c1", "s1", "p1", 1, ORG_PHONES_TAB (ORG_PHONES_TYPE ("a2", "p1", "s1", "e1"))), ORG_ADDRESSES_PHONES_TYPE ('ta2', 'uc2', 'vs3', 'wp4', 2, ORG_PHONES_TAB (ORG_PHONES_TYPE ('d3', 'f3', 'ws3', 're3')));)

    -How to display the values in the table

    BEGIN - beginning of the main block

    I'm in pl.first... pl. Last

    loop

    dbms_output.put_line (i);

    dbms_output.put_line (' ADDRESS ': pl (i).) ADDRESS);

    dbms_output.put_line (' CITY ' | pl (i).) IN TOWN);

    dbms_output.put_line ('STATE_CODE' | pl (i).) STATE_CODE);

    dbms_output.put_line (' zip_code ' | pl (i).) ZIP_CODE);

    dbms_output.put_line ('PRIMARY_YESNO': (i) pl.) PRIMARY_YESNO);

    dbms_output.put_line ('POSTAL Code': pl (i) .ORG_PHONES (i).) AREA CODE);

    dbms_output.put_line ('PREFIX': pl (i) .ORG_PHONES (i).) PREFIX);

    dbms_output.put_line ('SUFFIX' | pl (i) .ORG_PHONES (i).) SUFFIX);

    dbms_output.put_line ('EXTENSION' | pl (i) .ORG_PHONES (i).) EXTENSION);

    -pl. EXTEND;

    PL (i) .ORG_PHONES. EXTEND;

    end loop;

    COMMIT;

    -dbms_output.put_line ('hii');

    end;

    Error report-

    ORA-06533: index beyond County

    ORA-06512: at line 19

    06533 00000 - 'County beyond index'

    * Cause: A limit index was greater than the number of a varray

    or too big for a nested table.

    * Action: Verify program logic and extend explicitly if necessary.

    1

    ADDRESS a1

    CITY c1

    STATE_CODE s1

    Zip_code p1

    PRIMARY_YESNO 1

    CODEZONE a2

    PREFIX p1

    SUFFIX s1

    E1 EXTENSION

    2

    ADDRESS ta2

    Uc2 CITY

    STATE_CODE vs3

    Zip_code wp4

    PRIMARY_YESNO 2

    You have to LOOP in your table of pl (I) .ORG_PHONES (I)

    CREATE OR REPLACE PROCEDURE myproc AS
    
       pl ORG_ADDRESSES_PHONES_TAB := ORG_ADDRESSES_PHONES_TAB(ORG_ADDRESSES_PHONES_TYPE('a1'
                                                                                        ,'c1'
                                                                                        ,'s1'
                                                                                        ,'p1'
                                                                                        ,1
                                                                                        ,ORG_PHONES_TAB(ORG_PHONES_TYPE('a2'
                                                                                                                       ,'p1'
                                                                                                                       ,'s1'
                                                                                                                       ,'e1')
                                                                                                       )
                                                                                       )
                                                              ,ORG_ADDRESSES_PHONES_TYPE('a2'
                                                                                        ,'c2'
                                                                                        ,'s3'
                                                                                        ,'p4'
                                                                                        ,2
                                                                                        ,ORG_PHONES_TAB(ORG_PHONES_TYPE('d3'
                                                                                                                       ,'f3'
                                                                                                                       ,'ws3'
                                                                                                                       ,'re3')
                                                                                                       )
                                                                                        )
                                                              );
    
    BEGIN
    
       DBMS_OUTPUT.PUT_LINE('First: ' || TO_CHAR(pl.FIRST));
       DBMS_OUTPUT.PUT_LINE('Last: ' || TO_CHAR(pl.LAST));
    
       FOR I IN pl.FIRST..pl.LAST LOOP
    
          pl.EXTEND;
    
          DBMS_OUTPUT.PUT_LINE(I);
          DBMS_OUTPUT.PUT_LINE('next ' || pl(I).ORG_PHONES.NEXT(1));
    
          IF(pl.EXISTS(I)) THEN                       -- if item exists then display
    
             DBMS_OUTPUT.PUT_LINE('ADDRESS  ' || pl(I).ADDRESS);
             DBMS_OUTPUT.PUT_LINE('CITY  ' || pl(I).CITY);
             DBMS_OUTPUT.PUT_LINE('STATE_CODE  ' || pl(I).STATE_CODE);
             DBMS_OUTPUT.PUT_LINE('POSTAL_CODE  ' || pl(I).POSTAL_CODE);
             DBMS_OUTPUT.PUT_LINE('PRIMARY_YESNO  ' || pl(I).PRIMARY_YESNO);
    
             FOR j IN pl(I).org_phones.FIRST..pl(I).org_phones.LAST LOOP
    
                DBMS_OUTPUT.PUT_LINE('AREACODE  ' || pl(I).ORG_PHONES(j).AREACODE);
                DBMS_OUTPUT.PUT_LINE('PREFIX  ' || pl(I).ORG_PHONES(j).PREFIX);
                DBMS_OUTPUT.PUT_LINE('SUFFIX  ' || pl(I).ORG_PHONES(j).SUFFIX);
                DBMS_OUTPUT.PUT_LINE('EXTENSION  ' || pl(I).ORG_PHONES(j).EXTENSION);
    
             END LOOP;
    
          --pl.EXTEND;
          --pl(i).ORG_PHONES.EXTEND;
    
          END IF;
    
          pl(I).ORG_PHONES.EXTEND;
    
       END LOOP;
    
       COMMIT;
    
       --dbms_output.put_line('hii');
    
    EXCEPTION
    
       WHEN OTHERS THEN
          DBMS_OUTPUT.PUT_LINE(DBMS_UTILITY.FORMAT_ERROR_STACK);
    
    END myproc;
    
  • ORA-01002: extraction out of sequence ORA-06512

    Hi team,

    I tried the below block to check out of it.

    I do not understand why the block below gives error ora-01002.

    Could you please advice on this.

    declare

    cursor c1 is select * from emp for update;

    z c1% rowtype;

    Start

    Open c1;

    Fetch c1 into z.

    commit;

    Fetch c1 into z.

    end;

    Thank you

    Your mistake himself say about your mistake and how to rectify

    You must check out inside a loop

    RA-01002: extraction out of sequence

    ORA-06512: at line 11 level

    01002 00000 - "fetch out of sequence.

    * Cause: This error means that a fetch tried a slider

    that is no longer valid.  Note that a PL/SQL cursor loop

    implicitly made extractions and so can also cause this error.

    There are a number of possible causes of this error, including:

    (1) extraction of a cursor after the last row has been recovered

    and the ORA-1403 error returned.

    (2) if the cursor has been opened with the FOR UPDATE clause,

    recovery after a COMMIT has been made will return the error.

    (3) the reallocation of the placeholders in the SQL statement, and then deliver

    before rerunning the fetch statement.

    * Action: 1) do not issue not a statement of extraction after the last line has been

    not recovered - there are no lines to retrieve.

    (2) do not issue a VALIDATION inside a loop of extraction of cursor

    the UPDATE that was opened.

    (3) rerun the statement after the rebinding, then try to

    search again.

    DECLARE

    CURSOR c1

    IS

    SELECT * FROM emp FOR UPDATE;

    z c1% rowtype;

    BEGIN

    OPEN c1;

    loop

    FETCH c1 INTO z.

    When exit c1% notfound;

    end loop;

    COMMIT;

    END;

  • Invalid operation UTL_SMTP, ORA-06512: at "SYS." UTL_SMTP", LINE 161

    Hello

    I have a requirement to send the data in the table (retrieved via a select clause) through an email.

    Here is the procedure that uses to send email that includes data from the table through trigger.

    I don't find any problem during execution of the procedure and the relaxation.

    but when inserting the data in table 1 (present to SCHEMA1 please refer to line 37 and 55) I get the following error and the message will not be delivered

    ERRORS

    ORA-29277: invalid SMTP Operation

    ORA-06512: at "SYS." UTL_SMTP", LINE 55

    ORA-06512: AT "SYS." UTL_SMTP", LINE 161

    ORA-06512: AT "SYS." UTL_SMTP", LINE 452

    ORA-06512: AT "SYS." UTL_SMTP", LINE 463

    But when I remove the code from line 33 to 44

    am able to send mail.

    That is to say

    / * IMMEDIATE EXECUTION

    "SELECT."

    A.BATCHNO, B.PCSBOX, B.AMOUNT

    Of

    SCHEMA1. Table1: A, SChEMA2.TABLE2 B

    WHERE

    A.BATCHID = B.BATCHNO AND B.PRODOAID =' | PRODOAID

    BULK COLLECT INTO BATCHNO, PCSBOX, AMOUNT;

    FOR indx IN 1.BATCHNO. COUNTY

    LOOP

    UTL_SMTP. WRITE_DATA (A, BATCHNO (indx) |) ' -- '|| PCSBOX (indx) |' --' || Amount (indx) | UTL_TCP. CRLF);

    END LOOP; */

    I checked the sender and recipient addresses that they are fine.

    so, this is my code

    1 CREATE OR REPLACE PROCEDURE SEND_TABLE_DATA (FROMAD IN VARCHAR2: =' <[email protected]> ', )

    TOAD 2 IN VARCHAR2: = ' < [email protected] > ',

    3 under RESERVE IN VARCHAR2: = 'Data Table ',.

    4 MESSAGE IN VARCHAR2: = "Dear all,

    5                                    Docid :    ' ,

    DOCID 6 IN VARCHAR2,

    DOCDT DATE 7.

    8 PRODOAID IN NUMBER)

    9, ACCORDING TO

    10 TYPE NumList IS TABLE OF NUMBER;

    11 TYPE NameList IS TABLE OF THE VARCHAR2 (32767).

    12 BATCHNO NameList;

    13 PCSBOX NumList;

    AMOUNT 14 NumList;

    15 SMTPHOST VARCHAR2 (255): = ' XX. XX. XX. XX ";

    16. A UTL_SMTP. CONNECTION;

    BEGIN 17

    18 A: = UTL_SMTP. OPEN_CONNECTION(SMTPHOST,25);

    19 UTL_SMTP. HELO (A, SMTPHOST);

    20 UTL_SMTP. MAIL (A, FROMAD);

    21 UTL_SMTP. RCPT (A, TOAD);

    22 UTL_SMTP. OPEN_DATA (A);

    UTL_SMTP 23. WRITE_DATA (A, UTL_TCP. CRLF);

    24 UTL_SMTP. WRITE_DATA (A, UTL_TCP. CRLF. UTL_TCP. CRLF. UTL_TCP. CRLF);

    25 UTL_SMTP. WRITE_DATA (, ' Date: ' |) TO_CHAR (SYSDATE, ' DD/MM/YYYY HH24:MI:SS'). UTL_TCP. CRLF);

    26 UTL_SMTP. WRITE_DATA (, ' from: ' |) FROMAD | UTL_TCP. CRLF);

    UTL_SMTP 27. WRITE_DATA (, ' from: ' |) TOAD | UTL_TCP. CRLF);

    28 UTL_SMTP. WRITE_DATA (, ' subject: ' |) TOPIC | UTL_TCP. CRLF);

    UTL_SMTP 29. WRITE_DATA (ONE, MESSAGE |) DOCID | "Documented on ' | DOCDT | UTL_TCP. CRLF);

    30 UTL_SMTP. WRITE_DATA (A, UTL_TCP. CRLF. UTL_TCP. CRLF. UTL_TCP. CRLF);

    UTL_SMTP 31. WRITE_DATA (A, "it's for your information" |) UTL_TCP. CRLF);

    UTL_SMTP 32. WRITE_DATA (, ' BATCHNO ' |) ' -- '||' PCSBOX ' |' --' ||' AMOUNT '. UTL_TCP. CRLF);

    33 IMMEDIATE EXECUTION

    34 ' SELECT

    35 A.BATCHNO, B.PCSBOX, B.AMOUNT

    36 FROM

    37 SCHEMA1. Table1: A, SChEMA2.TABLE2 B

    38. WHERE THE

    39 A.BATCHID = B.BATCHNO AND B.PRODOAID =' | PRODOAID

    40 BULK COLLECT INTO BATCHNO PCSBOX, AMOUNT;

    41 FOR indx IN 1.BATCHNO. COUNTY

    42 LOOP

    UTL_SMTP 43. WRITE_DATA (A, BATCHNO (indx) |) ' -- '|| PCSBOX (indx) |' --' || Amount (indx) | UTL_TCP. CRLF);

    44 END OF LOOP;

    UTL_SMTP 45. WRITE_DATA (A, CHR (13) |) CHR (13) | CHR (13));

    UTL_SMTP 46. CLOSE_DATA (A);

    UTL_SMTP 47. QUIT (A);

    EXCEPTION OF 48

    49 THEN THAN OTHERS THEN

    50 UTL_SMTP. QUIT (A);

    RAISE 51;

    END 52;

    53.

    54, create or replace trigger trg_table_mail_sricity_prodoa

    55 after insertion on SCHEMA1. TABLE1:

    56 for each line

    start at 57

    (58) SENd_table_data

    59 DOCID = >: new.docid,.

    DOCDT 60 = >: new.docdt,.

    PRODOAID 61 = >: new.prodoaid

    (62);

    end 63;

    Can what changes I make to the code to meet my needs?

    Please correct me if am wrong anywhere,

    in the case where if a bad method used to send data (retrieved using a select clause)

    Show me another method to achieve my requirement.

    Thanks in advance,

    Pradeep cordially.

    Line 19 is not going. The HELO command is used to identify the SMTP client. The SMTP server knows its IP address and the host name. No need to tell him that via the HELO command. He wants to know who is the appellant. The order is intended to say "Hello, I am a customer ". "" See the SMTP RFC for more details. (and Yes, examples of the Oracle are wrong)

    Run immediately? Why? There is no true used dynamic SQL.

    Collect in bulk? Why? There is not analysis or the treatment performed. Use a cursor loop FOR and call write data from the inside of the loop.

    Also consider a fall 80's standard mainframe coding style (and abusing capital letters) and use modern standards that are common in Java. .NET, C/C++, etc. Specifically, as PL/SQL is derived and an implementation of the Ada language, look at Ada 95 quality and Style Guide for standards, and good logic.

  • How to solve the problem of the ORA-29273 and ORA-06512

    Hey, guys:

    I had a problem to get Google geocoding when I used a government licensed Google API key. This project is developed for the Government, so we should be able to use this API key. And the agent of the Government told me that as long as I use this API key and they add to the area of our company to their list, we should be able to get free Google geocoding indefinitely. I'm using Oracle 11 g 2, Apex 4.1. Google returns a result (1600 geocoding) and after awhile my program was exception. However, I got the following problem:

    ORA-29273: HTTP request failed
    ORA-06512: at "SYS." UTL_HTTP", line 1722
    ORA-29259: end-of-input reached
    ORA-06512: at "get OUT. SOR_TEST_SERVICE', line 24
    ORA-06512: at "get OUT. SOR_TEST_SERVICE', line 187
    ORA-06512: at line 6
    29273 00000 - "the HTTP request failed.
    * Cause: The UTL_HTTP package cannot run the HTTP request.
    * Action: Use get_detailed_sqlerrm to check the detailed error message.
    Correct the error and restart the HTTP request.

    and I searched online and found the thread following OTN:

    Anyone incorporating the Google Apps Provisioning via Oracle or APEX API?

    It looks like, I have to get Google API certificate and install it on Oracle wallet. I do not experience this issue. Can someone give me a roadmap to this topic? For example, how can I get a certificate of Google? Should I get in touch with Google, or send the request with API license key? or API key is a certificate? an example would be very useful!


    Here is my code
      procedure Get_Geocoding(P_s_Address in varchar2, P_s_Geocoding out varchar2, P_n_accuracy out number, P_b_success out boolean) is
      
      l_address varchar2(4000);
      l_url varchar2(32000);
      l_response varchar2(3200);
      n_first_comma number;
      n_second_comma number;
      n_level_length number;
      
      BEGIN
        /* TODO implementation required */
        
        l_address:=APEX_UTIL.URL_ENCODE(P_s_Address);
        l_address := replace(l_address,' ','+');
         
        l_url := 'http://maps.google.com/maps/geo?q='||l_address||'&'||'output=csv'||'&'||'key=my API key';
        l_response := utl_http.request(l_url, APEX_APPLICATION.G_PROXY_SERVER);
        
        --dbms_output.put_line(l_response);
        
        n_first_comma:=instr(l_response,',',1,1);
        n_second_comma:=instr(l_response,',',1,2);
        n_level_length:=n_second_comma-n_first_comma-1;
    
        P_n_accuracy:=to_number(substr(l_response,n_first_comma+1, n_level_length));
        
         l_response:=substr(l_response,instr(l_response,',',1,2)+1);
        
           
        
        P_s_Geocoding:=l_response;
        if (P_s_Geocoding<>'0,0') then
          P_b_success:=true;
         else
          P_b_success:=false;
        end if;
      
      END;
    Thank you very much!

    Sam

    Published by: lxiscas on August 22, 2012 16:33

    Published by: lxiscas on August 23, 2012 08:27

    To access the HTTPS site, you will need portfolio information.
    Portfolio is created through the Oracle Wallet Manager. It is available in standard edition database or Oracle HTTP server.
    If you have installed, go to Oracle Wallet Manager and create a portfolio.
    Then, you need to import the certificates on this portfolio.

    When you open the https://maps.google.com/ website in your web browser, you will see a lock symbol just before https. Double click on that and click on certificate information.
    Then click path of certificate, and then click the top node and click View Certificate and click on details and then copy in the file. The Certificate Export Wizard will start select
    Message Syntax cryptographice and check include all certification path.

    He followed even for all nodes in the main certificate

    This will create a file. Once the file is created. Double click on that and start the Certificate Import Wizard. Follow the online instructions. (It is need in the server)
    Once done. Open the Oracle Portfolio Manager and import it there also. Right-click on the wallet, and select Import.
    Then log in as administrator of the apex
    Workspace - internal
    User - Admin
    Password - passowrd you created everything by the installation

    Go to the setting of the instance and select portfolio information. And put the path of the portfolio in the file format: and password wallet.

    Once done, I think that you will be able to access.

    See you soon,.
    Mehabub

Maybe you are looking for