ORA-06533 during sdo_geor.Mosaic in 11g
I'm trying to mosaic four rasters together. I'm using this call:
sdo_geor.mosaic('MOSAICSOURCE', 'GEORASTER', geor, NULL);
The 4 source rasters are georeferenced, rectified, have the same spatial resolutions and number of bands, and are valid:
SQL> select sdo_geor.getSpatialResolutions(georaster),sdo_geor.getModelSRID(georaster),sdo_geor.isRectified(georaster),sdo_geor.getB
andDimSize(georaster),sdo_geor.validateGeoRaster(georaster) from MOSAICSOURCE;
SDO_GEOR.GETSPATIALRESOLUTIONS(GEORASTER)
SDO_GEOR.GETMODELSRID(GEORASTER)
SDO_GEOR.ISRECTIFIED(GEORASTER)
SDO_GEOR.GETBANDDIMSIZE(GEORASTER)
SDO_GEOR.VALIDATEGEORASTER(GEORASTER)
SDO_NUMBER_ARRAY(.000833333, .000833333)
8192
TRUE
1
TRUE
SDO_NUMBER_ARRAY(.000833333, .000833333)
8192
TRUE
1
TRUE
SDO_NUMBER_ARRAY(.000833333, .000833333)
8192
TRUE
1
TRUE
SDO_NUMBER_ARRAY(.000833333, .000833333)
8192
TRUE
1
TRUE
When displayed in PCI's FreeView app the 4 georasters abutt each other in a square.
The exact error is:
13:30:45 [SELECT - 0 row(s), 0.000 secs] [Error Code: 6533, SQL State: 65000] ORA-06533: Subscript beyond count
ORA-06512: at "MDSYS.SDO_GEOR_INT", line 1082
ORA-06512: at "MDSYS.SDO_GEOR_INT", line 1440
ORA-06512: at "MDSYS.SDO_GEOR", line 1105
ORA-06512: at "GRIM.MOSAIC", line 32 (this is my line of code, above)
I'm using "Oracle Database 11g Release 11.1.0.0.0 - Production".
The metadata for one of the rasters is (the others are similar):
GEORASTER(RASTERTYPE, SPATIALEXTENT(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO
SDO_GEORASTER(20001, SDO_GEOMETRY(2003, 8192, NULL, SDO_ELEM_INFO_ARRAY(1, 1003,
1), SDO_ORDINATE_ARRAY(-104.00042, 40.0004167, -104.00042, 38.9995833, -102.999
58, 38.9995833, -102.99958, 40.0004167, -104.00042, 40.0004167)), 'MOSAICSOURCE_
RDT', 118, XMLTYPE(<georasterMetadata xmlns="http://xmlns.oracle.com/spatial/geo
raster">
<objectInfo>
<rasterType>20001</rasterType>
<isBlank>false</isBlank>
<defaultRed>1</defaultRed>
<defaultGreen>1</defaultGreen>
<defaultBlue>1</defaultBlue>
</objectInfo>
<rasterInfo>
<cellRepresentation>UNDEFINED</cellRepresentation>
<cellDepth>16BIT_S</cellDepth>
<NODATA>-32767</NODATA>
<totalDimensions>2</totalDimensions>
<dimensionSize type="ROW">
<size>1201</size>
</dimensionSize>
<dimensionSize type="COLUMN">
<size>1201</size>
</dimensionSize>
<ULTCoordinate>
<row>0</row>
<column>0</column>
</ULTCoordinate>
<blocking>
<type>NONE</type>
<totalRowBlocks>1</totalRowBlocks>
<totalColumnBlocks>1</totalColumnBlocks>
<rowBlockSize>1201</rowBlockSize>
<columnBlockSize>1201</columnBlockSize>
</blocking>
<interleaving>BIL</interleaving>
<pyramid>
<type>NONE</type>
</pyramid>
<compression>
<type>NONE</type>
</compression>
</rasterInfo>
<spatialReferenceInfo>
<isReferenced>true</isReferenced>
<isRectified>true</isRectified>
<SRID>8192</SRID>
<spatialResolution dimensionType="X">
<resolution>0.000833333333333333</resolution>
</spatialResolution>
<spatialResolution dimensionType="Y">
<resolution>0.000833333333333333</resolution>
</spatialResolution>
<modelCoordinateLocation>UPPERLEFT</modelCoordinateLocation>
<modelType>FunctionalFitting</modelType>
<polynomialModel rowOff="0" columnOff="0" xOff="0" yOff="0" zOff="0" rowScal
e="1" columnScale="1" xScale="1" yScale="1" zScale="1">
<pPolynomial pType="1" nVars="2" order="1" nCoefficients="3">
<polynomialCoefficients>48000.50000000007 0 -1200.000000000001</polynomi
alCoefficients>
</pPolynomial>
<qPolynomial pType="1" nVars="0" order="0" nCoefficients="1">
<polynomialCoefficients>1</polynomialCoefficients>
</qPolynomial>
<rPolynomial pType="1" nVars="2" order="1" nCoefficients="3">
<polynomialCoefficients>124800.5000000004 1200.000000000001 0</polynomia
lCoefficients>
</rPolynomial>
<sPolynomial pType="1" nVars="0" order="0" nCoefficients="1">
<polynomialCoefficients>1</polynomialCoefficients>
</sPolynomial>
</polynomialModel>
</spatialReferenceInfo>
<layerInfo>
<layerDimension>BAND</layerDimension>
<subLayer>
<layerNumber>1</layerNumber>
<layerDimensionOrdinate>0</layerDimensionOrdinate>
<layerID>Not Specified</layerID>
</subLayer>
</layerInfo>
</georasterMetadata>
Any suggestions of where to go from here?
Thanks!
-Bruce Bockius
You're correct, it is 11.1.0.6.0 as shown in the Oracle Installed Products. For some reason my favorite client displays a different version.
-Bruce
Similar Messages
-
Ora-13497 during SDO_GEOR.MOSAIC
we are testing sdo_geor.mosaic on 2 georasters but we get this error:
SQL> DECLARE
2 GR SDO_GEORASTER;
3 BEGIN
4 GR := SDO_GEOR.INIT('MO');
5 SDO_GEOR.MOSAIC('GEORASTER_TABLE', 'GEORASTER', GR, NULL);
6 INSERT INTO MO (GEORASTER) VALUES (GR);
7 COMMIT;
8 END;
9 /
DECLARE
ERROR at line 1:
ORA-13497: unable to determine the owner of MO
ORA-06512: at "MDSYS.SDO_GEOR_INT", line 511
ORA-06512: at "MDSYS.SDO_GEOR_INT", line 1225
ORA-06512: at "MDSYS.SDO_GEOR", line 966
ORA-06512: at line 5
The georasters are valid, the metadata of 1 of them:
<georasterMetadata xmlns="http://xmlns.oracle.com/spatial/georaster">
<objectInfo>
<rasterType>21001</rasterType>
<isBlank>false</isBlank>
<defaultRed>1</defaultRed>
<defaultGreen>2</defaultGreen>
<defaultBlue>3</defaultBlue>
</objectInfo>
<rasterInfo>
<cellRepresentation>UNDEFINED</cellRepresentation>
<cellDepth>8BIT_U</cellDepth>
<totalDimensions>3</totalDimensions>
<dimensionSize type="ROW">
<size>5000</size>
</dimensionSize>
<dimensionSize type="COLUMN">
<size>5000</size>
</dimensionSize>
<dimensionSize type="BAND">
<size>3</size>
</dimensionSize>
<ULTCoordinate>
<row>0</row>
<column>0</column>
</ULTCoordinate>
<blocking>
<type>REGULAR</type>
<totalRowBlocks>20</totalRowBlocks>
<totalColumnBlocks>20</totalColumnBlocks>
<rowBlockSize>256</rowBlockSize>
<columnBlockSize>256</columnBlockSize>
</blocking>
<interleaving>BIP</interleaving>
<pyramid>
<type>NONE</type>
</pyramid>
<compression>
<type>NONE</type>
</compression>
</rasterInfo>
<spatialReferenceInfo>
<isReferenced>true</isReferenced>
<isRectified>true</isRectified>
<SRID>262148</SRID>
<spatialResolution dimensionType="X">
<resolution>0.2</resolution>
</spatialResolution>
<spatialResolution dimensionType="Y">
<resolution>0.2</resolution>
</spatialResolution>
<modelCoordinateLocation>CENTER</modelCoordinateLocation>
<modelType>FunctionalFitting</modelType>
<polynomialModel rowOff="0" columnOff="0" xOff="0" yOff="0" zOff="0" rowScale="1" columnScale="1" xScale="1" yScale="1" zScale="1">
<pPolynomial pType="1" nVars="2" order="1" nCoefficients="3">
<polynomialCoefficients>1469999.5 0 -4.999999999999999</polynomialCoefficients>
</pPolynomial>
<qPolynomial pType="1" nVars="0" order="0" nCoefficients="1">
<polynomialCoefficients>1</polynomialCoefficients>
</qPolynomial>
<rPolynomial pType="1" nVars="2" order="1" nCoefficients="3">
<polynomialCoefficients>-805000.5 4.999999999999999 0</polynomialCoefficients>
</rPolynomial>
<sPolynomial pType="1" nVars="0" order="0" nCoefficients="1">
<polynomialCoefficients>1</polynomialCoefficients>
</sPolynomial>
</polynomialModel>
</spatialReferenceInfo>
<layerInfo>
<layerDimension>BAND</layerDimension>
</layerInfo>
</georasterMetadata>
we are using Oracle Database 10g Enterprise Edition Release 10.2.0.1.0
So, is there any solution?
Thanks in advance,
Michael.
Edited by: user9529492 on Oct 8, 2008 5:26 PMMichael,
1. have you properly created the RDT table, called "MO"? if not yet, please follow section 3.1 of the GeoRaster guide to do it first.
2. In section 3.2 of the GeoRaster guide, "you must register an initialized GeoRaster object in the GeoRaster system views by inserting the GeoRaster object into a GeoRaster table, and do this before you perform any other operations on the GeoRaster object. Any GeoRaster operations that need to manipulate the raster data table raise an exception if the source or target GeoRaster object is not registered." In other words, you need to INSERT your GR into a physical georaster table FIRST, then retrieve it back into your plsql block, then do sdo_geor.mosaic, then update that GR object in the table. For this, please follow the sample code in the sdo_geor.mosaic in chapter 4.
hope this helps,
Jeffrey -
ORA-1093 during Database Recovery in 11g R2
1. PSEUDO Process present in the standby db preventing the switch to recovery mode (initiated by the application)
Excerpt from the alert log
Active process 0 user '' program 'PSEUDO'
Active process 0 user '' program 'PSEUDO'
Active process 0 user '' program 'PSEUDO'
Active process 0 user '' program 'PSEUDO'
Active process 0 user '' program 'PSEUDO'
CLOSE: Active sessions prevent database close operation
CLOSE: Error 1093 during database close
ORA-1093 signalled during: ALTER DATABASE RECOVER standby database ...
2. Active process in the standby db preventing the switch to recovery mode (initiated by the application)
Excerpt from the alert log
CLOSE: Active sessions prevent database close operation
CLOSE: Error 1093 during database close
ORA-1093 signalled during: ALTER DATABASE RECOVER standby database ...
Fri Nov 05 17:25:27 2010
ALTER DATABASE RECOVER standby database
Active process 9467 user 'oracle' program 'oracle@xldn0917dor'
3.Media Recovery halts abruptly on standby (while running in recovery mode) / Media Recovery switches from parallel recovery to single threaded
The Work around for all the 3 Scenarios is to bounce the standby database, and its back to normal functioning.
I have already sent the DB/Server Details for LH Global env's, Pl. review them and let me know if there are any gaps in info.
Pls advice.I made changes as per your suggestion, i am still getting same error.
here is my tns entires
[orawiz@wizapp admin]$ cat tnsnames.ora
# tnsnames.ora Network Configuration File: /wiz_app/wiz/oracle/product/11.2.0/db_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.172.20.236)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = wiz)
WIZ =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.172.20.236)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = wizapp.com)
[orawiz@wizapp admin]$
[orawiz@wizapp admin]$ tnsping wiz
TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 20-FEB-2012 17:23:18
Copyright (c) 1997, 2009, Oracle. All rights reserved.
Used parameter files:
/wiz_app/wiz/oracle/product/11.2.0/db_1/network/admin/sqlnet.ora
TNS-03505: Failed to resolve name
[orawiz@wizapp admin]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 20-FEB-2012 17:23:44
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 20-FEB-2012 17:12:30
Uptime 0 days 0 hr. 11 min. 14 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /wiz_app/wiz/oracle/product/11.2.0/db_1/network/admin/listener.ora
Listener Log File /wiz_app/wiz/oracle/diag/tnslsnr/wizapp/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=wizapp.com)(PORT=1521)))
Services Summary...
Service "wiz" has 2 instance(s).
Instance "wiz", status UNKNOWN, has 1 handler(s) for this service...
Instance "wiz", status READY, has 1 handler(s) for this service...
Service "wizXDB" has 1 instance(s).
Instance "wiz", status READY, has 1 handler(s) for this service...
The command completed successfully
[orawiz@wizapp admin]$ cat -
Sdo_geor.mosaic ends with ORA-06531
I'm using Oracle 11g R1, and try the enhanced mosaic function, but i always get this error.
ORA-06531: Reference to uninitialized collection
The SQL:
DECLARE
gr sdo_georaster;
BEGIN
INSERT INTO LGVHH05 (id, georaster) VALUES (1, sdo_geor.init('LGVHH05_RDT')) RETURNING georaster INTO gr;
sdo_geor.mosaic('LGVHH05_TILE', 'GEORASTER', gr, 'blocksize=(1024,1024,3)');
UPDATE LGVHH05 SET georaster=gr WHERE id=1;
END;
I'm wondering what collection this could be?
The GeoRaster objects are valid and have the same SRID.thanks so far, here is the metadata:
GEORASTER.METADATA
<georasterMetadata xmlns="http://xmlns.oracle.com/spatial/georaster">
<objectInfo>
<rasterType>21001</rasterType>
<isBlank>false</isBlank>
<defaultRed>1</defaultRed>
<defaultGreen>2</defaultGreen>
<defaultBlue>3</defaultBlue>
</objectInfo>
<rasterInfo>
<cellRepresentation>UNDEFINED</cellRepresentation>
<cellDepth>8BIT_U</cellDepth>
<totalDimensions>3</totalDimensions>
<dimensionSize type="ROW">
<size>4001</size>
</dimensionSize>
<dimensionSize type="COLUMN">
<size>4001</size>
</dimensionSize>
<dimensionSize type="BAND">
<size>3</size>
</dimensionSize>
<ULTCoordinate>
<row>0</row>
<column>0</column>
<band>0</band>
</ULTCoordinate>
<blocking>
<type>REGULAR</type>
<totalRowBlocks>16</totalRowBlocks>
<totalColumnBlocks>16</totalColumnBlocks>
<rowBlockSize>256</rowBlockSize>
<columnBlockSize>256</columnBlockSize>
</blocking>
<interleaving>BIP</interleaving>
<pyramid>
<type>NONE</type>
</pyramid>
<compression>
<type>NONE</type>
</compression>
</rasterInfo>
<spatialReferenceInfo>
<isReferenced>true</isReferenced>
<isRectified>true</isRectified>
<SRID>31467</SRID>
<spatialResolution dimensionType="X">
<resolution>0.5</resolution>
</spatialResolution>
<spatialResolution dimensionType="Y">
<resolution>0.5</resolution>
</spatialResolution>
<modelCoordinateLocation>CENTER</modelCoordinateLocation>
<modelType>FunctionalFitting</modelType>
<polynomialModel rowOff="0.0" columnOff="0.0" xOff="0.0" yOff="0.0" zOff="0" rowScale="1.0" columnScale="1.0" xScale="1.0" yScale="1.0" zScale="1.0">
<pPolynomial pType="1" nVars="2" order="1" nCoefficients="3">
<polynomialCoefficients>1.1852E7 0.0 -2.0</polynomialCoefficients>
</pPolynomial>
<qPolynomial pType="1" nVars="0" order="0" nCoefficients="1">
<polynomialCoefficients>1.0</polynomialCoefficients>
</qPolynomial>
<rPolynomial pType="1" nVars="2" order="1" nCoefficients="3">
<polynomialCoefficients>-7104000.0 2.0 0.0</polynomialCoefficients>
</rPolynomial>
<sPolynomial pType="1" nVars="0" order="0" nCoefficients="1">
<polynomialCoefficients>1.0</polynomialCoefficients>
</sPolynomial>
</polynomialModel>
</spatialReferenceInfo>
<layerInfo>
<layerDimension>BAND</layerDimension>
</layerInfo>
</georasterMetadata> -
I have 105 SDO_GEORASTER (1 band) and want to make a mosaic.
On sdo_geor.mosaic(..., I get an ORA-13497: error with no message.
create or replace view mosaic_create_helper as select * from georaster_1423400 r where prin_id = 8859075304;
DECLARE
gr sdo_georaster;
BEGIN
--init mosaic
INSERT INTO MOSAIC_1423400 (id,prin_id,georaster)
VALUES (-15, -15, sdo_geor.init('MOSAIC_DATA_1423400'))
RETURNING georaster INTO gr;
--create mosaic
sdo_geor.mosaic('mosaic_create_helper', 'GEORASTER', gr, 'blocking=TRUE');
--store mosaic
UPDATE MOSAIC_1423400 SET georaster=gr WHERE id=-15;
commit;
END;
On validating the 105 source SDO_GEORASTER
begin
sdo_geor.validateforMosaic('mosaic_create_helper', 'GEORASTER', 'wma_mosaic_validation_result');
end;
I get:
105 rows processed
TRUEAs suggested I modified the type to: 21001
Then I could create a mosaic without errors.
SDO_GEOR.validateGeoRaster -> TRUE
viewing in mapbuilder: does NOT work (with neither type 21001 nor resetted to 20001):
12.03.2010 17:04:56 oracle.sdovis.theme.GeoRasterThemeProducer prepareData
WARNUNG: JGeoRaster.getRasterImage returned null image.
12.03.2010 17:04:56 oracle.sdovis.MapMaker buildDataMBR
WARNUNG: null MBR resulted from buildDataMBR.
<georasterMetadata xmlns="http://xmlns.oracle.com/spatial/georaster">
<objectInfo>
<rasterType>20001</rasterType>
<isBlank>false</isBlank>
<defaultRed>1</defaultRed>
<defaultGreen>1</defaultGreen>
<defaultBlue>1</defaultBlue>
</objectInfo>
<rasterInfo>
<cellRepresentation>UNDEFINED</cellRepresentation>
<cellDepth>8BIT_U</cellDepth>
<totalDimensions>2</totalDimensions>
<dimensionSize type="ROW">
<size>125000</size>
</dimensionSize>
<dimensionSize type="COLUMN">
<size>187500</size>
</dimensionSize>
<ULTCoordinate>
<row>0</row>
<column>-62500</column>
<band>0</band>
</ULTCoordinate>
<blocking>
<type>REGULAR</type>
<totalRowBlocks>245</totalRowBlocks>
<totalColumnBlocks>367</totalColumnBlocks>
<rowBlockSize>512</rowBlockSize>
<columnBlockSize>512</columnBlockSize>
</blocking>
<interleaving>BIP</interleaving>
<pyramid>
<type>DECREASE</type>
<resampling>BILINEAR</resampling>
<maxLevel>10</maxLevel>
</pyramid>
<compression>
<type>NONE</type>
</compression>
</rasterInfo>
<spatialReferenceInfo>
<isReferenced>true</isReferenced>
<SRID>1423400</SRID>
<modelCoordinateLocation>UPPERLEFT</modelCoordinateLocation>
<modelType>FunctionalFitting</modelType>
<polynomialModel rowOff="0" columnOff="0" xOff="0" yOff="0" zOff="0" rowScale="1" columnScale="1" xScale="1" yScale="1" zScale="1">
<pPolynomial pType="1" nVars="2" order="1" nCoefficients="3">
<polynomialCoefficients>1775000 0 -5</polynomialCoefficients>
</pPolynomial>
<qPolynomial pType="1" nVars="0" order="0" nCoefficients="1">
<polynomialCoefficients>1</polynomialCoefficients>
</qPolynomial>
<rPolynomial pType="1" nVars="2" order="1" nCoefficients="3">
<polynomialCoefficients>-0 5 0</polynomialCoefficients>
</rPolynomial>
<sPolynomial pType="1" nVars="0" order="0" nCoefficients="1">
<polynomialCoefficients>1</polynomialCoefficients>
</sPolynomial>
</polynomialModel>
</spatialReferenceInfo>
<layerInfo>
<layerDimension>BAND</layerDimension>
<subLayer>
<layerNumber>1</layerNumber>
<layerDimensionOrdinate>0</layerDimensionOrdinate>
<layerID>1</layerID>
<colorMap>
<colors>
<cell value="0" blue="255" red="255" green="255" alpha="255"/>
<cell value="1" blue="0" red="0" green="0" alpha="255"/>
<cell value="2" blue="0" red="255" green="0" alpha="255"/>
<cell value="3" blue="0" red="0" green="255" alpha="255"/>
<cell value="4" blue="255" red="255" green="255" alpha="255"/>
<cell value="5" blue="0" red="0" green="0" alpha="255"/>
<cell value="6" blue="0" red="255" green="0" alpha="255"/>
<cell value="7" blue="0" red="0" green="255" alpha="255"/>
<cell value="8" blue="255" red="255" green="255" alpha="255"/>
<cell value="9" blue="0" red="0" green="0" alpha="255"/>
<cell value="10" blue="0" red="255" green="0" alpha="255"/>
<cell value="11" blue="0" red="0" green="255" alpha="255"/>
<cell value="12" blue="255" red="255" green="255" alpha="255"/>
<cell value="13" blue="0" red="0" green="0" alpha="255"/>
<cell value="14" blue="0" red="255" green="0" alpha="255"/>
<cell value="15" blue="0" red="0" green="255" alpha="255"/>
<cell value="16" blue="255" red="255" green="255" alpha="255"/>
<cell value="17" blue="0" red="0" green="0" alpha="255"/>
<cell value="18" blue="0" red="255" green="0" alpha="255"/>
<cell value="19" blue="0" red="0" green="255" alpha="255"/>
<cell value="20" blue="255" red="255" green="255" alpha="255"/>
<cell value="21" blue="0" red="0" green="0" alpha="255"/>
<cell value="22" blue="0" red="255" green="0" alpha="255"/>
<cell value="23" blue="0" red="0" green="255" alpha="255"/>
<cell value="24" blue="255" red="255" green="255" alpha="255"/>
<cell value="25" blue="0" red="0" green="0" alpha="255"/>
<cell value="26" blue="0" red="255" green="0" alpha="255"/>
<cell value="27" blue="0" red="0" green="255" alpha="255"/>
<cell value="28" blue="255" red="255" green="255" alpha="255"/>
<cell value="29" blue="0" red="0" green="0" alpha="255"/>
<cell value="30" blue="0" red="255" green="0" alpha="255"/>
<cell value="31" blue="0" red="0" green="255" alpha="255"/>
<cell value="32" blue="255" red="255" green="255" alpha="255"/>
<cell value="33" blue="0" red="0" green="0" alpha="255"/>
<cell value="34" blue="0" red="255" green="0" alpha="255"/>
<cell value="35" blue="0" red="0" green="255" alpha="255"/>
<cell value="36" blue="255" red="255" green="255" alpha="255"/>
<cell value="37" blue="0" red="0" green="0" alpha="255"/>
<cell value="38" blue="0" red="255" green="0" alpha="255"/>
<cell value="39" blue="0" red="0" green="255" alpha="255"/>
<cell value="40" blue="255" red="255" green="255" alpha="255"/>
<cell value="41" blue="0" red="0" green="0" alpha="255"/>
<cell value="42" blue="0" red="255" green="0" alpha="255"/>
<cell value="43" blue="0" red="0" green="255" alpha="255"/>
<cell value="44" blue="255" red="255" green="255" alpha="255"/>
<cell value="45" blue="0" red="0" green="0" alpha="255"/>
<cell value="46" blue="0" red="255" green="0" alpha="255"/>
<cell value="47" blue="0" red="0" green="255" alpha="255"/>
<cell value="48" blue="255" red="255" green="255" alpha="255"/>
<cell value="49" blue="0" red="0" green="0" alpha="255"/>
<cell value="50" blue="0" red="255" green="0" alpha="255"/>
<cell value="51" blue="0" red="0" green="255" alpha="255"/>
<cell value="52" blue="255" red="255" green="255" alpha="255"/>
<cell value="53" blue="0" red="0" green="0" alpha="255"/>
<cell value="54" blue="0" red="255" green="0" alpha="255"/>
<cell value="55" blue="0" red="0" green="255" alpha="255"/>
<cell value="56" blue="255" red="255" green="255" alpha="255"/>
<cell value="57" blue="0" red="0" green="0" alpha="255"/>
<cell value="58" blue="0" red="255" green="0" alpha="255"/>
<cell value="59" blue="0" red="0" green="255" alpha="255"/>
<cell value="60" blue="255" red="255" green="255" alpha="255"/>
<cell value="61" blue="0" red="0" green="0" alpha="255"/>
<cell value="62" blue="0" red="255" green="0" alpha="255"/>
<cell value="63" blue="0" red="0" green="255" alpha="255"/>
<cell value="64" blue="255" red="255" green="255" alpha="255"/>
<cell value="65" blue="0" red="0" green="0" alpha="255"/>
<cell value="66" blue="0" red="255" green="0" alpha="255"/>
<cell value="67" blue="0" red="0" green="255" alpha="255"/>
<cell value="68" blue="255" red="255" green="255" alpha="255"/>
<cell value="69" blue="0" red="0" green="0" alpha="255"/>
<cell value="70" blue="0" red="255" green="0" alpha="255"/>
<cell value="71" blue="0" red="0" green="255" alpha="255"/>
<cell value="72" blue="255" red="255" green="255" alpha="255"/>
<cell value="73" blue="0" red="0" green="0" alpha="255"/>
<cell value="74" blue="0" red="255" green="0" alpha="255"/>
<cell value="75" blue="0" red="0" green="255" alpha="255"/>
<cell value="76" blue="255" red="255" green="255" alpha="255"/>
<cell value="77" blue="0" red="0" green="0" alpha="255"/>
<cell value="78" blue="0" red="255" green="0" alpha="255"/>
<cell value="79" blue="0" red="0" green="255" alpha="255"/>
<cell value="80" blue="255" red="255" green="255" alpha="255"/>
<cell value="81" blue="0" red="0" green="0" alpha="255"/>
<cell value="82" blue="0" red="255" green="0" alpha="255"/>
<cell value="83" blue="0" red="0" green="255" alpha="255"/>
<cell value="84" blue="255" red="255" green="255" alpha="255"/>
<cell value="85" blue="0" red="0" green="0" alpha="255"/>
<cell value="86" blue="0" red="255" green="0" alpha="255"/>
<cell value="87" blue="0" red="0" green="255" alpha="255"/>
<cell value="88" blue="255" red="255" green="255" alpha="255"/>
<cell value="89" blue="0" red="0" green="0" alpha="255"/>
<cell value="90" blue="0" red="255" green="0" alpha="255"/>
<cell value="91" blue="0" red="0" green="255" alpha="255"/>
<cell value="92" blue="255" red="255" green="255" alpha="255"/>
<cell value="93" blue="0" red="0" green="0" alpha="255"/>
<cell value="94" blue="0" red="255" green="0" alpha="255"/>
<cell value="95" blue="0" red="0" green="255" alpha="255"/>
<cell value="96" blue="255" red="255" green="255" alpha="255"/>
<cell value="97" blue="0" red="0" green="0" alpha="255"/>
<cell value="98" blue="0" red="255" green="0" alpha="255"/>
<cell value="99" blue="0" red="0" green="255" alpha="255"/>
<cell value="100" blue="255" red="255" green="255" alpha="255"/>
<cell value="101" blue="0" red="0" green="0" alpha="255"/>
<cell value="102" blue="0" red="255" green="0" alpha="255"/>
<cell value="103" blue="0" red="0" green="255" alpha="255"/>
<cell value="104" blue="255" red="255" green="255" alpha="255"/>
<cell value="105" blue="0" red="0" green="0" alpha="255"/>
<cell value="106" blue="0" red="255" green="0" alpha="255"/>
<cell value="107" blue="0" red="0" green="255" alpha="255"/>
<cell value="108" blue="255" red="255" green="255" alpha="255"/>
<cell value="109" blue="0" red="0" green="0" alpha="255"/>
<cell value="110" blue="0" red="255" green="0" alpha="255"/>
<cell value="111" blue="0" red="0" green="255" alpha="255"/>
<cell value="112" blue="255" red="255" green="255" alpha="255"/>
<cell value="113" blue="0" red="0" green="0" alpha="255"/>
<cell value="114" blue="0" red="255" green="0" alpha="255"/>
<cell value="115" blue="0" red="0" green="255" alpha="255"/>
<cell value="116" blue="255" red="255" green="255" alpha="255"/>
<cell value="117" blue="0" red="0" green="0" alpha="255"/>
<cell value="118" blue="0" red="255" green="0" alpha="255"/>
<cell value="119" blue="0" red="0" green="255" alpha="255"/>
<cell value="120" blue="255" red="255" green="255" alpha="255"/>
<cell value="121" blue="0" red="0" green="0" alpha="255"/>
<cell value="122" blue="0" red="255" green="0" alpha="255"/>
<cell value="123" blue="0" red="0" green="255" alpha="255"/>
<cell value="124" blue="255" red="255" green="255" alpha="255"/>
<cell value="125" blue="0" red="0" green="0" alpha="255"/>
<cell value="126" blue="0" red="255" green="0" alpha="255"/>
<cell value="127" blue="0" red="0" green="255" alpha="255"/>
<cell value="128" blue="255" red="255" green="255" alpha="255"/>
<cell value="129" blue="0" red="0" green="0" alpha="255"/>
<cell value="130" blue="0" red="255" green="0" alpha="255"/>
<cell value="131" blue="0" red="0" green="255" alpha="255"/>
<cell value="132" blue="255" red="255" green="255" alpha="255"/>
<cell value="133" blue="0" red="0" green="0" alpha="255"/>
<cell value="134" blue="0" red="255" green="0" alpha="255"/>
<cell value="135" blue="0" red="0" green="255" alpha="255"/>
<cell value="136" blue="255" red="255" green="255" alpha="255"/>
<cell value="137" blue="0" red="0" green="0" alpha="255"/>
<cell value="138" blue="0" red="255" green="0" alpha="255"/>
<cell value="139" blue="0" red="0" green="255" alpha="255"/>
<cell value="140" blue="255" red="255" green="255" alpha="255"/>
<cell value="141" blue="0" red="0" green="0" alpha="255"/>
<cell value="142" blue="0" red="255" green="0" alpha="255"/>
<cell value="143" blue="0" red="0" green="255" alpha="255"/>
<cell value="144" blue="255" red="255" green="255" alpha="255"/>
<cell value="145" blue="0" red="0" green="0" alpha="255"/>
<cell value="146" blue="0" red="255" green="0" alpha="255"/>
<cell value="147" blue="0" red="0" green="255" alpha="255"/>
<cell value="148" blue="255" red="255" green="255" alpha="255"/>
<cell value="149" blue="0" red="0" green="0" alpha="255"/>
<cell value="150" blue="0" red="255" green="0" alpha="255"/>
<cell value="151" blue="0" red="0" green="255" alpha="255"/>
<cell value="152" blue="255" red="255" green="255" alpha="255"/>
<cell value="153" blue="0" red="0" green="0" alpha="255"/>
<cell value="154" blue="0" red="255" green="0" alpha="255"/>
<cell value="155" blue="0" red="0" green="255" alpha="255"/>
<cell value="156" blue="255" red="255" green="255" alpha="255"/>
<cell value="157" blue="0" red="0" green="0" alpha="255"/>
<cell value="158" blue="0" red="255" green="0" alpha="255"/>
<cell value="159" blue="0" red="0" green="255" alpha="255"/>
<cell value="160" blue="255" red="255" green="255" alpha="255"/>
<cell value="161" blue="0" red="0" green="0" alpha="255"/>
<cell value="162" blue="0" red="255" green="0" alpha="255"/>
<cell value="163" blue="0" red="0" green="255" alpha="255"/>
<cell value="164" blue="255" red="255" green="255" alpha="255"/>
<cell value="165" blue="0" red="0" green="0" alpha="255"/>
<cell value="166" blue="0" red="255" green="0" alpha="255"/>
<cell value="167" blue="0" red="0" green="255" alpha="255"/>
<cell value="168" blue="255" red="255" green="255" alpha="255"/>
<cell value="169" blue="0" red="0" green="0" alpha="255"/>
<cell value="170" blue="0" red="255" green="0" alpha="255"/>
<cell value="171" blue="0" red="0" green="255" alpha="255"/>
<cell value="172" blue="255" red="255" green="255" alpha="255"/>
<cell value="173" blue="0" red="0" green="0" alpha="255"/>
<cell value="174" blue="0" red="255" green="0" alpha="255"/>
<cell value="175" blue="0" red="0" green="255" alpha="255"/>
<cell value="176" blue="255" red="255" green="255" alpha="255"/>
<cell value="177" blue="0" red="0" green="0" alpha="255"/>
<cell value="178" blue="0" red="255" green="0" alpha="255"/>
<cell value="179" blue="0" red="0" green="255" alpha="255"/>
<cell value="180" blue="255" red="255" green="255" alpha="255"/>
<cell value="181" blue="0" red="0" green="0" alpha="255"/>
<cell value="182" blue="0" red="255" green="0" alpha="255"/>
<cell value="183" blue="0" red="0" green="255" alpha="255"/>
<cell value="184" blue="255" red="255" green="255" alpha="255"/>
<cell value="185" blue="0" red="0" green="0" alpha="255"/>
<cell value="186" blue="0" red="255" green="0" alpha="255"/>
<cell value="187" blue="0" red="0" green="255" alpha="255"/>
<cell value="188" blue="255" red="255" green="255" alpha="255"/>
<cell value="189" blue="0" red="0" green="0" alpha="255"/>
<cell value="190" blue="0" red="255" green="0" alpha="255"/>
<cell value="191" blue="0" red="0" green="255" alpha="255"/>
<cell value="192" blue="255" red="255" green="255" alpha="255"/>
<cell value="193" blue="0" red="0" green="0" alpha="255"/>
<cell value="194" blue="0" red="255" green="0" alpha="255"/>
<cell value="195" blue="0" red="0" green="255" alpha="255"/>
<cell value="196" blue="255" red="255" green="255" alpha="255"/>
<cell value="197" blue="0" red="0" green="0" alpha="255"/>
<cell value="198" blue="0" red="255" green="0" alpha="255"/>
<cell value="199" blue="0" red="0" green="255" alpha="255"/>
<cell value="200" blue="255" red="255" green="255" alpha="255"/>
<cell value="201" blue="0" red="0" green="0" alpha="255"/>
<cell value="202" blue="0" red="255" green="0" alpha="255"/>
<cell value="203" blue="0" red="0" green="255" alpha="255"/>
<cell value="204" blue="255" red="255" green="255" alpha="255"/>
<cell value="205" blue="0" red="0" green="0" alpha="255"/>
<cell value="206" blue="0" red="255" green="0" alpha="255"/>
<cell value="207" blue="0" red="0" green="255" alpha="255"/>
<cell value="208" blue="255" red="255" green="255" alpha="255"/>
<cell value="209" blue="0" red="0" green="0" alpha="255"/>
<cell value="210" blue="0" red="255" green="0" alpha="255"/>
<cell value="211" blue="0" red="0" green="255" alpha="255"/>
<cell value="212" blue="255" red="255" green="255" alpha="255"/>
<cell value="213" blue="0" red="0" green="0" alpha="255"/>
<cell value="214" blue="0" red="255" green="0" alpha="255"/>
<cell value="215" blue="0" red="0" green="255" alpha="255"/>
<cell value="216" blue="255" red="255" green="255" alpha="255"/>
<cell value="217" blue="0" red="0" green="0" alpha="255"/>
<cell value="218" blue="0" red="255" green="0" alpha="255"/>
<cell value="219" blue="0" red="0" green="255" alpha="255"/>
<cell value="220" blue="255" red="255" green="255" alpha="255"/>
<cell value="221" blue="0" red="0" green="0" alpha="255"/>
<cell value="222" blue="0" red="255" green="0" alpha="255"/>
<cell value="223" blue="0" red="0" green="255" alpha="255"/>
<cell value="224" blue="255" red="255" green="255" alpha="255"/>
<cell value="225" blue="0" red="0" green="0" alpha="255"/>
<cell value="226" blue="0" red="255" green="0" alpha="255"/>
<cell value="227" blue="0" red="0" green="255" alpha="255"/>
<cell value="228" blue="255" red="255" green="255" alpha="255"/>
<cell value="229" blue="0" red="0" green="0" alpha="255"/>
<cell value="230" blue="0" red="255" green="0" alpha="255"/>
<cell value="231" blue="0" red="0" green="255" alpha="255"/>
<cell value="232" blue="255" red="255" green="255" alpha="255"/>
<cell value="233" blue="0" red="0" green="0" alpha="255"/>
<cell value="234" blue="0" red="255" green="0" alpha="255"/>
<cell value="235" blue="0" red="0" green="255" alpha="255"/>
<cell value="236" blue="255" red="255" green="255" alpha="255"/>
<cell value="237" blue="0" red="0" green="0" alpha="255"/>
<cell value="238" blue="0" red="255" green="0" alpha="255"/>
<cell value="239" blue="0" red="0" green="255" alpha="255"/>
<cell value="240" blue="255" red="255" green="255" alpha="255"/>
<cell value="241" blue="0" red="0" green="0" alpha="255"/>
<cell value="242" blue="0" red="255" green="0" alpha="255"/>
<cell value="243" blue="0" red="0" green="255" alpha="255"/>
<cell value="244" blue="255" red="255" green="255" alpha="255"/>
<cell value="245" blue="0" red="0" green="0" alpha="255"/>
<cell value="246" blue="0" red="255" green="0" alpha="255"/>
<cell value="247" blue="0" red="0" green="255" alpha="255"/>
<cell value="248" blue="255" red="255" green="255" alpha="255"/>
<cell value="249" blue="0" red="0" green="0" alpha="255"/>
<cell value="250" blue="0" red="255" green="0" alpha="255"/>
<cell value="251" blue="0" red="0" green="255" alpha="255"/>
<cell value="252" blue="255" red="255" green="255" alpha="255"/>
<cell value="253" blue="0" red="0" green="0" alpha="255"/>
<cell value="254" blue="0" red="255" green="0" alpha="255"/>
<cell value="255" blue="0" red="0" green="255" alpha="255"/>
</colors>
</colorMap>
</subLayer>
</layerInfo>
</georasterMetadata> -
SDO_GEOR.mosaic() little question
Hi, I'm using SDO_GEOR.mosaic() to create only one georaster object but I've a littel problem.
DECLARE
gr sdo_georaster;
BEGIN
INSERT INTO georaster_table (georid, georaster)
VALUES (10, sdo_geor.init('rdt_1'))
RETURNING georaster INTO gr;
SDO_GEOR.mosaic('georaster_table', 'georaster', gr, 'blocksize=(512, 512, 3)');
UPDATE cartine SET georaster=gr WHERE georid=10;
commit;
END;
I've this output if I create a blank raster into the georaster_table:
ERROR at line 1:
ORA-00001: unique constraint (OASIDBA.SYS_C0050441) violated
ORA-06512: at line 4
and if I don't create a blank georaster:
ERROR at line 1:
ORA-13419: cannot perform mosaick operation on the specified table column
ORA-06512: at "MDSYS.MD", line 1723
ORA-06512: at "MDSYS.MDERR", line 8
ORA-06512: at "MDSYS.SDO_GEOR", line 968
ORA-06512: at line 7
what muss I do? Create the blank georaster or not? ThanksHow about creating a new empty georaster table and insert the mosaic into it?
Also:
============================================================
DECLARE
gr sdo_georaster;
BEGIN
INSERT INTO georaster_table (georid, georaster)
VALUES (10, sdo_geor.init('rdt_1'))
RETURNING georaster INTO gr;
SDO_GEOR.mosaic('georaster_table', 'georaster', gr, 'blocksize=(512, 512, 3)');
UPDATE cartine SET georaster=gr WHERE georid=10;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
which table are you working on? georaster_table or cartine?
commit;
END;
============================================================
Message was edited by:
modeler -
Restrictions for sdo_geor.mosaic
Hi All
i have a set of georeferenced images which are ready to be mosaiced , in the sense that there is no overlap or gap in between the images. Spatial Index is also created on the table . But still i get error when i do a sdo_geor.mosaic.
ORA-13419 cannot perform mosaick operation on the specified table column
All the images have the same resolution, same number of bands . is there any other restriction for the images to be mosaiced.
i have put the coverage of images on following url
http://www.geocities.com/jaleelahmed/coverage.html
each red block is one image (one row in my georaster table)
Any advice is appreciated.
Thanks
AbAb,
The beta1 of the next release will be avaialbale in this fall. There is no officially fixed date for the next release yet. The new mosaic would be able to automatically handle this case as long as there is no overlapping. The mosaic object would be sort of sparse so that the missing image tiles would not consume any disk space.
Still, I think your project is doable using the 10g mosaic as long as the images meet the requirements outlined under the Usage Notes of SDO_GEOR.mosaic in chapter 4 of the GeoRaster manual.
To make sure you can move forward, one more question:
are those images rectified and projected into the same projection?
If so, you should be able to do the mosaic without problem.
I would recommend you divide and conquer, i.e., split the whole mosaic into several smaller mosaics (sub-areas, such as northeastern area, northwestern area, etc.) first, mosaick them separately, then mosaick these smaller mosaics into the big one as you desire.
Please note that, for the missing tiles, you will have to make-up them. But it's relatively easy:
1. call sdo_geor.createBlank with a single cell value such as zero and proper image dimentions sizes. (those blank georaster objects will not store the pixels in RDT and so will not consume space. For the definition of BLANK GeoRaster object please read chapter one of the GeoRaster manual)
2. georeference each of the blank objects properly so that they are aligned/co-located with your images correctly. (this is the place where you need much time and shall be very careful so that the blank images are georeferenced correctly and meet the requirements of sdo_geor.mosaic)
Simply for mosaic process, you have an alternative. you actually don't have to geo-spatially georeference each image by leveraging the ULT coordinate feature of GeoRaster. On other words, remove georeferencing info first, then call setULTCoordinate to reset all ULT coordinates of the images so that they are spatially properly located in the GeoRaster cell space. Then do mosaic. After mosaick, you re-georeference the mosaic image by calling sdo_geor.georeference.
Let us know if you have any problem. This project is very interesting and shall be doable.
Regards,
Jeffrey Xie -
ORA-39126 during an export of a partition via dbms_datapump
Hi ,
i did export using datapump in command line everything went fine but while exporting via dbms_datapump i got this:
ORA-39126 during an export of a partition via dbms_datapump
ORA-00920
'SELECT FROM DUAL WHERE :1' P20060401
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
ORA-06512: at "SYS.KUPW$WORKER", line 6228
the procedure is:
PROCEDURE pr_depura_bitacora
IS
l_job_handle NUMBER;
l_job_state VARCHAR2(30);
l_partition VARCHAR2(30);
v_sql VARCHAR2(2000);
BEGIN
-- Create a user-named Data Pump job to do a "table:partition-level" export
-- Local
select 'P'|| to_char((select min(STP_LOG_DATE) from SAI_AUDITBITACORA),'YYYYMM')||'01'
into l_partition
from user_tab_partitions
where table_name = 'SAI_AUDITBITACORA'
and rownum = 1;
l_partition := rtrim (l_partition,' ');
l_job_handle:= DBMS_DATAPUMP.OPEN
operation=>'EXPORT',
job_mode =>'TABLE',
job_name =>'EXPORT_ORACLENSSA'
-- Schema filter
DBMS_DATAPUMP.METADATA_FILTER
handle => l_job_handle,
name => 'SCHEMA_EXPR',
value => 'IN (''ORACLENSSA'')'
DBMS_OUTPUT.PUT_LINE('Added filter for schema list');
-- Table filter
DBMS_DATAPUMP.METADATA_FILTER
handle => l_job_handle,
name => 'NAME_EXPR',
value => '=''SAI_AUDITBITACORA'''
DBMS_OUTPUT.PUT_LINE('Added filter for table expression');
-- Partition filter
DBMS_DATAPUMP.DATA_FILTER
handle => l_job_handle,
name => 'PARTITION_EXPR',
value => l_partition,
table_name => 'SAI_AUDITBITACORA'
DBMS_OUTPUT.PUT_LINE('Partition filter for schema list');
DBMS_DATAPUMP.ADD_FILE
handle => l_job_handle,
filename => 'EXP'||l_partition||'.DMP',
directory => 'EXP_DATA_PUMP',
filetype => 1
DBMS_DATAPUMP.ADD_FILE
handle => l_job_handle,
filename => 'EXP'||l_partition||'.LOG',
directory => 'EXP_DATA_PUMP',
filetype => 3
DBMS_DATAPUMP.START_JOB
handle => l_job_handle,
skip_current => 0
DBMS_DATAPUMP.WAIT_FOR_JOB
handle => l_job_handle,
job_state => l_job_state
DBMS_OUTPUT.PUT_LINE('Job completed - job state = '||l_job_state);
DBMS_DATAPUMP.DETACH(handle=>l_job_handle);
END;
I've already drop and recreate the directory, granted read, write to public and to user, grant create session, create table, create procedure, exp_full_database to user, restart the database and the listener with the var LD_LIBRARY pointing first to $ORACLE_HOME/lib, and add more space to temporary tablespace.The basic problem is:
Error: ORA 920
Text: invalid relational operator
Cause: A search condition was entered with an invalid or missing relational
operator.
Action: Include a valid relational operator such as =, !=, ^=, <>, >, <, >=, <=
, ALL, ANY, [NOT] BETWEEN, EXISTS, [NOT] IN, IS [NOT] NULL, or [NOT]
LIKE in the condition.
Obviously this refers to the invalid statement 'SELECT FROM DUAL ...'. I also recommend, you should contact Oracle Support, because it happens inside an Oracle provided package.
Werner -
Hi all,
Need some help from all out there
In our Sun Cluster 3.1 Data Service for Oracle RAC 9.2.0.7 (Solaris 9) configuration, my team had encountered
ora-29701 *Unable to connect to Cluster Manager*
during the startup of the Oracle RAC database instances on the Oracle RAC Server resources.
We tried the attached workaround by Oracle. This workaround works well for the 1^st time but it doesnt work anymore when the server is rebooted.
Kindly help me to check whether anyone encounter the same problem as the above and able to resolve. Thanks.
Bug No. 4262155
Filed 25-MAR-2005 Updated 11-APR-2005
Product Oracle Server - Enterprise Edition Product Version 9.2.0.6.0
Platform Linux x86
Platform Version 2.4.21-9.0.1
Database Version 9.2.0.6.0
Affects Platforms Port-Specific
Severity Severe Loss of Service
Status Not a Bug. To Filer
Base Bug N/A
Fixed in Product Version No Data
Problem statement:
ORA-29701 DURING DATABASE CREATION AFTER APPLYING 9.2.0.6 PATCHSET
*** 03/25/05 07:32 am ***
TAR:
PROBLEM:
Customer applied 9.2.0.6 patchset over 9.2.0.4 patchset.
While creating the database, customer receives following error:
ORA-29701: unable to connect to Cluster Manager
However, if customer goes from 9.2.0.4 -> 9.2.0.5 -> 9.2.0.6, the problem does not occur.
DIAGNOSTIC ANALYSIS:
It seems that the problem is with libskgxn9.so shared library.
For 9.2.0.4 -> 9.2.0.5 -> 9.2.0.6, the install log shows the following:
installActions2005-03-22_03-44-42PM.log:,
[libskgxn9.so->%ORACLE_HOME%/lib/libskgxn9.so 7933 plats=1=>[46]langs=1=> en,fr,ar,bn,pt_BR,bg,fr_CA,ca,hr,cs,da,nl,ar_EG,en_GB,et,fi,de,el,iw,hu,is,in, it,ja,ko,es,lv,lt,ms,es_MX,no,pl,pt,ro,ru,zh_CN,sk,sl,es_ES,sv,th,zh_TW, tr,uk,vi]]
installActions2005-03-22_04-13-03PM.log:, [libcmdll.so ->%ORACLE_HOME%/lib/libskgxn9.so 64274 plats=1=>[46] langs=-554696704=>[en]]
For 9.2.0.4 -> 9.2.0.6, install log shows:
installActions2005-03-22_04-13-03PM.log:, [libcmdll.so ->%ORACLE_HOME%/lib/libskgxn9.so 64274 plats=1=>[46] langs=-554696704=>[en]] does not exist.
This means that while patching from 9.2.0.4 -> 9.2.0.5, Installer copies the libcmdll.so library into libskgxn9.so, while patching from 9.2.0.4 -> 9.2.0.6 does not.
ORACM is located in /app/oracle/ORACM which is different than ORACLE_HOME in customer's environment.
WORKAROUND:
Customer is using the following workaround:
cd $ORACLE_HOME/rdbms/lib make -f ins_rdbms.mk rac_on ioracle ipc_udp
RELATED BUGS:
Bug 4169291Check if following MOS note helps.
Series of ORA-7445 Errors After Applying 9.2.0.7.0 Patchset to 9.2.0.6.0 Database (Doc ID 373375.1) -
ORA-06533: Subscript beyond count.
Hi ,
I am getting an error ORA-06533: Subscript beyond count.
I read a few post and tried extending the collections as suggested in various post but it doesnt seem to be helping.
Can anyone suggest where i am going wrong. below is my piece of code.
PROCEDURE validate_records ( p_retcode OUT VARCHAR2
, p_errbuf OUT VARCHAR2
IS
g_ret_success CONSTANT VARCHAR2(1) := '0';
g_ret_exception CONSTANT VARCHAR2(1) := '2';
g_procedure VARCHAR2(30) := g_validate_rec;
l_batch_name ra_batch_sources_all.name%TYPE;
l_supplier_payee_code hz_cust_accounts_all.cust_account_id%TYPE;
l_supplier_code hz_cust_accounts_all.cust_account_id%TYPE;
l_term_name ra_terms.name%TYPE;
l_term ra_terms.name%TYPE;
l_receipt_method fnd_lookup_values.meaning%TYPE;
l_func_seg fnd_flex_values_vl.attribute1%TYPE;
l_tax_inc_flag fnd_flex_values_vl.attribute3%TYPE;
l_set_of_books_id gl_ledgers.ledger_id%TYPE;
l_cust_bill_to_add_ref hz_cust_acct_sites.orig_system_reference%TYPE;
l_cust_ship_to_add_ref hz_cust_acct_sites.orig_system_reference%TYPE;
l_costcenter fnd_flex_values_vl.attribute1%TYPE;
l_company fnd_flex_values_vl.attribute2%TYPE;
l_account fnd_flex_values_vl.attribute1%TYPE;
l_function fnd_flex_values_vl.attribute2%TYPE;
l_cust_trx_type_name fnd_flex_values_vl.attribute4%TYPE;
l_bill_sku fnd_flex_values_vl.attribute5%TYPE;
l_ship_from fnd_flex_values_vl.attribute6%TYPE;
l_inventory_id NUMBER;
l_warehouse_id NUMBER;
l_date DATE;
l_date_term DATE;
l_combination_check VARCHAR2(10);
l_location_ship VARCHAR2(10);
l_location_bill VARCHAR2(10);
l_line_type VARCHAR2(10);
l_error_message VARCHAR2(4000);
l_err_stage VARCHAR2(4000);
l_return_status VARCHAR2(1);
l_errbuf VARCHAR2(4000);
l_retcode VARCHAR2(10);
l_cnt NUMBER;
l_update_tax VARCHAR2(1);
l_error_count NUMBER;
ex_dml_errors EXCEPTION;
PRAGMA EXCEPTION_INIT(ex_dml_errors, -24381);
CURSOR c_get_bill_data
IS
SELECT program_type
, dc
, CONCAT(supplier_code,'SMF') supplier_code1
, CONCAT(substr(supplier_payee_code,0,4),'SMF')supplier_payee_code1
, supplier_code
, supplier_payee_code
, line_type
, payment_type
, sfm_bill_number
, due_date
, ROUND(total_inv_recv_amt,2) invoice_amount
, record_status
, ROWID
FROM xxom_ar_sfs03_bill_info_stg
WHERE record_status = g_new_rec_status
AND conc_request_id = fnd_global.conc_request_id;
CURSOR c_new_rec_count
IS
SELECT COUNT(*)
FROM xxom_ar_sfs03_bill_info_stg
WHERE record_status = g_new_rec_status
AND conc_request_id = fnd_global.conc_request_id;
-- to fetch total invoice lines for an invoice
CURSOR c_get_invoice_no(p_bill in varchar2)
IS
SELECT sfm_bill_number
FROM xxom_ar_sfs03_bill_info_stg
WHERE sfm_bill_number = p_bill
AND conc_request_id = fnd_global.conc_request_id;
-- to fetch total err lines for an invoice
CURSOR c_get_err_line
IS
SELECT sfm_bill_number
FROM xxom_ar_sfs03_bill_info_stg
WHERE record_status = 'E'
AND conc_request_id = fnd_global.conc_request_id;
CURSOR c_batch_src_exist
IS
SELECT name
FROM ra_batch_sources
WHERE name = g_batch_source_name
AND batch_source_type = 'FOREIGN'
AND status = 'A';
CURSOR c_set_book_id_exist
IS
SELECT gl.ledger_id
FROM gl_ledgers gl
, hr_operating_units hru
WHERE gl.ledger_id = hru.set_of_books_id
AND hru.organization_id = g_org_id
AND gl.name = g_ledger_name;
CURSOR c_cust_num_exist( p_cust_no IN hz_cust_accounts.orig_system_reference%TYPE
IS
SELECT cust_account_id
FROM hz_parties HP
, hz_cust_accounts HCC
WHERE HP.party_id = HCC.party_id
AND HP.status = 'A'
AND HCC.status = 'A'
AND HCC.orig_system_reference LIKE p_cust_no;
CURSOR c_cust_payee_exist( p_cust_no IN hz_cust_accounts.attribute2%TYPE)
IS
SELECT cust_account_id
FROM hz_parties HP
, hz_cust_accounts HCC
WHERE HP.party_id = HCC.party_id
AND HP.status = 'A'
AND HCC.status = 'A'
AND HCC.orig_system_reference = p_cust_no;
CURSOR c_pgm_type_exist(p_pgm_type IN VARCHAR)
IS
SELECT FFVV.attribute1
, FFVV.attribute2
, FFVV.attribute3
, FFVV.attribute4
, FFVV.attribute5
, FFVV.attribute6
FROM fnd_flex_value_sets FFVS
, fnd_flex_values_vl FFVV
WHERE flex_value_set_name = g_pgm_valueset
AND FFVV.flex_value_set_id = FFVS.flex_value_set_id
AND FFVV.flex_value = p_pgm_type
AND enabled_flag = 'Y'
AND TRUNC(SYSDATE) BETWEEN NVL(start_date_active,TRUNC(SYSDATE))
AND NVL(end_date_active,TRUNC(SYSDATE));
CURSOR c_validate_dc(p_dc IN fnd_flex_values_vl.flex_value%TYPE)
IS
SELECT FFVV.attribute1
, FFVV.attribute2
FROM fnd_flex_value_sets FFVS
, fnd_flex_values_vl FFVV
WHERE flex_value_set_name = 'OM_LEGACY_DC'
AND FFVV.flex_value_set_id = FFVS.flex_value_set_id
AND FFVV.flex_value = p_dc
AND enabled_flag = 'Y';
CURSOR c_get_location( p_cust_id IN hz_cust_accounts.cust_account_id%TYPE
, p_location_use IN VARCHAR2
IS
SELECT HCAS.orig_system_reference
FROM hz_cust_acct_sites HCAS
, hz_cust_site_uses HCSU
WHERE cust_account_id = p_cust_id
AND HCAS.cust_acct_site_id = HCSU.cust_acct_site_id
AND HCAS.status = 'A'
AND primary_flag = 'Y'
AND HCSU.site_use_code = p_location_use;
CURSOR c_validate_line_type(p_line_type IN VARCHAR2)
IS
SELECT flv.lookup_code
FROM fnd_lookup_values flv
WHERE flv.lookup_type = g_line_typ_lookup
AND flv.lookup_code = p_line_type
AND flv.enabled_flag = 'Y'
AND TRUNC(SYSDATE) BETWEEN NVL(flv.start_date_active,TRUNC(SYSDATE))
AND NVL(flv.end_date_active,TRUNC(SYSDATE));
CURSOR c_validate_receipt_type(p_receipt_method IN VARCHAR2)
IS
SELECT flv.meaning
FROM fnd_lookup_values flv
WHERE flv.lookup_type = g_receipt_lookup
AND flv.lookup_code = p_receipt_method
AND flv.enabled_flag = 'Y'
AND TRUNC(SYSDATE) BETWEEN NVL(flv.start_date_active,TRUNC(SYSDATE))
AND NVL(flv.end_date_active,TRUNC(SYSDATE));
CURSOR c_validate_term_name (p_term_name IN ra_terms.name%TYPE)
IS
SELECT name
FROM ra_terms
WHERE name = p_term_name
AND TRUNC(SYSDATE) BETWEEN NVL(start_date_active,TRUNC(SYSDATE))
AND TRUNC(SYSDATE);
CURSOR c_check_combination( p_attribute IN ra_customer_trx_all.attribute1%TYPE
IS
SELECT 1
FROM ra_customer_trx_all
WHERE attribute1 = p_attribute
AND attribute_category = 'SFM';
CURSOR c_get_inventory_item_id (p_org_code IN VARCHAR2
,p_item_description IN VARCHAR2)
IS
SELECT msi.inventory_item_id
, msi.organization_id warehouse_id
FROM mtl_system_items_b msi
, hr_all_organization_units haou
, org_organization_definitions ood
WHERE haou.organization_id = msi.organization_id
AND haou.organization_id = ood.organization_id
AND ood.disable_date IS NULL
AND msi.enabled_flag = 'Y'
AND ood.organization_code = p_org_code
AND segment1 = p_item_description
AND TRUNC(SYSDATE) BETWEEN NVL(msi.start_date_active,TRUNC(SYSDATE))
AND NVL(msi.end_date_active,TRUNC(SYSDATE));
TYPE type_bill_dtl_update_tbl IS RECORD
ledger_id gl_ledgers.ledger_id%TYPE
, cust_ship_to_add_ref hz_cust_acct_sites_all.orig_system_reference%TYPE
, pay_term_name ra_terms.name%TYPE
, receipt_method fnd_lookup_values.meaning%TYPE
, cust_bill_to_add_ref hz_cust_acct_sites_all.orig_system_reference%TYPE
, company_seg gl_code_combinations.segment1%TYPE
, costcenter_seg gl_code_combinations.segment2%TYPE
, function_seg gl_code_combinations.segment3%TYPE
, account_seg gl_code_combinations.segment4%TYPE
, cust_trx_type fnd_flex_values_vl.attribute4%TYPE
, inventory_item_id fnd_flex_values_vl.attribute5%TYPE
, warehouse_id fnd_flex_values_vl.attribute6%TYPE
, tax_flag VARCHAR2(1)
, invoice_amount NUMBER
, record_status VARCHAR2(1)
, error_message VARCHAR2(1000)
, row_id ROWID
TYPE t_get_bill_data IS TABLE OF c_get_bill_data%ROWTYPE;
l_get_bill_data t_get_bill_data:= t_get_bill_data() ;
TYPE t_bill_dtl_update_tbl IS TABLE OF type_bill_dtl_update_tbl;-- INDEX BY BINARY_INTEGER;
l_bill_dtl_update_rec t_bill_dtl_update_tbl:= t_bill_dtl_update_tbl() ;
TYPE t_bill_no IS TABLE OF c_get_invoice_no%ROWTYPE;
l_bill_no t_bill_no;
TYPE t_bill_err_lines IS TABLE OF c_get_err_line%ROWTYPE;
l_bill_err_lines t_bill_err_lines;
BEGIN
p_retcode := g_ret_success;
p_errbuf := NULL;
g_procedure := g_validate_rec;
l_set_of_books_id := NULL;
l_cnt := 1;
OPEN c_new_rec_count;
FETCH c_new_rec_count INTO g_new_rec_count;
CLOSE c_new_rec_count;
OPEN c_get_bill_data;
FETCH c_get_bill_data BULK COLLECT INTO l_get_bill_data;
CLOSE c_get_bill_data;
FOR i IN 1..l_get_bill_data.COUNT LOOP
FND_FILE.PUT_LINE (FND_FILE.LOG,'count'||i);
l_get_bill_data.EXTEND;
l_return_status := NULL;
l_batch_name := NULL;
l_supplier_code := NULL;
l_supplier_payee_code := NULL;
l_cust_bill_to_add_ref := NULL;
l_cust_ship_to_add_ref := NULL;
l_line_type := NULL;
l_combination_check := NULL;
l_term_name := NULL;
l_receipt_method := NULL;
l_tax_inc_flag := NULL;
l_update_tax := NULL;
l_date_term := NULL;
l_date := NULL;
l_term := NULL;
l_cust_trx_type_name := NULL;
l_bill_sku := NULL;
l_ship_from := NULL;
l_inventory_id := NULL;
l_warehouse_id := NULL;
l_location_ship := 'SHIP_TO';
l_location_bill := 'BILL_TO';
l_err_stage := NULL;
l_error_message := NULL;
l_costcenter := NULL;
l_company := NULL;
l_account := NULL;
l_function := NULL;
-- Validation for set_of_books and org_id
l_err_stage := 'Validation for Set_of_books_id and org_id .' ;
IF (g_ledger_name IS NOT NULL) AND (g_org_id IS NOT NULL) THEN
OPEN c_set_book_id_exist;
FETCH c_set_book_id_exist into l_set_of_books_id;
CLOSE c_set_book_id_exist;
IF l_set_of_books_id IS NULL THEN
p_errbuf := 'Please check the setup for set_of_books name'||g_ledger_name;
p_retcode := g_ret_exception;
xxom_int_common.post_record_msg( p_message => 'Please check the setup for set_of_books name :'||g_ledger_name
, p_severity => xxom_int_common.c_level_error
END IF;--set of books
ELSE
p_errbuf := 'Please check the setup for set_of_books name'||g_ledger_name||'and org_id '||g_org_id||'cannot be null';
p_retcode := g_ret_exception;
xxom_int_common.post_record_msg( p_message => 'Please check the setup for set_of_books name'||g_ledger_name||'and org_id '||g_org_id||'cannot be null'
, p_severity => xxom_int_common.c_level_error
END IF;--Validation for set_of_books and org_id
--Validation for batch name
l_err_stage := 'Validation for batch name.' ;
IF g_batch_source_name IS NOT NULL THEN
OPEN c_batch_src_exist;
FETCH c_batch_src_exist INTO l_batch_name ;
CLOSE c_batch_src_exist;
IF l_batch_name IS NULL THEN
p_errbuf := 'Please check the setup for batch_source_name'||g_batch_source_name;
p_retcode := g_ret_exception;
xxom_int_common.post_record_msg( p_message => 'Please check the setup for batch_source_name'||g_batch_source_name
, p_severity => xxom_int_common.c_level_error
END IF;
END IF ;--l_get_bill_data(i).batch_source_name IS NOT NULL
--Validation for supplier code
l_err_stage := 'Validation for Supplier Code.';
IF l_get_bill_data(i).supplier_code IS NOT NULL THEN
OPEN c_cust_num_exist( p_cust_no => l_get_bill_data(i).supplier_code1
FETCH c_cust_num_exist INTO l_supplier_code;
CLOSE c_cust_num_exist;
IF l_supplier_code IS NULL THEN
l_error_message := l_error_message||'Supplier Code ('||l_get_bill_data(i).supplier_code||' ) is not valid.';
xxom_int_common.post_record_msg( p_message => 'Supplier Code is not valid : '||l_get_bill_data(i).supplier_code||' (Sfm Bill Number : '||l_get_bill_data(i).sfm_bill_number||')'
, p_severity => xxom_int_common.c_level_warning
ELSE
OPEN c_get_location( p_cust_id => l_supplier_code
, p_location_use => l_location_ship);
FETCH c_get_location INTO l_cust_ship_to_add_ref;
CLOSE c_get_location;
IF l_cust_ship_to_add_ref IS NULL THEN
l_error_message := l_error_message||'Customer ship to location is null.';
xxom_int_common.post_record_msg( p_message => 'Customer ship to location is null. '||' (Sfm Bill Number : '||l_get_bill_data(i).sfm_bill_number||')'
, p_severity => xxom_int_common.c_level_warning
END IF;
END IF ;
END IF;-- l_get_bill_data(i).supplier_code IS NOT NULL
--Validation for Supplier payee code
l_err_stage := 'Validation for Supplier payee code.';
IF l_get_bill_data(i).supplier_payee_code IS NOT NULL THEN
OPEN c_cust_payee_exist ( p_cust_no => l_get_bill_data(i).supplier_payee_code1);
FETCH c_cust_payee_exist INTO l_supplier_payee_code;
CLOSE c_cust_payee_exist;
IF l_supplier_payee_code IS NULL THEN
l_error_message := l_error_message||'Supplier Payee Code ('||l_get_bill_data(i).supplier_payee_code||' ) is not valid.';
xxom_int_common.post_record_msg( p_message => 'Supplier Payee Code is not valid: '||l_get_bill_data(i).supplier_payee_code||' (Sfm Bill Number : '||l_get_bill_data(i).sfm_bill_number||')'
, p_severity => xxom_int_common.c_level_warning
ELSE
OPEN c_get_location( p_cust_id => l_supplier_payee_code
, p_location_use => l_location_bill);
FETCH c_get_location INTO l_cust_bill_to_add_ref;
CLOSE c_get_location;
IF l_cust_bill_to_add_ref IS NULL THEN
l_error_message := l_error_message||'Customer bill to location is null.';
xxom_int_common.post_record_msg( p_message => 'Customer bill to location is null. '||' (Sfm Bill Number : '||l_get_bill_data(i).sfm_bill_number||')'
, p_severity => xxom_int_common.c_level_warning
END IF;
END IF;
ELSE
l_error_message := l_error_message ||' Supplier Payee code is null';
xxom_int_common.post_record_msg( p_message => 'Supplier Payee code is null. '||' (Sfm Bill Number : '||l_get_bill_data(i).sfm_bill_number||')'
, p_severity => xxom_int_common.c_level_warning
END IF ;--supplier_payee_code IS NOT NULL
--Validation for DC
l_err_stage := 'Validation for DC.';
IF l_get_bill_data(i).dc IS NOT NULL THEN
OPEN c_validate_dc(p_dc => l_get_bill_data(i).dc);
FETCH c_validate_dc INTO l_costcenter
, l_company;
CLOSE c_validate_dc;
IF l_costcenter IS NULL THEN
l_error_message := l_error_message||'DC ('||l_get_bill_data(i).dc||' ) is not valid.';
xxom_int_common.post_record_msg( p_message => 'DC is not valid : '||l_get_bill_data(i).dc||' (Sfm Bill Number : '||l_get_bill_data(i).sfm_bill_number||')'
, p_severity => xxom_int_common.c_level_warning
END IF;
ELSE
l_error_message := l_error_message||'DC is null';
xxom_int_common.post_record_msg( p_message => 'DC is null. '||l_get_bill_data(i).dc||' (Sfm Bill Number : '||l_get_bill_data(i).sfm_bill_number||')'
, p_severity => xxom_int_common.c_level_warning
END IF;
--Validation for program type
l_err_stage := 'Validation for program type.';
IF l_get_bill_data(i).program_type IS NOT NULL THEN
OPEN c_pgm_type_exist(p_pgm_type => l_get_bill_data(i).program_type);
FETCH c_pgm_type_exist INTO l_account
, l_function
, l_tax_inc_flag
, l_cust_trx_type_name
, l_bill_sku
, l_ship_from;
CLOSE c_pgm_type_exist;
--to fetch warehouse_id and inventory_id
OPEN c_get_inventory_item_id(p_org_code => l_ship_from
,p_item_description =>l_bill_sku );
FETCH c_get_inventory_item_id INTO l_inventory_id
,l_warehouse_id;
CLOSE c_get_inventory_item_id;
IF l_tax_inc_flag IS NULL THEN
l_error_message := l_error_message||'Program type ('||l_get_bill_data(i).program_type||' ) is not valid.';
xxom_int_common.post_record_msg( p_message => 'Program type is not valid : '||l_get_bill_data(i).program_type||' (Sfm Bill Number : '||l_get_bill_data(i).sfm_bill_number||')'
, p_severity => xxom_int_common.c_level_warning
ELSIF l_tax_inc_flag ='No' THEN
l_update_tax := 'N';
ELSE
l_update_tax := 'Y';
END IF;
ELSE
l_error_message := l_error_message||'Program type is null';
xxom_int_common.post_record_msg( p_message => 'Program type is null. '||l_get_bill_data(i).program_type||' (Sfm Bill Number : '||l_get_bill_data(i).sfm_bill_number||')'
, p_severity => xxom_int_common.c_level_warning
END IF; --IF l_get_bill_data.program_type IS NOT NULL
--Validation for Line type
l_err_stage := 'Validation for Line type.';
IF l_get_bill_data(i).line_type IS NOT NULL THEN
OPEN c_validate_line_type(p_line_type => l_get_bill_data(i).line_type);
FETCH c_validate_line_type INTO l_line_type;
CLOSE c_validate_line_type;
IF l_line_type IS NULL THEN
l_error_message := l_error_message||'Line type ('||l_get_bill_data(i).line_type||' ) is not valid.';
xxom_int_common.post_record_msg( p_message => 'Line type is not valid : '||l_get_bill_data(i).line_type||' (Sfm Bill Number : '||l_get_bill_data(i).sfm_bill_number||')'
, p_severity => xxom_int_common.c_level_warning
END IF;
ELSE
l_error_message := l_error_message ||' Line type is null';
xxom_int_common.post_record_msg( p_message => 'Line type is null '||' (Sfm Bill Number : '||l_get_bill_data(i).sfm_bill_number||')'
, p_severity => xxom_int_common.c_level_warning
END IF;--l_get_bill_data(i).line_type IS NOT NULL
--Validation for Payment Type
l_err_stage := 'Validation for Payment Type.';
IF l_get_bill_data(i).payment_type IS NOT NULL AND l_get_bill_data(i).payment_type IN ('D') THEN
debug_print('Receipt'||i||l_get_bill_data(i).payment_type);
OPEN c_validate_receipt_type(p_receipt_method => l_get_bill_data(i).payment_type);
FETCH c_validate_receipt_type INTO l_receipt_method;
CLOSE c_validate_receipt_type;
IF l_receipt_method IS NULL THEN
l_error_message := l_error_message||'Payment type ('||l_get_bill_data(i).payment_type||' ) is not valid.';
xxom_int_common.post_record_msg( p_message => 'Payment type is not valid : '||l_get_bill_data(i).payment_type||' (Sfm Bill Number : '||l_get_bill_data(i).sfm_bill_number||')'
, p_severity => xxom_int_common.c_level_warning
END IF ;
END IF;--l_get_bill_data(i).payment_type NOT NULL
--Validation for term name
IF l_get_bill_data(i).due_date IS NOT NULL THEN
IF l_get_bill_data(i).due_date <= 0 THEN
l_term_name:='IMMEDIATE';
ELSIF l_get_bill_data(i).due_date BETWEEN 1 AND 30 THEN
l_term_name:='NET30';
ELSIF l_get_bill_data(i).due_date BETWEEN 31 AND 60 THEN
l_term_name:='NET60';
ELSIF l_get_bill_data(i).due_date BETWEEN 61 AND 90 THEN
l_term_name:='NET90';
ELSIF l_get_bill_data(i).due_date BETWEEN 91 AND 120 THEN
l_term_name:='NET120';
ELSIF l_get_bill_data(i).due_date BETWEEN 121 AND 150 THEN
l_term_name:='NET150';
ELSIF l_get_bill_data(i).due_date BETWEEN 151 AND 180 THEN
l_term_name:='NET180';
ELSIF l_get_bill_data(i).due_date BETWEEN 181 AND 210 THEN
l_term_name:='NET210';
ELSIF l_get_bill_data(i).due_date BETWEEN 211 AND 240 THEN
l_term_name:='NET240';
ELSE
l_term_name:='NET365';
END IF;
IF l_term_name IS NOT NULL THEN
OPEN c_validate_term_name(p_term_name =>l_term_name);
FETCH c_validate_term_name INTO l_term;
CLOSE c_validate_term_name;
IF l_term IS NULL THEN
l_error_message := l_error_message ||'The term name is not a valid term';
xxom_int_common.post_record_msg( p_message => 'The term name is not a valid term '||' (Sfm Bill Number : '||l_get_bill_data(i).sfm_bill_number||')'
, p_severity => xxom_int_common.c_level_warning
END IF;
END IF;--l_term_name IS NOT NULL THEN
ELSE
l_error_message := l_error_message ||'The data provided for term name is null';
xxom_int_common.post_record_msg( p_message => 'The data provided for term name is null '||' (Sfm Bill Number : '||l_get_bill_data(i).sfm_bill_number||')'
, p_severity => xxom_int_common.c_level_warning
END IF; --l_get_bill_data(i).due_date IS NOT NULL */
--Validation for unique interface_line_context and interface_line_attribute1 combination AND Amount
IF l_get_bill_data(i).invoice_amount IS NOT NULL THEN
OPEN c_check_combination( p_attribute=> l_get_bill_data(i).sfm_bill_number
FETCH c_check_combination INTO l_combination_check;
CLOSE c_check_combination;
IF l_combination_check IS NOT NULL THEN
l_error_message := l_error_message||'The interface_line_context and interface_header_attribute1 combination ('||l_get_bill_data(i).sfm_bill_number||' and '|| ' SFM' ||' ) already exist .Please provide different combination';
xxom_int_common.post_record_msg( p_message => 'The interface_line_context and interface_header_attribute1 combination already exist .Please provide different combination ' ||l_get_bill_data(i).sfm_bill_number ||' and '||'SFM'
, p_severity => xxom_int_common.c_level_warning
END IF;
ELSE
l_error_message := l_error_message||'Amount cannot be null';
xxom_int_common.post_record_msg( p_message => 'Amount cannot be null '||' (Sfm Bill Number : '||l_get_bill_data(i).sfm_bill_number||')'
, p_severity => xxom_int_common.c_level_warning
END IF; --l_get_bill_data(i).total_inv_recv_amt IS NOT NULL
/* end of validation*/
l_bill_dtl_update_rec.EXTEND;
l_bill_dtl_update_rec(l_cnt).ledger_id := l_set_of_books_id;
l_bill_dtl_update_rec(l_cnt).cust_ship_to_add_ref := l_cust_ship_to_add_ref;
l_bill_dtl_update_rec(l_cnt).cust_bill_to_add_ref := l_cust_bill_to_add_ref;
l_bill_dtl_update_rec(l_cnt).receipt_method := l_receipt_method;
l_bill_dtl_update_rec(l_cnt).company_seg := l_company;
l_bill_dtl_update_rec(l_cnt).account_seg := l_account;
l_bill_dtl_update_rec(l_cnt).costcenter_seg := l_costcenter;
l_bill_dtl_update_rec(l_cnt).function_seg := l_function;
l_bill_dtl_update_rec(l_cnt).tax_flag := l_update_tax;
l_bill_dtl_update_rec(l_cnt).pay_term_name := l_term;
l_bill_dtl_update_rec(l_cnt).cust_trx_type := l_cust_trx_type_name;
l_bill_dtl_update_rec(l_cnt).inventory_item_id := l_inventory_id;
l_bill_dtl_update_rec(l_cnt).warehouse_id := l_warehouse_id;
l_bill_dtl_update_rec(l_cnt).invoice_amount := l_get_bill_data(i).invoice_amount;
l_bill_dtl_update_rec(l_cnt).row_id := l_get_bill_data(i).rowid;
IF l_error_message IS NULL THEN
l_bill_dtl_update_rec(l_cnt).record_status := g_valid_status;
l_bill_dtl_update_rec(l_cnt).error_message := NULL;
ELSE
l_bill_dtl_update_rec(l_cnt).record_status := g_err_status;
l_bill_dtl_update_rec(l_cnt).error_message := l_error_message;
END IF;
l_cnt := l_cnt + 1;
END LOOP;
FORALL i in 1..l_bill_dtl_update_rec.COUNT SAVE EXCEPTIONS
UPDATE xxom_ar_sfs03_bill_info_stg
SET cust_bill_to_add_ref = l_bill_dtl_update_rec(i).cust_bill_to_add_ref
, cust_ship_to_add_ref = l_bill_dtl_update_rec(i).cust_ship_to_add_ref
, term_name = l_bill_dtl_update_rec(i).pay_term_name
, receipt_method = l_bill_dtl_update_rec(i).receipt_method
, set_of_books_id = l_bill_dtl_update_rec(i).ledger_id
, company_seg = l_bill_dtl_update_rec(i).company_seg
, account_seg = l_bill_dtl_update_rec(i).account_seg
, costcenter_seg = l_bill_dtl_update_rec(i).costcenter_seg
, function_seg = l_bill_dtl_update_rec(i).function_seg
, cust_trx_type = l_bill_dtl_update_rec(i).cust_trx_type
, inventory_item_id = l_bill_dtl_update_rec(i).inventory_item_id
, warehouse_id = l_bill_dtl_update_rec(i).warehouse_id
, tax_flag = l_bill_dtl_update_rec(i).tax_flag
, total_inv_recv_amt = l_bill_dtl_update_rec(i).invoice_amount
, record_status = l_bill_dtl_update_rec(i).record_status
, error_message = l_bill_dtl_update_rec(i).error_message
, conc_request_id = fnd_global.conc_request_id
, last_update_date = SYSDATE
, last_updated_by = FND_GLOBAL.USER_ID
WHERE ROWID = l_bill_dtl_update_rec(i).row_id;
COMMIT;
-- Submitting the invoice_error procedure at end of validate procedure.
debug_print('Submitting the invoice_error procedure at end of validate_records procedure. ');
--reject all line of an invoice with a single error line
OPEN c_get_err_line;
FETCH c_get_err_line BULK COLLECT INTO l_bill_err_lines;
CLOSE c_get_err_line;
FOR i IN 1..l_bill_err_lines.COUNT LOOP
OPEN c_get_invoice_no(p_bill =>l_bill_err_lines(i).sfm_bill_number );
FETCH c_get_invoice_no BULK COLLECT INTO l_bill_no;
CLOSE c_get_invoice_no;
FOR j IN 1..l_bill_no.COUNT LOOP
UPDATE xxom_ar_sfs03_bill_info_stg
SET error_message = NULL
, record_status ='E'
, last_update_date = SYSDATE
WHERE record_status = 'V'
AND sfm_bill_number = l_bill_no(i).sfm_bill_number;
COMMIT;
END LOOP;
END LOOP;
EXCEPTION
WHEN ex_dml_errors THEN
l_error_count := SQL%BULK_EXCEPTIONS.count;
FOR i IN 1 .. l_error_count LOOP
l_error_message := l_error_message||SQLERRM(-SQL%BULK_EXCEPTIONS(i).ERROR_CODE);
END LOOP;--OR i IN 1 .. l_error_count LOOP
WHEN OTHERS THEN
IF c_get_bill_data%ISOPEN THEN
CLOSE c_get_bill_data;
END IF;
IF c_batch_src_exist%ISOPEN THEN
CLOSE c_batch_src_exist;
END IF;
IF c_set_book_id_exist%ISOPEN THEN
CLOSE c_set_book_id_exist;
END IF;
IF c_get_location%ISOPEN THEN
CLOSE c_get_location;
END IF;
IF c_validate_line_type%ISOPEN THEN
CLOSE c_validate_line_type;
END IF;
IF c_validate_receipt_type%ISOPEN THEN
CLOSE c_validate_receipt_type;
END IF;
IF c_check_combination%ISOPEN THEN
CLOSE c_check_combination;
END IF;
IF c_validate_receipt_type%ISOPEN THEN
CLOSE c_validate_receipt_type;
END IF;
IF c_pgm_type_exist%ISOPEN THEN
CLOSE c_pgm_type_exist;
END IF;
IF c_validate_term_name%ISOPEN THEN
CLOSE c_validate_term_name;
END IF;
IF c_new_rec_count%ISOPEN THEN
CLOSE c_new_rec_count;
END IF;
IF c_cust_payee_exist%ISOPEN THEN
CLOSE c_cust_payee_exist;
END IF;
IF c_get_invoice_no%ISOPEN THEN
CLOSE c_get_invoice_no;
END IF;
IF c_get_err_line%ISOPEN THEN
CLOSE c_get_err_line;
END IF;
p_retcode := g_ret_exception;
p_errbuf := 'The Error at XXOM_SFS_03_BILL_INFO_PKG.validate_records ' || l_err_stage|| '-'|| SUBSTR ( SQLERRM ,1,240 );
END validate_records;
Thanks in advance.Another version
SET SERVEROUTPUT ON
DECLARE
TYPE empno_nt IS TABLE OF VARCHAR2 (40);
l_empno_nt empno_nt;
BEGIN
l_empno_nt := empno_nt ('Suri');
dbms_output.put_line(l_empno_nt(1));
END;
Enhanced version:
DECLARE
TYPE empno_nt IS TABLE OF VARCHAR2 (40);
l_empno_nt empno_nt;
BEGIN
l_empno_nt := empno_nt ('Suri', 'Test','Ranit');
FOR rec IN l_empno_nt.FIRST .. l_empno_nt.LAST
LOOP
DBMS_OUTPUT.put_line (l_empno_nt (rec));
END LOOP;
END;
Simplified version :
select * from table( sys.odcivarchar2list('Suri','Test','Ranit') ) ;
Cheers,
Manik.
Message was edited by: Manik -
Error ORA-06533: executing dbms_odm.CreateStdFactmv
Hi,
I have been defined and validated a metamodel for a cube and their dimensions, using CWM2 package. I obtained the scripts for dimension materialized view with dbms_odm.CreateDimmv_gs, I run them successfully, but when I try to run dbms_odm.CreateStdFactmv to generate fact table materialized view I get:
ORA-06533: Subscript beyond count
ORA-06512: at "OLAPSYS.DBMS_ODM", line 4771
ORA-06512: at line 2
and I'm running Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit
Can someone help me???Hi,
No body have answered me, but I found the solution, if somebody has the same problem, check the value of parameter dimkeymap before to execute
cwm2_olap_table_map.map_facttbl_levelkey and cwm2_olap_table_map.map_facttbl_measure
dimkeymap is a string enclose in single quotes like as follows
'DIM:dim1_name/HIER:hier_name/LVL:level_name/COL:map_column;DIM:.......'
You must to be carefull to write the lowest level name for each hierarchy. -
Subscript beyond count ORA-06533
Hi,
I am using Oracle Express with SQL Developer on platform XP.
I am attempting to run a procedure that works error free as an anonymous PL/SQL block.
I have come across a few problems today and would like to Thank the following,
1. Mohana - creating a type.
2. MScallion - Grant Write suggestion.
3. Billy Verreynne - adjusting my VARCHAR2 to correct bytes.
I have been able to remove other errors with the help of the Oracle Forum Search but am gezumped by this one,
Connecting to the database MY_DATABASE.
ORA-06533: Subscript beyond count
ORA-06512: at "MY_DATABASE.WRITE_MY_DDL", line 24
ORA-06512: at line 12
Process exited.
Disconnecting from the database MY_DATABASE.
This is the type I have created (now with revised VARCHAR2(4000)) ...
create or replace TYPE PTB_NUMBER IS TABLE OF VARCHAR2(4000);
This is the procedure I am attempting to run it compiles no worries (Thats what the message log tells me),
create or replace
PROCEDURE WRITE_MY_DDL
( v_object_type OUT VARCHAR2
, v_sqlEnd OUT VARCHAR2
, l_clob OUT CLOB
, n OUT NUMBER
, v_version OUT NUMBER
, ptb_object_type OUT ptb_number
, v_file_open OUT UTL_FILE.FILE_TYPE
, v_file_name OUT VARCHAR2
) AS
BEGIN
n := 14;
ptb_object_type := ptb_number();
SELECT max(version)
INTO v_version
FROM my_ddl;
v_file_name := 'DB_SCRIPT_FOR_'||USER||'_VERSION_'||v_version||'.sql';
v_file_open := utl_file.FOPEN('SCRIPT_DIR',v_file_name,'w');
ptb_object_type(1) := 'SEQUENCE';
ptb_object_type(2) := 'TABLE';
ptb_object_type(3) := 'TRIGGER';
ptb_object_type(4) := 'PRIMARY KEY';
ptb_object_type(5) := 'FORIEGN KEY';
ptb_object_type(6) := 'PROCEDURE';
ptb_object_type(7) := 'FUNCTION';
ptb_object_type(8) := 'VIEW';
ptb_object_type(9) := 'SELECT';
ptb_object_type(10) := 'INSERT';
ptb_object_type(11) := 'UPDATE';
ptb_object_type(12) := 'DELETE';
ptb_object_type(13) := 'REFERENCES';
ptb_object_type(14) := 'EXECUTE';
FOR loop_int IN 1 .. n
LOOP
v_object_type := ptb_object_type(loop_int);
utl_file.PUT_LINE(v_file_open,' ');
utl_file.PUT_LINE(v_file_open,'PROMPT CREATE '|| v_object_type ||'S' );
utl_file.PUT_LINE(v_file_open,' ');
utl_file.PUT_LINE(v_file_open,' ');
FOR c1 IN
(SELECT ROWID
, object_type, object_name
FROM my_ddl
WHERE object_type = v_object_type
AND version = v_version
AND status = 'CURRENT'
LOOP
utl_file.PUT_LINE(v_file_open,'PROMPT CREATE ' ||USER|| ' '||c1.object_type||' '||c1.object_name);
EXECUTE IMMEDIATE 'SELECT ddl FROM my_ddl WHERE ROWID = '|| ''''|| c1.ROWID ||''''
INTO l_clob;
utl_file.PUT_LINE(v_file_open, l_clob);
END LOOP;
END LOOP;
utl_file.FCLOSE(v_file_open);
END WRITE_MY_DDL;
Cheers
Ben???(Not tested)
BEGIN
n := 14;
ptb_object_type := ptb_number();
ptb_object_type.extend(14); -
SDO_TUNE.EXTENT_OF returns ORA-06533: Subscript beyond count
Hi,
I'm trying to get the MBR of a dataset I've just loaded via an Oracle dump file from another source. I am using sdo_tune.extent_of to get the information, but the following error message is returned:
select sdo_tune.extent_of('LR_PRM_IACS','GEOM') from dual
ERROR at line 1:
ORA-06533: Subscript beyond count
ORA-06512: at "MDSYS.SDO_TUNE", line 1410
I've looked up the meaning of the error and am none the wiser. There are just over 790000 records in the table. This shouldn't be too big to be handled, or is this possible? How else can I get the MBR for the dataset?
Many thanks
SharonHi Andriy
I am Jorge Barba
The author of the note you are following to setup the NCI demo.
1. Regarding errors in sql*loader: Total logical records rejected: 55844
We are aware of that and we just ignored those errors as this was done just for demo purposes.
2. Regarding the second error
Can you try the procedure in the tutorial, Use this link to go to the tutorial, build_patients sections:
http://www.oracle.com/technology/obe/11gr1_db/datamgmt/nci_semantic_network/nci_semantics_les01.htm#t3
If this still gives error, try the query alone to see if still gives the same error
Regards!
Jorge -
Error: ORA-06533: Subscript beyond count
when i run the below command;
ERROR at line 1:
ORA-06533: Subscript beyond count
ORA-06512: at line 10
sp_table will be like
SPLITID DELIMITERLENGTH
1 1
2 1
3 1
4 1
declare strx varchar2(4000) :='11111111111111111111111111111111111111111111111111111111111111111111111111111111';
delarray np_type:=np_type(1,2,3,4,5);
execstr varchar2(4000);
cn cn_type :=cn_type();
cxn cxn_type :=cxn_type();
xpos number:=1;
begin
for i in 1..5 loop
select Delimiterlength into cn(i) from sp_table where Splitid = delarray(i);
select substr(strx,xpos,cn(i)) into cxn(i) from dual;
execstr:='insert into test values(' || cxn(i) || ',';
xpos:=length(cxn(i));
end loop;
execstr:=substr(execstr,1,length(execstr)-1);
execstr:=execstr || ')';
dbms_output.put_line(execstr);
--execute immediate execstr;
end;
/Something like this?
SET SERVEROUTPUT ON
DROP TABLE sp_table;
CREATE TABLE sp_table(splitid NUMBER,delimiterlength NUMBER);
INSERT INTO sp_table values(1,4);
INSERT INTO sp_table values(2,7);
INSERT INTO sp_table values(3,9);
INSERT INTO sp_table values(4,1);
INSERT INTO sp_table values(5,2);
INSERT INTO sp_table values(6,6);
COMMIT;
DECLARE
TYPE varchar2_table IS TABLE OF VARCHAR2(120)
INDEX BY BINARY_INTEGER;
TYPE number_table IS TABLE OF NUMBER
INDEX BY BINARY_INTEGER;
delarray number_table;
cn number_table;
cxn varchar2_table;
xpos NUMBER :=1;
strx VARCHAR2(4000) :='11111111111111111111111111111111111111111111111111111111111111111111111111111111';
execstr VARCHAR2(4000);
BEGIN
delarray(1) := 1;
delarray(2) := 2;
delarray(3) := 3;
delarray(4) := 4;
delarray(5) := 5;
execstr := 'insert into test values(';
FOR i IN 1..delarray.COUNT LOOP
SELECT delimiterlength
INTO cn(i)
FROM sp_table
WHERE splitid = delarray(i);
cxn(i) := SUBSTR(strx,xpos,cn(i));
execstr :=execstr || cxn(i) || ',';
xpos :=LENGTH(cxn(i));
END LOOP;
execstr := RTRIM(execstr,',')|| ')';
dbms_output.put_line(execstr);
--execute immediate execstr;
END;
insert into test values(1111,1111111,111111111,1,11)I used associative arrays, so I don't have to extend them.
Edited by: Marwim on 25.10.2012 10:17 -
Varray ORA-06533: Subscript beyond count
Hi all
In my package body i've declared
create or replace package body mng_res_pack
is
TYPE rest_ans_type IS VARRAY(5) OF NUMBER(1);
rest_ans rest_ans_type:=rest_ans_type();
PROCEDURE fetch_rest_data
IS
rest_rec restore_users%ROWTYPE;
MONE NUMBER :=0;
BEGIN
FOR I IN 1..5
LOOP
DBMS_OUTPUT.PUT_LINE ('HERE'||' '||rest_ans(i));
END LOOP;
end fetch_rest_data;
end mng_res_pack;when i'm running the procedure i'm getting the error
ERROR at line 1:
ORA-06533: Subscript beyond count
ORA-06512: at "MNG_RES_PACK", line 46
why ?
the varray size is 5 , and i've also initialized it ?
please Help
Thanks In Advanced
Naama>
even though i didn't initialize the varray with numbers , i stil i declare it as a size of 5 .
i still don't understand why it write that it out of limit. null is only the value , not the size of the varray.
It should have looped 5 times and display null , no ?
>
No - the VARRAY itself is NULL - meaning there are no entries to access. You can't loop through the entries because there aren't any.
The declared size of 5 is simply the maximum number of entries the VARRAY can ever have - but it does not create any entries; you have to do that.
See Varrays in the PL/SQL language doc
http://docs.oracle.com/cd/E11882_01/appdev.112/e17126/composites.htm#CHDEIJHD
>
An uninitialized varray variable is a null collection. You must initialize it, either by making it empty or by assigning a non-NULL value to it. For details, see "Collection Constructors" and "Assigning Values to Collection Variables".
Maybe you are looking for
-
Outbound Delivery Handling Unit HU material box pallet
Business requirement. To create a delivery based on a sales order using a function module. To do this, users have an AbapWebdynpro application to collect data, Handling units for boxes and handling units for pallets are creates as the user packs his
-
I insert a wrong email..what can I do to change ??
I insert a wrong email in my icloud..what can I do to insert a correct mail?
-
Hi gurus, My company is udergoing restructuring exercise, we need to migrate company code 1000 to 5000. Beside creating new company code, we also need to migrate all open items from 1000 to 5000. This is to ensure the account balances for vendor, cus
-
Defaulting the Payment card details
Hello, I have created the payment card details in the customer master [Payment transaction-payment cards]. Now when i am creating the sales order via VA01, the card data is not defaulted to the sales order. what configuration have i missed for the sa
-
.PSD being brought in as "QuickTime Picture"
I exported a layered .PSD file from Photoshop CS and CS2 and when I import them into the assets they are called "QuickTime Picture" under the type column. I need to have access to the layers, because the .PSD will serve as a menu with overlay layers.