DBMS_SQL array processing - ORACLE 8.0.6
It's been a while since I've used this.
DEFINE_ARRAY - the last parameter is "lower bound", which is the starting point. If it's set to 1, rows will be placed in the array starting with 1 and ending with the last row fetched. The entire result set from the EXECUTE appears to be loaded into memory using the array. Fetch 1 will retrieve rows 1 - 10, and put them in array loc. 1 - 10, next fetch will return 11 - 20 and put them in array loc 11-20.
I don't remember it being this way. Why can I not reset the array, load 10 at a time in array locations 1-10, and re-use 1-10 for each fetch? Will I not eventually blow something up if too much is loaded into the array?
Also, why would I want to set lower bound to anything other than 1? Why would I want to use -10 to 9, or 0 to 20, or other ranges? What purpose does this capability serve?
(Of course, back then I used host arrays in PRO*COBOL. It must have been different.)
Thanks.
KL
If you do not care about the rows fetched from a prior call to FETCH, you can do a .DELETE on the collection to remove any existing elements and thus freeing the memory.
The index positions will still start from the next available index position, so you should use .FIRST and .LAST on the collection.
If you have a set of queries that you run one after the other and these queries produce the end result in the same format as the previous, then you may want to keep the previous rows in the collection, and start from the next available index.
Similar Messages
-
How to pass ARRAY to Oracle Procedure
Hi
We are using BC4J with JSP in our project. We need to send an Array to the procedure.
Could somebody provide some info as how this can be achieved.A while back, I used a SQLJ client to call a Java (also SQLJ) stored procedure and I needed to pass an array of strings to the procedure. I did something like this:
Java Class that was loaded in DB:
public class MyClass
// method that the stored procedure uses
public static void CALL_DOSTUFF(String a,
oracle.sql.ARRAY b,
oracle.sql.ARRAY c)
String[] bb = (String[])b.getArray();
String[] cc = (String[])c.getArray();
doStuff(a,bb,cc);
public static void doStuff(String a,
String[] b,
String[] c)
// process the input
In the database I added the type:
create or replace type STR_ARRAY as table of varchar2(20);
and the procedure:
create or replace procedure CALL_DOSTUFF(a varchar2,
b STR_ARRAY,
c STR_ARRAY)
as
language java
name 'MyClass.CALL_DOSTUFF(java.lang.String,
oracle.sql.ARRAY,
oracle.sql.ARRAY)';
I then used jpub to publish a STR_ARRAY.java file. I compiled this and used it with my SQLJ client to call to the stored procedure. The STR_ARRAY constructor takes a String[], so you do something like this in the SQLJ client:
String x = "X";
String y = {"y1","y2"};
String z = {"z1","z2"};
STR_ARRAY y1 = new STR_ARRAY(y);
STR_ARRAY z1 = new STR_ARRAY(z);
#sql {CALL CALL_DOSTUFF(:x,:y1,:z1)};
Hope this helps. -
Conversion of java Array to oracle SQL Array while calling Stored Procedure
How java Array can be converted to oracle SQL array while calling Stored procedure with callable statement.
i.e java Array ---> Sql Array in Oracle while setting the datatypes to callable statement arguments.Look at:
http://forum.java.sun.com/thread.jsp?forum=48&thread=376735&tstart=0&trange=15
Paul -
11gr2 installation hanging at step 7 during Processing Oracle Text 11.2.0.
Hi,
I am trying to install 11gr2 software on my linux 64 bit server.
I had installled the same 11gr2 software successfully on the same server without any issues.
Now i want another oracle home. But the installation is hanging at step 7, 8% was completed.
The details tab showing
Verifying whether Central Inventory is locked by any other OUI session...
Central Inventory is not locked.
Loading products list. Please wait.
Loading products. Please wait.
Analyzing dependencies
Setting up install types
Executing pre-requisites
Loading Oracle Database 11g
Loading Enterprise Edition Options
Loading Oracle Partitioning
Loading Oracle Spatial
Loading Oracle OLAP
Loading Oracle Database 11g
Loading Oracle Net Services
Loading Oracle Text
Loading Oracle Net Listener
Loading Oracle Enterprise Manager Console DB
Loading HAS Files for DB
Loading Oracle Internet Directory Client
Loading Oracle Advanced Security
Loading Oracle JVM
Loading Oracle XML Development Kit
Loading Database Configuration and Upgrade Assistants
Loading Oracle Net
Loading Oracle Multimedia
Loading Oracle Multimedia Locator
Loading Oracle Call Interface (OCI)
Loading SQL*Plus
Loading Oracle Netca Client
Loading Enterprise Manager Agent
Loading Oracle Database Utilities
Loading Oracle Programmer
Loading Oracle Database Gateway for ODBC
Loading Generic Connectivity Common Files
Loading PL/SQL
Loading Oracle Recovery Manager
Loading Assistant Common Files
Loading Buildtools Common Files
Loading Oracle LDAP administration
Loading Oracle Help for the Web
Loading Installation Common Files
Loading Precompiler Common Files
Loading HAS Common Files
Loading Enterprise Manager plugin Common Files
Loading Oracle UIX
Loading Oracle Clusterware RDBMS Files
Loading Cluster Verification Utility Common Files
Loading Oracle Wallet Manager
Loading Oracle Security Developer Tools
Loading XML Parser for Java
Loading Enterprise Manager Minimal Integration
Loading Oracle Notification Service
Loading Oracle Database User Interface
Loading Oracle ODBC Driver
Loading SQL*Plus Files for Instant Client
Loading Required Support Files
Loading Oracle Globalization Support
Loading Database SQL Scripts
Loading OLAP SQL Scripts
Loading PL/SQL Embedded Gateway
Loading Oracle Locale Builder
Loading Character Set Migration Utility
Loading Oracle Java Client
Loading Oracle Multimedia Client Option
Loading Oracle JDBC/THIN Interfaces
Loading Oracle Universal Connection Pool
Loading Secure Socket Layer
Loading Oracle Net Required Support Files
Loading Oracle Code Editor
Loading Oracle Containers for Java
Loading JAccelerator (COMPANION)
Loading Perl Interpreter
Loading Oracle Quality of Service Management (Client)
Loading Deinstallation Tool
Loading Perl Modules
Loading Enterprise Manager Common Files
Loading Installation Plugin Files
Loading Expat libraries
Loading XML Parser for Oracle JVM
Loading Oracle XML Query
Loading Oracle Message Gateway Common Files
Loading Oracle Starter Database
Loading Sample Schema Data
Loading Oracle Help For Java
Loading Oracle Core Required Support Files
Loading Oracle Multimedia Locator RDBMS Files
Loading Oracle JDBC/OCI Instant Client
Loading Oracle Multimedia Annotator
Loading Oracle Multimedia Java Advanced Imaging
Loading Oracle Database 11g Multimedia Files
Loading Precompiler Required Support Files
Loading Oracle Text Required Support Files
Loading Oracle Notification Service (eONS)
Loading Oracle 11g Warehouse Builder Required Files
Loading Parser Generator Required Support Files
Loading regexp
Loading Agent Required Support Files
Loading Enterprise Manager Agent Core Files
Loading Enterprise Manager Common Core Files
Loading Enterprise Manager Grid Control Core Files
Loading Enterprise Manager Database Plugin -- Agent Support
Loading Enterprise Manager Repository Core Files
Loading Enterprise Manager Database Plugin -- Repository Support
Loading Provisioning Advisor Framework
Loading Exadata Storage Server
Loading Oracle Globalization Support
Loading RDBMS Required Support Files
Loading Database Workspace Manager
Loading SQLJ Runtime
Loading RDBMS Required Support Files for Instant Client
Loading XDK Required Support Files
Loading Oracle Application Express
Loading Oracle SQL Developer
Loading Oracle JDBC Server Support Package
Loading Oracle Ice Browser
Loading Oracle Display Fonts
Loading SQL*Plus Required Support Files
Loading Oracle RAC Required Support Files-HAS
Loading Oracle Database Vault option
Loading Platform Required Support Files
Loading Oracle OLAP API
Loading Oracle OLAP RDBMS Files
Loading Oracle Data Mining RDBMS Files
Loading Oracle Label Security
Loading Oracle Database Vault J2EE Application
Loading Oracle Real Application Testing
Loading Oracle JFC Extended Windowing Toolkit
Loading Oracle Extended Windowing Toolkit
Loading Bali Share
Loading SSL Required Support Files for InstantClient
Loading LDAP Required Support Files
Loading Oracle ODBC Driverfor Instant Client
Loading Oracle Configuration Manager
Loading Oracle Database Deconfiguration
Loading Oracle RAC Deconfiguration
Loading Oracle DBCA Deconfiguration
Loading Oracle Configuration Manager Deconfiguration
Loading Oracle Universal Installer
Loading Oracle One-Off Patch Installer
Loading Installer SDK Component
Loading Sun JDK
Loading dialogs for Oracle Database 11g
Loading dialogs for Enterprise Edition Options
Loading dialogs for Oracle Partitioning
Loading dialogs for Oracle Spatial
Loading dialogs for Oracle OLAP
Loading dialogs for Oracle Database 11g
Loading dialogs for Oracle Net Services
Loading dialogs for Oracle Text
Loading dialogs for Oracle Net Listener
Loading dialogs for Oracle Enterprise Manager Console DB
Loading dialogs for HAS Files for DB
Loading dialogs for Oracle Internet Directory Client
Loading dialogs for Oracle Advanced Security
Loading dialogs for Oracle JVM
Loading dialogs for Oracle XML Development Kit
Loading dialogs for Database Configuration and Upgrade Assistants
Loading dialogs for Oracle Net
Loading dialogs for Oracle Multimedia
Loading dialogs for Oracle Multimedia Locator
Loading dialogs for Oracle Call Interface (OCI)
Loading dialogs for SQL*Plus
Loading dialogs for Oracle Netca Client
Loading dialogs for Enterprise Manager Agent
Loading dialogs for Oracle Database Utilities
Loading dialogs for Oracle Programmer
Loading dialogs for Oracle Database Gateway for ODBC
Loading dialogs for Generic Connectivity Common Files
Loading dialogs for PL/SQL
Loading dialogs for Oracle Recovery Manager
Loading dialogs for Assistant Common Files
Loading dialogs for Buildtools Common Files
Loading dialogs for Oracle LDAP administration
Loading dialogs for Oracle Help for the Web
Loading dialogs for Installation Common Files
Loading dialogs for Precompiler Common Files
Loading dialogs for HAS Common Files
Loading dialogs for Enterprise Manager plugin Common Files
Loading dialogs for Oracle UIX
Loading dialogs for Oracle Clusterware RDBMS Files
Loading dialogs for Cluster Verification Utility Common Files
Loading dialogs for Oracle Wallet Manager
Loading dialogs for Oracle Security Developer Tools
Loading dialogs for XML Parser for Java
Loading dialogs for Enterprise Manager Minimal Integration
Loading dialogs for Oracle Notification Service
Loading dialogs for Oracle Database User Interface
Loading dialogs for Oracle ODBC Driver
Loading dialogs for SQL*Plus Files for Instant Client
Loading dialogs for Required Support Files
Loading dialogs for Oracle Globalization Support
Loading dialogs for Database SQL Scripts
Loading dialogs for OLAP SQL Scripts
Loading dialogs for PL/SQL Embedded Gateway
Loading dialogs for Oracle Locale Builder
Loading dialogs for Character Set Migration Utility
Loading dialogs for Oracle Java Client
Loading dialogs for Oracle Multimedia Client Option
Loading dialogs for Oracle JDBC/THIN Interfaces
Loading dialogs for Oracle Universal Connection Pool
Loading dialogs for Secure Socket Layer
Loading dialogs for Oracle Net Required Support Files
Loading dialogs for Oracle Code Editor
Loading dialogs for Oracle Containers for Java
Loading dialogs for JAccelerator (COMPANION)
Loading dialogs for Perl Interpreter
Loading dialogs for Oracle Quality of Service Management (Client)
Loading dialogs for Deinstallation Tool
Loading dialogs for Perl Modules
Loading dialogs for Enterprise Manager Common Files
Loading dialogs for Installation Plugin Files
Loading dialogs for Expat libraries
Loading dialogs for XML Parser for Oracle JVM
Loading dialogs for Oracle XML Query
Loading dialogs for Oracle Message Gateway Common Files
Loading dialogs for Oracle Starter Database
Loading dialogs for Sample Schema Data
Loading dialogs for Oracle Help For Java
Loading dialogs for Oracle Core Required Support Files
Loading dialogs for Oracle Multimedia Locator RDBMS Files
Loading dialogs for Oracle JDBC/OCI Instant Client
Loading dialogs for Oracle Multimedia Annotator
Loading dialogs for Oracle Multimedia Java Advanced Imaging
Loading dialogs for Oracle Database 11g Multimedia Files
Loading dialogs for Precompiler Required Support Files
Loading dialogs for Oracle Text Required Support Files
Loading dialogs for Oracle Notification Service (eONS)
Loading dialogs for Oracle 11g Warehouse Builder Required Files
Loading dialogs for Parser Generator Required Support Files
Loading dialogs for regexp
Loading dialogs for Agent Required Support Files
Loading dialogs for Enterprise Manager Agent Core Files
Loading dialogs for Enterprise Manager Common Core Files
Loading dialogs for Enterprise Manager Grid Control Core Files
Loading dialogs for Enterprise Manager Database Plugin -- Agent Support
Loading dialogs for Enterprise Manager Repository Core Files
Loading dialogs for Enterprise Manager Database Plugin -- Repository Support
Loading dialogs for Provisioning Advisor Framework
Loading dialogs for Exadata Storage Server
Loading dialogs for Oracle Globalization Support
Loading dialogs for RDBMS Required Support Files
Loading dialogs for Database Workspace Manager
Loading dialogs for SQLJ Runtime
Loading dialogs for RDBMS Required Support Files for Instant Client
Loading dialogs for XDK Required Support Files
Loading dialogs for Oracle Application Express
Loading dialogs for Oracle SQL Developer
Loading dialogs for Oracle JDBC Server Support Package
Loading dialogs for Oracle Ice Browser
Loading dialogs for Oracle Display Fonts
Loading dialogs for SQL*Plus Required Support Files
Loading dialogs for Oracle RAC Required Support Files-HAS
Loading dialogs for Oracle Database Vault option
Loading dialogs for Platform Required Support Files
Loading dialogs for Oracle OLAP API
Loading dialogs for Oracle OLAP RDBMS Files
Loading dialogs for Oracle Data Mining RDBMS Files
Loading dialogs for Oracle Label Security
Loading dialogs for Oracle Database Vault J2EE Application
Loading dialogs for Oracle Real Application Testing
Loading dialogs for Oracle JFC Extended Windowing Toolkit
Loading dialogs for Oracle Extended Windowing Toolkit
Loading dialogs for Bali Share
Loading dialogs for SSL Required Support Files for InstantClient
Loading dialogs for LDAP Required Support Files
Loading dialogs for Oracle ODBC Driverfor Instant Client
Loading dialogs for Oracle Configuration Manager
Loading dialogs for Oracle Database Deconfiguration
Loading dialogs for Oracle RAC Deconfiguration
Loading dialogs for Oracle DBCA Deconfiguration
Loading dialogs for Oracle Configuration Manager Deconfiguration
Loading dialogs for Oracle Universal Installer
Loading dialogs for Oracle One-Off Patch Installer
Loading dialogs for Installer SDK Component
Loading dialogs for Sun JDK
Processing Oracle Database 11g 11.2.0.1.0
Processing Enterprise Edition Options 11.2.0.1.0
Processing Oracle Partitioning 11.2.0.1.0
Processing Oracle Spatial 11.2.0.1.0
Processing Oracle OLAP 11.2.0.1.0
Processing Oracle Database 11g 11.2.0.1.0
Processing Oracle Net Services 11.2.0.1.0
Processing Oracle Text 11.2.0.1.0
Thanks,
KavithaHi,
First ORACLE Home : /u02/oracle/11.2.0
Now using ORACLE Home: /u03/HFMDCP/11.2.0
The log showing below information:
driveName = /dev/shm
returnInMegaBytes = true
INFO: Query Returned: 3992
INFO: Setting variable 'n_POSIXMemSize' to '3992'. Received the value from the variable calculation.
INFO: Setting value of child variable b_useRegistration of oracle.sysman.ccr 10.3.1.1.0 to false
INFO: *** Entering Component: oracle.options installation
INFO: Processing Enterprise Edition Options 11.2.0.1.0
INFO: Processing Enterprise Edition Options 11.2.0.1.0
INFO: *** Entering Component: oracle.rdbms.partitioning installation
INFO: Processing Oracle Partitioning 11.2.0.1.0
INFO: Processing Oracle Partitioning 11.2.0.1.0
INFO: Calling Query generalQueries10.2.0.2.0 getOSName
INFO: Query Returned: Linux
INFO: Setting variable 's_operatingSystem' to 'Linux'. Received the value from the variable calculation.
INFO: Setting variable 's_makeLogFile' to 'make.log'. Received the value from the variable calculation.
INFO: Calling Query generalQueries10.2.0.2.0 isCurrentPlatformInGroup
platGroup = WINDOWS
INFO: Query Returned: false
INFO: Setting variable 'b_isWINDOWS' to 'false'. Received the value from the variable calculation.
INFO: Setting variable 's_installLogDir' to '/u03/HFMDCP/11.2.0/install/'. Received the value from the variable calculation.
INFO: *** Entering Component: oracle.sdo installation
INFO: Processing Oracle Spatial 11.2.0.1.0
INFO: Processing Oracle Spatial 11.2.0.1.0
INFO: Calling Query generalQueries10.2.0.2.0 getOSName
INFO: Query Returned: Linux
INFO: Setting variable 's_operatingSystem' to 'Linux'. Received the value from the variable calculation.
INFO: Setting variable 's_makeLogFile' to 'make.log'. Received the value from the variable calculation.
INFO: Setting variable 's_OPSSelectedNodes' to ''. Received the value from the variable calculation.
INFO: Calling Query generalQueries10.2.0.2.0 isCurrentPlatformInGroup
platGroup = UNIX
INFO: Query Returned: true
INFO: Setting variable 'b_isUNIX' to 'true'. Received the value from the variable calculation.
INFO: Setting variable 'VERSION' to '9.2.0.0.0 Beta'. Received the value from the variable calculation.
INFO: Setting variable 'ORDSYS_PASSWORD' to '*Protected value, not to be logged*'. Received the value from the variable calculation.
INFO: Setting variable 'MDSYS_PASSWORD' to '*Protected value, not to be logged*'. Received the value from the variable calculation.
INFO: Setting variable 'MD' to 'md'. Received the value from the variable calculation.
INFO: Setting variable 'DESCRIPTION' to 'Oracle8 Spatial Cartridge'. Received the value from the variable calculation.
INFO: Setting variable 's_sourceInstallScript' to '/u03/HFMDCP/11.2.0/md/admin/mdinst.sql'. Received the value from the variable calculation.
INFO: Setting variable 's_sourceDeinstallScript' to '/u03/HFMDCP/11.2.0/md/admin/mddins.sql'. Received the value from the variable calculation.
INFO: Setting variable 's_sourceDeinstallScript' to '/u03/HFMDCP/11.2.0/md/admin/mddins.sql'. Received the value from the variable calculation.
INFO: Setting variable 's_installLogDir' to '/u03/HFMDCP/11.2.0/install/'. Received the value from the variable calculation.
INFO: Setting variable 's_destInstallScript' to '/u03/HFMDCP/11.2.0/md/admin/mdinst.sql'. Received the value from the variable calculation.
INFO: Setting variable 's_destDeinstallScript' to '/u03/HFMDCP/11.2.0/md/admin/mddins.sql'. Received the value from the variable calculation.
INFO: Setting variable 'sl_processList' to '/u03/HFMDCP/11.2.0/bin/oracle'. Received the value from the variable calculation.
INFO: *** Entering Component: oracle.oraolap installation
INFO: Processing Oracle OLAP 11.2.0.1.0
INFO: Processing Oracle OLAP 11.2.0.1.0
INFO: Calling Query generalQueries10.2.0.2.0 getOSName
INFO: Query Returned: Linux
INFO: Setting variable 's_operatingSystem' to 'Linux'. Received the value from the variable calculation.
INFO: Setting variable 's_makeLogFile' to 'make.log'. Received the value from the variable calculation.
INFO: Setting variable 's_installLogDir' to '/u03/HFMDCP/11.2.0/install/'. Received the value from the variable calculation.
INFO: *** Entering Component: oracle.rdbms installation
INFO: Processing Oracle Database 11g 11.2.0.1.0
INFO: Processing Oracle Database 11g 11.2.0.1.0
INFO: Calling Query unixQueries10.1.0.2.0 getGroups
INFO: Query Returned: dba
INFO: Setting variable 'sl_groupChoices' to 'dba'. Received the value from the variable calculation.
INFO: Setting variable 's_version' to '9.2.0.0.0'. Received the value from the variable calculation.
INFO: Setting variable 's_verifierName' to 'verifier15.jar'. Received the value from the variable calculation.
INFO: Setting variable 's_sidToMigrate' to ''. Received the value from the variable calculation.
INFO: Calling Query generalQueries10.2.0.2.0 getOSName
INFO: Query Returned: Linux
INFO: Setting variable 's_operatingSystem' to 'Linux'. Received the value from the variable calculation.
INFO: Calling Query generalQueries10.2.0.2.0 getenv
name = LD_LIBRARY_PATH
INFO: Query Returned: /tmp/OraInstall2011-05-11_10-43-27AM/jdk/jre/lib/amd64/server:/tmp/OraInstall2011-05-11_10-43-27AM/jdk/jre/lib/amd64:/tmp/OraInstall2011-05-11_10-43-27AM/jdk/jre/../lib/amd64
INFO: Setting variable 's_oldLDLibPath' to '/tmp/OraInstall2011-05-11_10-43-27AM/jdk/jre/lib/amd64/server:/tmp/OraInstall2011-05-11_10-43-27AM/jdk/jre/lib/amd64:/tmp/OraInstall2011-05-11_10-43-27AM/jdk/jre/../lib/amd64'. Received the value from the variable calculation.
INFO: Setting variable 's_ojdbc5Name' to 'ojdbc5.jar'. Received the value from the variable calculation.
INFO: Setting variable 's_nameOfBundle' to 'EE'. Received the value from the variable calculation.
INFO: Setting variable 's_makeLogFile' to 'make.log'. Received the value from the variable calculation.
INFO: Setting variable 's_lowResourceDialogPrompt' to ''. Received the value from the variable calculation.
INFO: Setting variable 's_ldapjclntName' to 'ldapjclnt11.jar'. Received the value from the variable calculation.
INFO: Setting variable 's_jssl11Name' to 'jssl-1_1.jar'. Received the value from the variable calculation.
INFO: Calling Query areasQueries10.2.0.1.0 getProductHome
name = oracle.jdk
startVersion = 1.5.0.0.0
endVersion = 9.9.9.9.9
acceptCompatible = null
INFO: Query Returned: /u03/HFMDCP/11.2.0/jdk
INFO: Setting variable 's_jreLocation' to '/u03/HFMDCP/11.2.0/jdk/jre/'. Received the value from the variable calculation.
INFO: Setting variable 's_javaxssl12Name' to 'javax-ssl-1_2.jar'. Received the value from the variable calculation.
INFO: Setting variable 's_groupDialogPrompt' to ''. Received the value from the variable calculation.
INFO: Setting variable 's_filemapLocation' to '/opt/ORCLfmap'. Received the value from the variable calculation.
INFO: Setting variable 's_emailServer' to ''. Received the value from the variable calculation.
INFO: Setting variable 's_emailAddress' to ''. Received the value from the variable calculation.
INFO: Setting variable 's_defaultDBName' to ''. Received the value from the variable calculation.
INFO: Setting variable 's_c' to ''. Received the value from the variable calculation.
INFO: Setting variable 's_OPSSelectedNodes' to ''. Received the value from the variable calculation.
INFO: Setting variable 's_OPSNodeInfoString' to 'NO_VALUE'. Received the value from the variable calculation.
INFO: Setting variable 's_OPSClusterUser' to 'NO_VALUE'. Received the value from the variable calculation.
INFO: Setting variable 's_OPSClusterPassword' to '*Protected value, not to be logged*'. Received the value from the variable calculation.
INFO: Setting variable 's_DBNamePrompt' to 'Every Oracle 11g database is uniquely identified by a Global Database Name, typically of the form "name.domain". Enter the Global Database Name for this database.'. Received the value from the variable calculation.
INFO: Setting variable 's_DBName' to ''. Received the value from the variable calculation.
INFO: Setting variable 's_DBDomain' to ''. Received the value from the variable calculation.
INFO: Setting variable 'init_shared_pool_size' to '10000000'. Received the value from the variable calculation.
INFO: Setting variable 'init_sequence_cache_hash_buckets' to '10'. Received the value from the variable calculation.
INFO: Setting variable 'init_sequence_cache_entries' to '10'. Received the value from the variable calculation.
INFO: Setting variable 'init_processes' to '59'. Received the value from the variable calculation.
INFO: Setting variable 'init_path' to ''. Received the value from the variable calculation.
INFO: Setting variable 'init_open_links' to '4'. Received the value from the variable calculation.
INFO: Setting variable 'init_log_buffer' to '8192'. Received the value from the variable calculation.
INFO: Setting variable 'init_job_queue_processes' to '2'. Received the value from the variable calculation.
INFO: Setting variable 'init_job_queue_interval' to '10'. Received the value from the variable calculation.
INFO: Setting variable 'init_dml_locks' to '100'. Received the value from the variable calculation.
INFO: Setting variable 'init_distributed_transactions' to '5'. Received the value from the variable calculation.
INFO: Setting variable 'init_distributed_lock_timeout' to '300'. Received the value from the variable calculation.
INFO: Setting variable 'init_db_file_multiblock_read_count' to '8'. Received the value from the variable calculation.
INFO: Setting variable 'init_db_block_buffers' to '1000'. Received the value from the variable calculation.
INFO: Setting variable 'build_log_path' to ''. Received the value from the variable calculation.
INFO: Setting variable 'b_promptForGroups' to 'false'. Received the value from the variable calculation.
INFO: Setting variable 'b_orabaseContainsOrahome' to 'true'. Received the value from the variable calculation.
INFO: Setting variable 'b_lowResource' to 'false'. Received the value from the variable calculation.
INFO: Setting variable 'b_launchDBMA' to 'false'. Received the value from the variable calculation.
INFO: Setting variable 'b_javaOptionBeingInstalled' to 'false'. Received the value from the variable calculation.
INFO: Calling Query generalQueries10.2.0.2.0 isCurrentPlatformInGroup
platGroup = WINDOWS
INFO: Query Returned: false
INFO: Setting variable 'b_isWINDOWS' to 'false'. Received the value from the variable calculation.
INFO: Calling Query generalQueries10.2.0.2.0 isCurrentPlatformInGroup
platGroup = UNIX
INFO: Query Returned: true
INFO: Setting variable 'b_isUNIX' to 'true'. Received the value from the variable calculation.
INFO: Setting variable 'b_isDBup' to 'true'. Received the value from the variable calculation.
INFO: Setting variable 'b_giInstall' to 'false'. Received the value from the variable calculation.
INFO: Setting variable 's_xslLocation' to '/u03/HFMDCP/11.2.0/rdbms/xml/xsl'. Received the value from the variable calculation.
INFO: Setting variable 's_verifierDir' to '/u03/HFMDCP/11.2.0/jlib'. Received the value from the variable calculation.
INFO: Setting variable 's_shPath' to '/u03/HFMDCP/11.2.0/demo/schema/sales_history/'. Received the value from the variable calculation.
INFO: Setting variable 's_pmPath' to '/u03/HFMDCP/11.2.0/demo/schema/product_media/'. Received the value from the variable calculation.
INFO: Setting variable 's_oradimlocation' to '/u03/HFMDCP/11.2.0\bin'. Received the value from the variable calculation.
INFO: Setting variable 's_oradbalocation' to '/u03/HFMDCP/11.2.0\Database'. Received the value from the variable calculation.
INFO: Setting variable 's_operGroup' to 'dba'. Received the value from the variable calculation.
INFO: Setting variable 's_oePath' to '/u03/HFMDCP/11.2.0/demo/schema/order_entry/'. Received the value from the variable calculation.
INFO: Setting variable 's_netAPILoc' to '/u03/HFMDCP/11.2.0/jlib'. Received the value from the variable calculation.
INFO: Setting variable 's_mkdirFile' to '/u03/HFMDCP/11.2.0/demo/schema/mk_dir.sql'. Received the value from the variable calculation.
INFO: Setting variable 's_logPath' to '/u03/HFMDCP/11.2.0/demo/schema/log/'. Received the value from the variable calculation.
INFO: Setting variable 's_libDir' to '/u03/HFMDCP/11.2.0/jdbc/lib'. Received the value from the variable calculation.
INFO: Setting variable 's_jlibDir' to '/u03/HFMDCP/11.2.0/rdbms/jlib'. Received the value from the variable calculation.
INFO: Setting variable 's_installLogDir' to '/u03/HFMDCP/11.2.0/install/'. Received the value from the variable calculation.
INFO: Setting variable 's_instMkdirFile' to '/u03/HFMDCP/11.2.0/demo/schema/mk_dir.sql.sbs'. Received the value from the variable calculation.
INFO: Setting variable 's_initmetaSource' to '/u03/HFMDCP/11.2.0/rdbms/install/sbs/initmeta.sbs'. Received the value from the variable calculation.
INFO: Setting variable 's_initmetaDest' to '/u03/HFMDCP/11.2.0/rdbms/admin/initmeta.sql'. Received the value from the variable calculation.
INFO: Setting variable 's_ezLocation' to '/u03/HFMDCP/11.2.0/instantclient'. Received the value from the variable calculation.
INFO: Setting variable 's_dbmssmlSource' to '/u03/HFMDCP/11.2.0/rdbms/install/sbs/dbmssml.sbs'. Received the value from the variable calculation.
INFO: Setting variable 's_dbmssmlDest' to '/u03/HFMDCP/11.2.0/rdbms/admin/dbmssml.sql'. Received the value from the variable calculation.
INFO: Setting variable 's_dbaGroup' to 'dba'. Received the value from the variable calculation.
INFO: Setting variable 's_asmGroup' to ''. Received the value from the variable calculation.
INFO: Setting variable 's_RDBMS81' to '/u03/HFMDCP/11.2.0\RDBMS'. Received the value from the variable calculation.
INFO: Setting variable 'b_isUXW' to 'false'. Received the value from the variable calculation.
INFO: Setting variable 'b_isSolaris' to 'false'. Received the value from the variable calculation.
INFO: Setting variable 'b_isSequent' to 'false'. Received the value from the variable calculation.
INFO: Setting variable 'b_isIntel_Solaris' to 'false'. Received the value from the variable calculation.
INFO: Setting variable 'b_isHPI' to 'false'. Received the value from the variable calculation.
INFO: Setting variable 'b_isHP' to 'false'. Received the value from the variable calculation.
INFO: Setting variable 'b_isDec' to 'false'. Received the value from the variable calculation.
INFO: Setting variable 'b_isDG' to 'false'. Received the value from the variable calculation.
INFO: Setting variable 'b_isAix' to 'false'. Received the value from the variable calculation.
INFO: Setting variable 'sl_processList' to '/u03/HFMDCP/11.2.0/bin/ctxsrv,/u03/HFMDCP/11.2.0/bin/dbsnmp,/u03/HFMDCP/11.2.0/bin/extproc,/u03/HFMDCP/11.2.0/bin/oracle'. Received the value from the variable calculation.
INFO: Setting variable 's_OSDSharelibExt' to '.so'. Received the value from the variable calculation.
INFO: Setting variable 'SO_EXT' to 'so'. Received the value from the variable calculation.
INFO: Setting variable 's_unixConfigFile' to '/u03/HFMDCP/11.2.0/rdbms/lib/config.c'. Received the value from the variable calculation.
INFO: Setting value of child variable s_emailServer of oracle.sysman.console.db 11.2.0.1.0 to
INFO: Setting value of child variable s_emailAddress of oracle.sysman.console.db 11.2.0.1.0 to
INFO: *** Entering Component: oracle.network installation
INFO: Processing Oracle Net Services 11.2.0.1.0
INFO: Processing Oracle Net Services 11.2.0.1.0
INFO: *** Entering Component: oracle.ctx installation
INFO: Processing Oracle Text 11.2.0.1.0
INFO: Processing Oracle Text 11.2.0.1.0
INFO: Setting variable 's_version' to '9.2.0.0.0 Beta'. Received the value from the variable calculation.
INFO: Calling Query generalQueries10.2.0.2.0 getOSName
INFO: Query Returned: Linux
INFO: Setting variable 's_operatingSystem' to 'Linux'. Received the value from the variable calculation.
INFO: Setting variable 's_makeLogFile' to 'make.log'. Received the value from the variable calculation.
INFO: Setting variable 's_OPSSelectedNodes' to ''. Received the value from the variable calculation.
INFO: Calling Query generalQueries10.2.0.2.0 isCurrentPlatformInGroup
platGroup = UNIX
INFO: Query Returned: true
INFO: Setting variable 'b_isUNIX' to 'true'. Received the value from the variable calculation.
INFO: Setting variable 's_installLogDir' to '/u03/HFMDCP/11.2.0/install/'. Received the value from the variable calculation.
INFO: Setting variable 's_OracleHomeKeyWow6432Node' to 'Wow6432Node'. Received the value from the variable calculation.
INFO: Setting variable 'b_isWinX64' to 'false'. Received the value from the variable calculation.
INFO: Setting variable 'sl_processList' to '/u03/HFMDCP/11.2.0/bin/ctxsrv,/u03/HFMDCP/11.2.0/bin/oracle'. Received the value from the variable calculation.
INFO: Setting variable 'oracle_key' to ''. Received the value from the variable calculation.
INFO: Setting variable 's_ctxx_old_location' to '/u03/HFMDCP/11.2.0/ctx/lib/libctxx9.so'. Received the value from the variable calculation.
INFO: Setting variable 's_ctxx_location' to '/u03/HFMDCP/11.2.0/lib/libctxx9.so'. Received the value from the variable calculation.
INFO: Calling Query RunningProcessQuery11.2.0.1.0 getRunningProcess
multiParamName = /u03/HFMDCP/11.2.0/bin/ctxsrv,/u03/HFMDCP/11.2.0/bin/oracle
Thanks,
Kavitha -
Can any one help me to use an Array in oracle.Also i want to search whether an element is already existing in the array
One possible approach
SQL> create or replace type array as table of number;
2 /
Type created.
SQL> select case when count(*) = 1 then 'found' else 'not found' end
2 from dual
3 where exists (
4 select null from table(array(1,2,3,4,5))
5 where column_value = 3);
CASEWHENC
found
SQL> edi
Wrote file afiedt.sql
1 select case when count(*) = 1 then 'found' else 'not found' end
2 from dual
3 where exists (
4 select null from table(array(1,2,3,4,5))
5* where column_value = 1)
SQL> /
CASEWHENC
found
SQL> edi
Wrote file afiedt.sql
1 select case when count(*) = 1 then 'found' else 'not found' end
2 from dual
3 where exists (
4 select null from table(array(1,2,3,4,5))
5* where column_value = 6)
SQL> /
CASEWHENC
not found -
Hello,
I am somewhat new to JNI technology and am getting a bit confused about array processing.
I am developing a C program that is called by a third party application. The third party application expects the C function to have a prototype similar to the following:
int read_content(char *buffer, int length)
It is expecting that I read "length" bytes of data from a device and return it to the caller in the buffer provided. I want to implement the device read operation in Java and return the data back to the C 'stub' so that it, in turn can return the data to the caller. What is the most efficient way to get the data from my Java "read_content" method into the caller's buffer? I am getting somewhat confused by the Get<Type>ArrayElements routines and this concepts of pinning, copying and releasing with the Release<Type>ArrayElements routine. Any advice would be helpful... particularly good advice :)
ThanksIt seems to me that you probably want to call the Java read_content method using JNI and have it return an array of bytes.
Since you already have a C buffer provided, you need to copy the data out of the Java array into this C buffer. GetPrimitiveArrayCritical is probably what you want:
char *myBuf = (char *)((*env)->GetPrimitiveArrayCritical(env, javaDataArray, NULL));
memcpy(buffer, myBuf, length);
(*env)->ReleasePrimitiveArrayCritical(env, javaDataArray, myBuf, JNI_ABORT);Given a Java array of bytes javaDataArray, this will copy length bytes out of it and into the C array named buffer. I used JNI_ABORT as the last argument to ReleasePrimitiveArrayCritical because you do not change the array. But you could pass a 0 there also, there would be no observable difference in the behavior.
Think of it as requesting and releasing a lock on the Java array. When you have no lock, the VM is free to move the array around in memory (and it will do so from time to time). When you use one of the various GetArray functions, this will lock the array so that the VM cannot move it. When you are done with it, you need to release it so the VM can resume normal operations on it. Releasing it also propagates any changes made back to the array. You cannot know whether changes made in native code will be reflected in the Java array until you commit the changes by releasing the array. But since you are not modifying the array, it doesn't make any difference.
What is most important is that you get the array before you read its elements and that you release it when you are done. That's all that you really need to know :} -
Processing oracle relational data with hadoop
hello every body:
i would like if it possible to process oracle relational data with hadoop in order to get better performance
native parallel processing in oracle VS hadoop processing? who is the better?
how can we do it?
thank you at advanceHello,
This is the Oracle NoSQL Database forum. You asked about Oracle Database so you may want to try that forum instead of this one. I suggest that you ask about "In-Database Map/Reduce".
Charles -
Sharing in Symetrics Array an Oracle datawerehouse and oracle database 9i
I
i want to know if someone have an sharing in Symetrics Array an Oracle
datawerehouse and oracle database 9i, or any array for high
availability. This because i have to do implement an installation
datawarehouse and db9i on the same arrary. Just know any comment if
whichever with share with me your expertise from any situation with
this, please.
ThanksThanks for the reply.
Actually I thought that the OCCI forum was for Object oriented OCI, so while I'm using C++, I'm not using the object oriented side of OCI, just using the normal OCI calls. Guess I should have been a little clearer in my original post.
But my main question really concerned the version of the client and the version of the database which you answered.
Thanks,
Nick -
Pass array in Oracle 9i procedure
I would like to pass an array in a procedure. I would like to know how can we use array in Oracle 9i.
I would like to use sp's to insert data from frontend. For this i need an array to pass the values of master and transactions. Is there any other way to do this plz let me know. All suggestions are welcome.This is the Oracle9i Lite forum. Please post your message on teh Oracle9i forum
-
Passing arrays to Oracle Stored procedure.
Have any body passed arrays to Oracle stored procedures while the app is running in Weblogic app server. I am able to pass the arrays with regular JDBC connection. If I run the same piece of code using a connection recieved from the datasource of weblogic server, its not working. I am getting serialization errors with the ArrayDescriptor class. Looks like the ArrayDescriptor is not serializable.
Does anybody know solution/workaround to pass arrays ?
Thanks in advanceyou could write a wrapper class that extends ArrayDescriptor and implements serializable...
for example your class would look something like this.
public class MyArrayDescriptor extends ArrayDescriptor
implements Serializable
in your regular code use the wrapper class in place of the ArrayDescriptor (it will contain all the same methods as the real ArrayDescriptor) and you should be able to toss your wrapper class anywhere you please. -
Passing array to oracle stored procedure in VC++ 2005
Hi,
I am try to send an array of integers to a stored procedure via ODBC 10.2.0.3 on VC++2005 enviornment. I get the below error
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'MYPROC1'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored ... Error Code = 6550
[]E R R O R
The same code works if I use an INSERT statement.
SQLUSMALLINT* rowsProcessed = new SQLUSMALLINT;
RETCODE nRetCode;
const int arraySize = 200;
long ptrVal[arraySize];
long ptrInd[arraySize];
long ptrStatus[arraySize];
for (int i = 0; i < arraySize; i++)
ptrVal = i;
ptrInd = 0;
nRetCode = SQLSetStmtAttr(m_hstmt, SQL_ATTR_PARAM_BIND_TYPE, SQL_PARAM_BIND_BY_COLUMN, 0);
// assign the number of sets of parameters that are to be inserted
nRetCode = SQLSetStmtAttr(m_hstmt, SQL_ATTR_PARAMSET_SIZE, (SQLPOINTER)iSizeOfArray, 0);
// assign an array to retrieve status info for each row of parameter values
nRetCode =SQLSetStmtAttr(m_hstmt, SQL_ATTR_PARAM_STATUS_PTR, (SQLPOINTER)ptrStatus, 0);
// assign a buffer to store the number of sets of parameters that have been processed
nRetCode = SQLSetStmtAttr(m_hstmt, SQL_ATTR_PARAMS_PROCESSED_PTR, (SQLPOINTER)rowsProcessed, 0);
nRetCode = SQLBindParameter(m_hstmt, nParamIndex, nDirection, SQL_C_LONG, SQL_INTEGER, 0, 0, ptrVal, 0, ptrInd);
//suceeds
SQLPrepare(m_hstmt, (SQLCHAR*)"INSERT INTO my_table VALUES (?)", SQL_NTS);
//fails
SQLPrepare(m_hstmt, (SQLCHAR*)"{CALL mypackage.myproc1(?)}", SQL_NTS);
SQLExecute(m_hstmt);
package is
create or replace package mypackage
as
type mytable is table of binary_integer;
procedure myproc1( l_tab in mytable);
end;
show errors
create or replace package body mypackage
as
procedure myproc1( l_tab in mytable)
as
begin
insert into my_table values (100);
commit;
FORALL i IN l_tab.first .. l_tab.last
INSERT into my_table values( l_tab(i) );
end;
end;
any ideas?I believe when you're doing it with an insert, you're saying "execute this insert statement a bunch of times, here's all the values in advance", which is different than passing an array to a stored procedure where you want it to execute once.
Oracle's ODBC driver doesnt support Associative Arrays (aka index-by tables).
Hope it helps,
Greg -
How to configure hw disk array for ORACLE VM SERVER 2.1.1?
ORACLE VM SERVER 2.1.1 ON DISK SATA ARRAY R0. AFTER A INSTALLATION ORACLE VM SERVER DON;T LOAD
No reason to shout, buddy... Turn CAPS LOCK off, please.
Some more information might come in handy also. Like what kind of hardware you're using.
Otherwise it's going to be a shot in the dark.
In the meantime: try some GRUB-parameters to boot from the right device. That's all I can think of right now. -
[Error ORABPEL-10039]: invalid xpath expression - array processing
hi,
I am trying to process multiple xml elements
<assign name="setinsideattributes">
<copy>
<from expression="ora:getElement('Receive_1_Read_InputVariable','BILL','/ns2:BILL/ns2:CMS1500['bpws:getVariableData('iterator')']/ns2:HEADER/ns2:SSN')"/>
<to variable="ssn"/>
</copy>
</assign>
where iterator is a index variable .
I am getting into this error .
Error(48):
[Error ORABPEL-10039]: invalid xpath expression
[Description]: in line 48 of "D:\OraBPELPM_1\integration\jdev\jdev\mywork\may10-workspace\multixm-catch\multixm-catch.bpel", xpath expression "ora:getElement('Receive_1_Read_InputVariable','BILL','/ns2:BILL/ns2:CMS1500['bpws:getVariableData('iterator')']/ns2:HEADER/ns2:SSN')" specified in <from> is not valid, because XPath query syntax error.
Syntax error while parsing xpath expression "ora:getElement('Receive_1_Read_InputVariable','BILL','/ns2:BILL/ns2:CMS1500['bpws:getVariableData('iterator')']/ns2:HEADER/ns2:SSN')", at position "77" the exception is Expected: ).
Please verify the xpath query "ora:getElement('Receive_1_Read_InputVariable','BILL','/ns2:BILL/ns2:CMS1500['bpws:getVariableData('iterator')']/ns2:HEADER/ns2:SSN')" which is defined in BPEL process.
[Potential fix]: Please make sure the expression is valid.
any information on how to fix this .
thanks in advancecheck out this note here
http://clemensblog.blogspot.com/2006/03/bpel-looping-over-arrays-collections.html
hth clemens -
Hi all,
I am a total newbie in ABAP.
I need to process an array in ABAP.
If it was in .NET C#, it will be like this:
String strArr = new String[5] { "A", "B", "C", "D", "E" };
int index = -1;
for (int i=0; i<strArr.length; i++)
if (myData.equals(strArr<i>))
index = i;
break;
Can someone please convert the above code into ABAP?
Urgent. Please help. <REMOVED BY MODERATOR>
THank you.
Edited by: Alvaro Tejada Galindo on Feb 22, 2008 5:37 PMHi,
There is no concept of arrays in ABAP, we use internal tables to hold application data. U can use access internal tables with index.
Read table itab index l_index this is same as u do in case of arrrays a(l_index)
Instead use an Internal table to
populate the values and read them ..
say your Internal table has a field F1 ..
itab-f1 = 10.
append itab.
clear itab.
itab-f1 = 20.
append itab.
clear itab.
itab-f1 = 30.
append itab.
clear itab.
Now internal table has 3 values ...
use loop ... endloop to get the values ..
loop at itab.
write :/ itab-f1.
endloop.
Also you can do this way:
IT IS POSSIBLE TO DECLARE THE ONE -DIMENSIONAL ARRAY IN ABAP BY USING INTERNAL TABLES.
EX.)
DATA: BEGIN OF IT1 OCCURS 10,
VAR1 TYPE I,
END OF IT1.
IT1-VAR1 = 10.
APPEND IT1.
IT1-VAR1 = 20.
APPEND IT1.
IT1-VAR1 = 30.
APPEND IT1.
LOOP AT IT1.
WRITE:/ IT1-VAR1 COLOR 5.
END LOOP.
<REMOVED BY MODERATOR>
Cheers,
Chandra Sekhar.
Edited by: Alvaro Tejada Galindo on Feb 22, 2008 5:38 PM -
How to pass an array in Oracle Procedure
If I have to pass an array as an argument in Oracle Procedure/function. How to do that ??
For example, I have to pass the names of employess and then for these employess I have to do something in Oracle Procedure.
Thanks & Regards,
VinayHi!
Here is an example:
create or replace procedure test
is
type v2_itt is table of varchar2(2000) index by binary_integer;
l_v2 v2_itt;
procedure test2( pi_v2 v2_itt ) is
begin
for i in 1 .. pi_v2.count loop
dbms_output.put_line( pi_v2(i) );
end loop;
end;
begin
l_v2(1) := 'name1';
l_v2(2) := 'name2';
test2( l_v2 );
end;
Regards,
Andrew Velitchko
BrainBench MVP for Developer/2000
http://www.brainbench.com
Maybe you are looking for
-
I don't have Mini Bridge in my Photoshop
So I was making a GIF project and found out that I needed to use Mini Bridge but I don't have it in the tabs on the right side of Photoshop. I tried going to Windows to open it through Extentions but it was greyed out. And I also went to Edit>Prefere
-
when i include stdafx header it says you can not include windows.h as it is already defined. I need to design my plugin with better fonts and styles but these features are limited in windows.h can anme.....??
-
Wireless headset nt connecting:7610
i hav a nokia 7610. i got a nokia wireless headset n95 4 it but d 2 aren't connecting although d headset is compatible wid d model....can any1 help me out... Message Edited by kuhu98pihu on 16-May-2008 04:50 PM
-
Check my web pictures for me please
Hi all Been having trouble loading pics on to my band website ( not iweb but going to buy ilife 08 soon ) I think I may have sorted it but just need someone to check it for me ( click on this link ) http://www.soul7.co.uk/headofsteam4.html and let me
-
Reporting width scale and change group
I have a chart data source for 25 columns and assign to my line chart data source. The chart shows data but only use 50 percent of the chart width. I would like to have my chart extend the full width of the report which is landscape orientation. Are