How to display SDO_GEOMETRY on oracle map

Hi All,
I am new to Oracle Mapviewer . For my application that uses oracle maps i refer to http://elocation.oracle.com/mapviewer to get the base map. My requirement here is to capture the area of interest from the end user, which i am doing using the redlining tool. The SDO_geometry information from the redlining tool is stored in the db.
In one use case i want to display the existing area's of interest on the map, how can i achieve this ? can any body help me on this ?
Regard's,
Naveen

Presumably you're using the javascript API (Oracle Maps). If not then the following does not address your question.
Since the stored redline info is in the db already you just need a predefined theme defined on it.
Then add that theme (MVThemeBasedFOI) to the map.
The Oracle Maps tutorial has examples of this. The "Theme Based FOI" layer example which displays the customers theme.
In your case it'll be a redlines theme which display areas/polygons instead of points.

Similar Messages

  • Can't display Georaster in Oracle Maps

    Please help!
    I'm trying to display a georaster in Oracle Maps, without success. The georasters in question display normally in PCI's Focus, eSpatial's iSMART, and MapBuilder preview, but nothing is display in Oracle Maps.
    I have copied jai_codec.jar, jai_core.jar, jai_imageio-1.1.2.jar into
    D:\APPSVR\j2ee\MapViewer\applications\MapViewer10131\web\WEB-INF\lib. I don't get any errors in mapviewer.log set to finest (appended to bottom of post).
    I'm using AS 10.1.3.1.0, MapViewer 10.1.3.1 from patch 6453515, and the 10.1.0.3.1 enterprise database.
    In Oracle Maps I have this code:
         foi = new MVThemeBasedFOI('MOSAIC2','MOSAIC2');
         this.mapview.addThemeBasedFOI(foi);
    The georaster has spatial extents:
    SQL> SELECT g.GEORASTER.spatialextent FROM MOSAICS g WHERE g.MOSAICID=2;
    GEORASTER.SPATIALEXTENT(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO,
    SDO_GEOMETRY(2003, 8307, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 1), SDO_ORDINATE_ARRAY(-83.5357, 31.4825, -83.5357, 31.472635, -83.5357, 31.462765, -83.52891, 31.462765, -83.522115, 31.462765, -83.522115, 31.472635, -83.522115, 31.4825, -83.52891, 31.4825, -83.5357, 31.4825))
    The spatial extent is in USER_SDO_GEOM_METADATA and is indexed:
    SQL> select * from USER_SDO_GEOM_METADATA where TABLE_NAME='MOSAICS';
    TABLE_NAME
    COLUMN_NAME
    DIMINFO(SDO_DIMNAME, SDO_LB, SDO_UB, SDO_TOLERANCE)
    SRID
    MOSAICS
    GEORASTER.SPATIALEXTENT
    SDO_DIM_ARRAY(SDO_DIM_ELEMENT('X', -180, 180, .0005), SDO_DIM_ELEMENT('Y', -90, 90, .0005))
    8307
    The georaster has metadata:
    select TO_CLOB(m.GEORASTER.METADATA) from MOSAICS m where m.MOSAICID=2;
    <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>3947</size>
    </dimensionSize>
    <dimensionSize type="COLUMN">
    <size>2717</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>8</totalRowBlocks>
    <totalColumnBlocks>6</totalColumnBlocks>
    <totalBandBlocks>3</totalBandBlocks>
    <rowBlockSize>512</rowBlockSize>
    <columnBlockSize>512</columnBlockSize>
    <bandBlockSize>1</bandBlockSize>
    </blocking>
    <interleaving>BIP</interleaving>
    <pyramid>
    <type>DECREASE</type>
    <resampling>NN</resampling>
    <maxLevel>5</maxLevel>
    </pyramid>
    <compression>
    <type>NONE</type>
    </compression>
    </rasterInfo>
    <spatialReferenceInfo>
    <isReferenced>true</isReferenced>
    <isRectified>true</isRectified>
    <SRID>8307</SRID>
    <spatialResolution dimensionType="X">
    <resolution>5e-006</resolution>
    </spatialResolution>
    <spatialResolution dimensionType="Y">
    <resolution>5e-006</resolution>
    </spatialResolution>
    <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>6296500.000000001 0 -200000</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>16707140 200000 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>Not Specified</layerID>
    </subLayer>
    <subLayer>
    <layerNumber>2</layerNumber>
    <layerDimensionOrdinate>1</layerDimensionOrdinate>
    <layerID>Not Specified</layerID>
    </subLayer>
    <subLayer>
    <layerNumber>3</layerNumber>
    <layerDimensionOrdinate>2</layerDimensionOrdinate>
    <layerID>Not Specified</layerID>
    </subLayer>
    </layerInfo>
    </georasterMetadata>
    Nothing displays at any zoom level in Oracle Maps.
    The georaster has pyramids generated by:
    DECLARE
    gr sdo_georaster;
    BEGIN
    SELECT georaster INTO gr
    FROM MOSAICS WHERE MOSAICID = 2 FOR UPDATE;
    sdo_geor.deletePyramid(gr);
    sdo_geor.generatePyramid(gr, 'rLevel=5, resampling=NN');
    UPDATE MOSAICS SET georaster = gr WHERE MOSAICID = 2;
    COMMIT;
    END;
    The georaster validates:
    SQL> select sdo_geor.validateGeoraster(a.georaster),sdo_geor.schemaValidate(a.ge
    oraster) from MOSAICS a where MOSAICID=2;
    SDO_GEOR.VALIDATEGEORASTER(A.GEORASTER)
    SDO_GEOR.SCHEMAVALIDATE(A.GEORASTER)
    TRUE
    TRUE
    Thanks very much for any suggestions!
    -Bruce
    mapviewer.log from a session, set to "FINEST"
    Jan 25, 2008 5:24:16 PM oracle.lbs.mapserver.core.MapperConfig loadMapViewerConfig
    FINEST:
    Allowed IPs:
    Excluded IPs:
    Jan 25, 2008 5:24:16 PM oracle.sdovis.GlobalVisContext <clinit>
    WARNING: will use 96 as default dpi.
    Jan 25, 2008 5:24:16 PM oracle.lbs.mapserver.core.MapperConfig registerNSDataProviders
    FINEST: Non-Spatial Data Provider registered: defaultNSDP
    Jan 25, 2008 5:24:16 PM oracle.sdovis.SDataProviderMgr registerProvider
    INFO: Spatial Provider shapefileSDP has been registered.
    Jan 25, 2008 5:24:16 PM oracle.lbs.mapserver.core.MapperConfig registerSDataProviders
    FINEST: Spatial Data Provider registered: shapefileSDP
    Jan 25, 2008 5:24:17 PM oracle.sdovis.SRS <clinit>
    INFO: Using 96 as default dpi.
    Jan 25, 2008 5:24:18 PM oracle.sdovis.DBSRSCache loadGeodeticSrids
    FINEST: Number of geodetic srids loaded: 748.
    Jan 25, 2008 5:24:18 PM oracle.sdovis.CacheMgr2 init
    INFO: Spatial Data Cache opened. Region=SDOVIS_DATA.
    Jan 25, 2008 5:24:18 PM oracle.sdovis.CacheMgr2 init
    INFO:      max_cache_size=32 MB.
    Jan 25, 2008 5:24:18 PM oracle.sdovis.CacheMgr2 createSubRegion
    INFO: sub region sdovis_subreg_mvdemo_jdbc:oracle:thin:@jmsdb5:1521:jmsdb created in cache.
    Jan 25, 2008 5:24:18 PM oracle.lbs.mapserver.core.MapperPool addMapper
    INFO: added a mapper instance to the pool [data src=mvdemo]
    Jan 25, 2008 5:24:18 PM oracle.lbs.mapserver.core.MapperPool addMapper
    INFO: added a mapper instance to the pool [data src=mvdemo]
    Jan 25, 2008 5:24:18 PM oracle.lbs.mapserver.core.MapperPool addMapper
    INFO: added a mapper instance to the pool [data src=mvdemo]
    Jan 25, 2008 5:24:18 PM oracle.sdovis.DBSRSCache loadGeodeticSrids
    FINEST: Number of geodetic srids loaded: 130.
    Jan 25, 2008 5:24:18 PM oracle.sdovis.CacheMgr2 createSubRegion
    INFO: sub region sdovis_subreg_grim_jdbc:oracle:thin:@odm2:1521:odm2 created in cache.
    Jan 25, 2008 5:24:18 PM oracle.lbs.mapserver.core.MapperPool addMapper
    INFO: added a mapper instance to the pool [data src=grim]
    Jan 25, 2008 5:24:18 PM oracle.lbs.mapserver.core.MapperPool addMapper
    INFO: added a mapper instance to the pool [data src=grim]
    Jan 25, 2008 5:24:18 PM oracle.lbs.mapserver.core.MapperPool addMapper
    INFO: added a mapper instance to the pool [data src=grim]
    Jan 25, 2008 5:24:19 PM oracle.sdovis.DBSRSCache loadGeodeticSrids
    FINEST: Number of geodetic srids loaded: 130.
    Jan 25, 2008 5:24:19 PM oracle.lbs.mapserver.core.MapperPool addMapper
    INFO: added a mapper instance to the pool [data src=wms]
    Jan 25, 2008 5:24:19 PM oracle.lbs.mapserver.core.MapperPool addMapper
    INFO: added a mapper instance to the pool [data src=wms]
    Jan 25, 2008 5:24:19 PM oracle.lbs.mapserver.core.MapperPool addMapper
    INFO: added a mapper instance to the pool [data src=wms]
    Jan 25, 2008 5:24:19 PM oracle.lbs.mapserver.core.MapperConfig loadConfigFile
    INFO: Map Recycling thread started.
    Jan 25, 2008 5:24:19 PM oracle.lbs.mapserver.oms$ColdStart run
    INFO: *** Oracle MapViewer started. ***
    Jan 25, 2008 5:24:20 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
    WARNING: Invalid cache root directory:/private/scratch\. Cache root directory will be set to default root directory.
    Jan 25, 2008 5:24:20 PM oracle.sdovis.DBSRSCache register
    INFO: Loading SRS information from MDSYS.cs_srs (srid=8307).
    Jan 25, 2008 5:24:20 PM oracle.sdovis.DBSRSCache parseAndAdd
    FINER: Registering srs 8307, isGeodetic=true, unit=DECIMAL DEGREE
    Jan 25, 2008 5:24:21 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
    WARNING: Invalid cache root directory:/scratch/mapcache\. Cache root directory will be set to default root directory.
    Jan 25, 2008 5:24:21 PM oracle.sdovis.DBSRSCache register
    INFO: Loading SRS information from MDSYS.cs_srs (srid=8307).
    Jan 25, 2008 5:24:21 PM oracle.sdovis.DBSRSCache parseAndAdd
    FINER: Registering srs 8307, isGeodetic=true, unit=DECIMAL DEGREE
    Jan 25, 2008 5:24:21 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadAdapterClass
    INFO: D:\APPSVR\j2ee\MapViewer\applications\MapViewer10131\web\WEB-INF\mapcache\adapterlibs\grim.USGS_DOQ.jar
    Jan 25, 2008 5:24:21 PM oracle.lbs.foi.FOIServer init
    INFO: *** Oracle Feature of Interest (FOI) Server started. ***
    Jan 25, 2008 5:24:21 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
    WARNING: Invalid cache root directory:D:APPSVRj2eeMapViewerapplicationsMapViewer10131webmapcache\. Cache root directory
    will be set to default root directory.
    Jan 25, 2008 5:24:21 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadAdapterClass
    INFO: D:\APPSVR\j2ee\MapViewer\applications\MapViewer10131\web\WEB-INF\mapcache\adapterlibs\grim.USGS_DRG.jar
    Jan 25, 2008 5:24:21 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
    WARNING: Invalid cache root directory:D:APPSVRj2eeMapViewerapplicationsMapViewer10131webmapcache\. Cache root directory
    will be set to default root directory.
    Jan 25, 2008 5:24:21 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadAdapterClass
    INFO: D:\APPSVR\j2ee\MapViewer\applications\MapViewer10131\web\WEB-INF\mapcache\adapterlibs\grim.USGS_URBAN.jar
    Jan 25, 2008 5:24:22 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
    WARNING: Invalid cache root directory:/scratch/mapcache\. Cache root directory will be set to default root directory.
    Jan 25, 2008 5:24:22 PM oracle.sdovis.DBSRSCache register
    INFO: Loading SRS information from MDSYS.cs_srs (srid=8307).
    Jan 25, 2008 5:24:22 PM oracle.sdovis.DBSRSCache parseAndAdd
    FINER: Registering srs 8307, isGeodetic=true, unit=DECIMAL DEGREE
    Jan 25, 2008 5:24:22 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadAdapterClass
    INFO: D:\APPSVR\j2ee\MapViewer\applications\MapViewer10131\web\WEB-INF\mapcache\adapterlibs\wms.USGS_DOQ.jar
    Jan 25, 2008 5:24:22 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
    WARNING: Invalid cache root directory:D:APPSVRj2eeMapViewerapplicationsMapViewer10131webmapcache\. Cache root directory
    will be set to default root directory.
    Jan 25, 2008 5:24:22 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadAdapterClass
    INFO: D:\APPSVR\j2ee\MapViewer\applications\MapViewer10131\web\WEB-INF\mapcache\adapterlibs\wms.USGS_DRG.jar
    Jan 25, 2008 5:24:22 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
    WARNING: Invalid cache root directory:D:APPSVRj2eeMapViewerapplicationsMapViewer10131webmapcache\. Cache root directory
    will be set to default root directory.
    Jan 25, 2008 5:24:22 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadAdapterClass
    INFO: D:\APPSVR\j2ee\MapViewer\applications\MapViewer10131\web\WEB-INF\mapcache\adapterlibs\wms.USGS_URBAN.jar
    Jan 25, 2008 5:24:22 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
    WARNING: Invalid cache root directory:/scratch/mapcache\. Cache root directory will be set to default root directory.
    Jan 25, 2008 5:24:22 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
    WARNING: Invalid cache root directory:D:APPSVRj2eeMapViewerapplicationsMapViewer10131webmapcache\. Cache root directory
    will be set to default root directory.
    Jan 25, 2008 5:24:22 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
    WARNING: Invalid cache root directory:/private/scratch\. Cache root directory will be set to default root directory.
    Jan 25, 2008 5:24:22 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
    WARNING: Invalid cache root directory:D:APPSVRj2eeMapViewerapplicationsMapViewer10131webmapcache\. Cache root directory
    will be set to default root directory.
    Jan 25, 2008 5:24:22 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
    WARNING: Invalid cache root directory:/scratch/mapcache\. Cache root directory will be set to default root directory.
    Jan 25, 2008 5:24:22 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
    WARNING: Invalid cache root directory:D:APPSVRj2eeMapViewerapplicationsMapViewer10131webmapcache\. Cache root directory
    will be set to default root directory.
    Jan 25, 2008 5:24:22 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
    WARNING: Invalid cache root directory:D:APPSVRj2eeMapViewerapplicationsMapViewer10131webmapcache\. Cache root directory
    will be set to default root directory.
    Jan 25, 2008 5:24:22 PM oracle.lbs.mapcache.MCSServlet$ColdStart run
    INFO: *** Oracle MapCacheServer started. ***
    Jan 25, 2008 5:26:21 PM oracle.lbs.mapcache.MCSServlet doPost
    FINER: <request type="unknown request type" data_source="MVDEMO"/>
    Jan 25, 2008 5:26:21 PM oracle.lbs.mapcache.MCSServlet doPost
    FINER: <request type="unknown request type" data_source="MVDEMO"/>
    Jan 25, 2008 5:26:22 PM oracle.lbs.mapcache.MCSServlet doPost
    FINER: <request type="unknown request type" data_source="MVDEMO"/>
    Jan 25, 2008 5:26:22 PM oracle.lbs.mapcache.MCSServlet doPost
    FINER: <request type="unknown request type" data_source="MVDEMO"/>
    Jan 25, 2008 5:26:22 PM oracle.lbs.mapcache.MCSServlet doPost
    FINER: <request type="unknown request type" data_source="MVDEMO"/>
    Jan 25, 2008 5:26:59 PM oracle.lbs.foi.FOIServlet dumpURLParams
    FINEST: Servlet URL parameters (/foi):
    [width] [2048]
    [height] [1536]
    [theme] [grim.MOSAIC2]
    [dstsrid]
    [8307]
    [cachefoi] [yes]
    [bbox] [-84.1257287289893:30.988239674744463:-82.76821692338207:32.006373528949894]
    [request] [getfoi]
    [area] [no]
    [clickable] [yes]
    [version] [1.0]
    End of servlet URL parameters (/foi).
    Jan 25, 2008 5:26:59 PM oracle.lbs.foi.FOIServlet doPost
    FINEST: user making foi request: null
    Jan 25, 2008 5:26:59 PM oracle.lbs.mapserver.core.MapperPool getMapper
    FINER: getMapper(grim) begins...
    Jan 25, 2008 5:26:59 PM oracle.lbs.mapserver.core.MapperPool getMapper
    FINER: getMapper() succeeded.
    Jan 25, 2008 5:26:59 PM oracle.sdovis.DBMapMaker addPredefinedTheme
    FINEST: adding predefined theme [name=MOSAIC2]
    Jan 25, 2008 5:26:59 PM oracle.sdovis.ThemeTable getCommonAttributes
    FINEST: key_column using default: ROWID
    Jan 25, 2008 5:26:59 PM oracle.sdovis.ThemeTable getGeoRasterTheme
    FINER: Operation name: normalize
    Jan 25, 2008 5:26:59 PM oracle.sdovis.LoadThemeData run
    FINER: LoadThemeData running thread: Thread-37
    Jan 25, 2008 5:26:59 PM oracle.sdovis.theme.GeoRasterThemeProducer prepareData
    FINEST: Theme definition SRID: 8307
    Jan 25, 2008 5:26:59 PM oracle.sdovis.theme.GeoRasterThemeProducer prepareData
    FINER: Original query window: -84.1257287289893,30.988239674744463,-82.76821692338207,32.006373528949894
    Jan 25, 2008 5:26:59 PM oracle.sdovis.theme.GeoRasterThemeProducer prepareData
    FINER: [Query] select grt.GEORASTER from MOSAICS grt where grt.GEORASTER.rasterid = ?
    Jan 25, 2008 5:26:59 PM oracle.sdovis.theme.GeoRasterThemeProducer prepareData
    FINER: Fetch size: 10
    Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeProducer prepareData
    FINEST: Data SRID: 8307
    Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeProducer isDataWithinScale
    FINER: [Master scale] 0.06363336588783941 [Scale factor for theme MOSAIC2] 1.0
    Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeProducer isDataWithinScale
    INFO: Screen resolution: 0.0027150236112144814
    Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeProducer prepareData
    FINER: ULT offset: 0,0
    Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeDefinition getSpatialResolution
    FINEST: Res X: 5.000000001587068E-6 Res Y: 5.000000001587068E-6 Pyramidlevel: 0
    Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeProducer prepareData
    FINEST: Upper Left Model Coordinate: -83.5357 , 31.4825
    Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeDefinition getSpatialResolution
    FINEST: Res X: 5.000000001587068E-6 Res Y: 5.000000001587068E-6 Pyramidlevel: 0
    Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeDefinition getPyramidLevel
    FINEST: Pyramid level: 5 GeoRaster: 102.0 for screen resolution: 0.0027150236112144814
    Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeDefinition getSpatialResolution
    FINEST: Res X: 1.6000000005078618E-4 Res Y: 1.6000000005078618E-4 Pyramidlevel: 5
    Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeProducer prepareData
    FINEST: GeoRaster Dimension: width= 2717.0 height= 3947.0
    Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeProducer prepareData
    FINER: [DimX] 83[DimY] 122
    Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeProducer prepareData
    FINER: Converting to cell coordinate: [pyramidLevel] 5 [X] -84.1257287289893 [Y] 32.006373528949894
    Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeDefinition getCellCoordinate
    FINEST: getCellCoordinate query: SELECT
    sdo_geor.getCellCoordinate(grt.GEORASTER,?,sdo_geometry(2001,8307,sdo_point_type(?,?,null), null,null)) coord FROM MOSAICS
    grt WHERE grt.GEORASTER.rasterid = ? and grt.GEORASTER.rasterdatatable = ?
    Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeDefinition getCellCoordinate
    FINEST: Row:-3275 Column: -3688
    Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeProducer prepareData
    FINER: Converting to cell coordinate: [pyramidLevel] 5 [X] -82.76821692338207 [Y] 30.988239674744463
    Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeDefinition getCellCoordinate
    FINEST: getCellCoordinate query: SELECT
    sdo_geor.getCellCoordinate(grt.GEORASTER,?,sdo_geometry(2001,8307,sdo_point_type(?,?,null), null,null)) coord FROM MOSAICS
    grt WHERE grt.GEORASTER.rasterid = ? and grt.GEORASTER.rasterdatatable = ?
    Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeDefinition getCellCoordinate
    FINEST: Row:3089 Column: 4796
    Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeProducer prepareData
    FINER: Calling JGeoRaster.getRasterImage - area: 0 , 0 , , 83 , 122
    Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeProducer prepareData
    FINER: End of JGeoRaster.getRasterImage call.
    Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeProducer performImageProcessing
    FINER: Operation name: normalize
    Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeProducer performImageProcessing
    FINER: Normalize operation.
    Jan 25, 2008 5:27:02 PM oracle.sdovis.theme.GeoRasterThemeProducer prepareData
    FINEST: # image loaded: 1
    Jan 25, 2008 5:27:02 PM oracle.lbs.mapserver.core.MapperPool freeMapper
    FINER: freeMapper() begins...
    Jan 25, 2008 5:27:02 PM oracle.lbs.foi.FOIServlet sendGZippedResponse
    FINEST: Sending FOI response in gzip format.

    Hi Bruce,
    for GeoRaster themes you can define a specific pyramid level to render, or you can leave the pyramid level null on the theme definition, and in this case MapViewer calculates the best level to render. The second option is recommended as it avoids loading unnecessary data given the current display parameters. If you are seeing your image get blocked, most likely at this zoom level and up you have reached the highest pyramid level of the GeoRaster. Even in MapBuilder if you keep zoom in, you get a blocked image after reaching the highest resolution level.
    Joao

  • How to create substyles in Oracle Maps?

    Hi, is there any way to create substyles in Oracle Maps? I would like to create a style as described in the User's Guide for Oracle MapViewer, 3.1.12 Map Request Using Advanced Styles and Rendering Rules. This example uses a substyle element nested inside the style element.
    I use MVThemeBasedFOI.addStyle to add a style to my request and MVThemeBasedFOI.setRenderingStyle to set the style for the theme. However, there's no setRenderingSubstyle or something like that.
    I use Oracle 10.2.0.3.0, OC4J 10.1.3.5.0, MapViewer 10.1.3.3, and would like to create an Oracle Maps application. Thanks in advance.
    Regards,
    Markus

    I don't have a version 8i (now desupported) database around to look, but to create a schema in oracle databases you create a user.
    So... create yourself a new user and you've created a schema automatically.
    ;)

  • How to Display Grid in ORacle Forms

    Hi Friends and Experts
    I have a requirement to display the records in Grid in ORacle Forms. This grid is a kind of Java grid. Help on this or any reference material for implementing this would be grately appreciated.
    Thanks in Advance.
    Ahmed

    what forms-version?
    what exactly do you mean with grid? Do you have a special ready-made component you want to use ? Do you have any functional requirements for your grid?
    For a "normal" data grid, you could just layout your data in tabular way, perhaps with a stacked canvas, to have a scrollable area to the right
    If you use forms in web you could use a javabean for this, if so have a look at Francois's blog-page http://forms.pjc.bean.over-blog.com/40-categorie-461064.html
    hope this helps

  • How to Display Data from Oracle E Business Suite tables in ADF

    Hi,
    I am new to ADF.
    I have a requirement to Create an ADF page for Search Results Screen.
    However the result data is from one of the Oracle E Business Suite Tables.
    ie I need to create a Screen where user will enter a Purchase Order Number and Click on Button.
    The Screen should show details from PO_HEADERS_ALL (from Oracle ERP Database Table) based on the entered PO Number.
    Is it possible to implement the same? Can some one guide me how to do it?
    Thanks,
    Kamath

    Hi,
    Is there a way where I can create a VO in ADF to which I can insert records dynamically from a source and the Source connects to E Business Suite tables and returns results ie BPEL etc.
    http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/bcadvvo.htm#sm0341
    Just replace the PLSQL example with your data source
    Can ADF invoke SOA which inturn connects to Oracle E Business Suite and fetches the data from Oracle tables and pass it back to ADF? Is it possible
    Yes. Just use a WS proxy client to access the SOA entry point (WSDL) and follow the link above
    Frank

  • How to display image in oracle forms 10g

    hello good morning
    I need to display an image in forms 10g
    I can use READ_IMAGE_FILE ('imagen_name', 'URL', 'block.image_item');
    ok if I have my forms stored in a directory -----> */ FORMS / MYSAPP* here are all my fmx
    HERE ARE MY PICTURES ---> */ FORMS / MYSAPP / IMAGES*
    As I can put the URL to access an image that is in that directory
    slds

    Hi,
    You should have the webutil
    see this post
    http://sheikyerbouti.developpez.com/tutoforms10g/tutoforms10g.htm

  • How to display result of database query in JFrame?

    How to display result of oracle database query in JFrame?
    This is part of my code:
    String username, password;
              DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
              OracleConnection conn = DriverManager.getConnection(String url, String username, String password);
    Statement s= conn.createStatement();
    ResultSet q= s.executeQuery("SELECT A, B, C FROM TABLE X");
    Forget what url, username & password are. Is there any problem with my code?
    What should be next if I want to display result of the query in a table in JFrame?Thx !

    How to create JTable with unknown no. of rows? How to get no. of rows of a query?
    I saw the demo of creating JTable on java.sun.com but the the table has a certain no. of rows which is not applicable to my case.
    Suppose the result of query is a table with 3 attributes so there are 3 columns in the table.
    R contains the result of the query.
    Should it be something like this if I want to create JTable of the query?
    How to make n rows of {R.getString(1),R.getString(2),R.getString(3)};?
    public SimpleTableDemo() {
    super(new GridLayout(1,0));
    String[] columnNames = {"A",
    "B",
    "C",
    while (R.next())
    // content of a row
    Object[][] data = {R.getString(1),R.getString(2),R.getString(3)};
    I can't run it because I still can't debug my code which is said before.
    Thx!

  • Oracle map for Singapore

    Hi.
    Does anyone know how can i get the oracle map for Singapore?
    Thanks

    Hi,
    I think the spatial forum is a better place to ask for this
    Spatial
    Frank

  • Please Help::How to display a Map with LIsts as Keys and Values using JSTL

    Hi,
    I need some assistance on how to display a Map in JSP using struts or core JSTL. I have a HashMap which has a List of keys and each key maps to a value of an ArrayList.i.e I have an ArrayList of taxCodes and each taxCode maps to a value of taxDetails which is an ArrayList of details for for that particular taxCode. I have some trouble to display each taxCode then display taxDetails for each taxCode. Here is my code below:
    OrderDetails.java
    package orderitems;
    import java.sql.*;
    import java.util.*;
    public class OrderDetails {
        private LineOder lineOrder;
        private Map lineItems;
        //returns an item number, key_item, from its unique keys
        public int getItemNumber(int key_item, String key_year,
                String key_office,String key_client,String key_company){
            Connection conn = null;
            Statement stat = null;
            ResultSet rst = null;
            int itmNum = 0;
             * key_item a unique number for an item.
             * key_year,key_office,key_client,key_company unique keys
             * for each order where this key_item is taken
             * from.
            String select = "SELECT key_item FROM "+
                    Constants.WEB_TABLE +" WHERE key_item = " + key_item +
                    " AND key_year = '" + key_year + "'" +
                    " AND key_office = '" + key_office + "'" +
                    " AND key_client = '" + key_client + "'" +
                    " AND key_company = '" + key_company +"'";
            DbConnection dbConn = new DbConnection();
            try {
                conn = dbConn.getDbConnection(Constants.WEB_JNDI);
                stat = conn.createStatement();
                rst = stat.executeQuery(select);
                if(rst.next()){
                    itmNum = Integer.parseInt(rst.getString("key_item"));
            } catch (SQLException ex) {
                ex.printStackTrace();
            } finally{
                SQLHelper.cleanUp(rst, stat, conn);
            return itmNum;
        //get a list of item number(item codes)
        public List getAllItemNumbers(String key_year,
                String key_office,String key_client,String key_company){
            List itemNumbers = new ArrayList();
            LineItem itemNumber = null;
            Connection conn = null;
            Statement stat = null;
            ResultSet rst = null;
            String select = "SELECT key_item FROM "+ Constants.WEB_TABLE +
                    " WHERE key_year = '" + key_year + "'" +
                    " AND key_office = '" + key_office + "'" +
                    " AND key_client = '" + key_client + "'" +
                    " AND key_company = '" + key_company + "'";
            DbConnection dbConn = new DbConnection();
            try {
                conn = dbConn.getDbConnection(Constants.WEB_JNDI);
                stat = conn.createStatement();
                rst = stat.executeQuery(select);
                while(rst.next()){
                    itemNumber = new LineItem();
                    itemNumber.setKey_item(Integer.parseInt(rst.getString("key_item")));
                    itemNumbers.add(itemNumber);
            } catch (SQLException ex) {
                ex.printStackTrace();
            } finally{
                SQLHelper.cleanUp(rst, stat, conn);
            return itemNumbers;
        //get a list of tax codes
        public List getAllTaxCodes(int key_item, String key_year,
                String key_office,String key_client,String key_company){
            Connection conn = null;
            Statement stat = null;
            ResultSet rst = null;
            ItemTax taxCode;
            List taxCodes = new ArrayList();
            int itemNum = getItemNumber(key_item, key_year,
                    key_office,key_client,key_company);
            String select = "SELECT key_tax_code FROM "+
                    Constants.WEB_TABLE +" WHERE key_item = " + itemNum +
                    " AND key_year = '" + key_year + "'" +
                    " AND key_office = '" + key_office + "'" +
                    " AND key_client = '" + key_client + "'" +
                    " AND key_company = '" + key_company +"'";
            DbConnection dbConn = new DbConnection();
            try {
                conn = dbConn.getDbConnection(Constants.WEB_JNDI);
                stat = conn.createStatement();
                rst = stat.executeQuery(select);
                while(rst.next()){
                    taxCode = new ItemTax();
                    taxCode.setKey_tax_code(rst.getString("key_tax_code"));
                    taxCodes.add(taxCode);
            } catch (SQLException ex) {
                ex.printStackTrace();
            } finally{
                SQLHelper.cleanUp(rst, stat, conn);
            return taxCodes;
        /////This methode returns a Map which am trying to display in JSP
        //use tax code to get tax details
        public Map getItemTaxDetails(String key_year,String key_office,
                String key_client,String key_company,int key_item){
            ItemTax taxDetail = null;
            List taxDetails = new ArrayList();
            List itemTaxCodes = new ArrayList();
            Map itemTaxDetails = new HashMap();
            Connection conn = null;
            Statement stat = null;
            ResultSet rst = null;
            //get a list of all tax codes of an item with a
            //given item number
            itemTaxCodes = getAllTaxCodes(key_item,key_year,
                    key_office,key_client,key_company);
            DbConnection dbConn = new DbConnection();
            try {
                conn = dbConn.getDbConnection(Constants.WEB_JNDI);
                stat = conn.createStatement();
                for(Iterator taxCodeIter= itemTaxCodes.iterator(); taxCodeIter.hasNext();){
                    ItemTax itemTaxCode = (ItemTax)taxCodeIter.next();
                    String taxCode = itemTaxCode.getKey_tax_code();
                    String select = "SELECT tax_type,tax_value," +
                            "tax_limit_val FROM "+ Constants.WEB_TABLE +
                            " WHERE key_item = "+ key_item +
                            " AND key_year = '" + key_year + "'" +
                            " AND key_office = '" + key_office + "'" +
                            " AND key_client = '" + key_client + "'" +
                            " AND key_company = '" + key_company +"'" +
                            " AND key_tax_code = '" + taxCode + "'";
                    rst = stat.executeQuery(select);
                    while(rst.next()){
                        taxDetail = new ItemTax();
                        //records to be displayed only
                        taxDetail.setKey_item(Integer.parseInt(rst.getString("key_item")));
                        taxDetail.setTax_value(rst.getString("tax_value"));
                        taxDetail.setTax_limit_val(Float.parseFloat(rst.getString("tax_limit_val")));
                        //////other details records ommited//////////////////////////
                        taxDetails.add(taxDetail);////An ArrayList of taxDetails for each taxCode
                     * A HashMap which has all taxCodes of an item as its keys
                     * and an ArrayList of taxdetails as its values.
                     * I return this for display in a JSP.
                    itemTaxDetails.put(taxCode,taxDetails);
                System.out.println();
                System.out.println("*********CONSOLE OUTPUT*************");//display on console
                Set set = itemTaxDetails.keySet();
                Iterator iter = set.iterator();
                System.out.println("Key\t\tValue\r\n");
                while (iter.hasNext()) {
                    Object taxCode=iter.next();
                    Object details=itemTaxDetails.get(taxCode);
                    System.out.println(taxCode +"\t" + details);
                System.out.println("************************************");
            } catch (SQLException ex) {
                ex.printStackTrace();
            } finally{
                SQLHelper.cleanUp(rst, stat, conn);
            return itemTaxDetails;
        //details of an item with all its taxes
        public List getAllItemDetails(String key_year,
                String key_office,String key_client,String key_company){
            List lineItems = new ArrayList();
            List itemNumbers = new ArrayList();
            Map taxDetails = new HashMap();
            LineItem item = null;
            Connection conn = null;
            Statement stat = null;
            ResultSet rst = null;
            //A list of all item numbers in the declaration
            itemNumbers = getAllItemNumbers(key_year,
                    key_office,key_client,key_company);
            DbConnection dbConn = new DbConnection();
            try {
                conn = dbConn.getDbConnection(Constants.WEB_JNDI);
                stat = conn.createStatement();
                for(Iterator itemIter= itemNumbers.iterator(); itemIter.hasNext();){
                    LineItem itemNum = (LineItem)itemIter.next();
                    int itemNumber = itemNum.getKey_item();
                    String select = "SELECT item_description,item_mass," +
                            "item_cost" +
                            " FROM " + Constants.WEB_TABLE +
                            " WHERE key_year = '"+key_year+"'" +
                            " AND key_office = '"+key_office+ "'"+
                            " AND key_client = '"+key_client+ "'"+
                            " AND key_company = '"+key_company+ "'"+
                            " AND key_item = " + itemNumber;
                    rst = stat.executeQuery(select);
                    while(rst.next()){
                        item = new LineItem();
                        item.setItem_description(rst.getString("item_description"));
                        item.setItem_mass(Float.parseFloat(rst.getString("item_mass")));
                        item.setKey_item(Integer.parseInt(rst.getString("item_cost")));
                        //////other details records ommited//////////////////////////
                        /* A HashMap of all itemTaxeCodes as its keys and an
                         * ArrayList of itemTaxedetails as its values
                        taxDetails = getItemTaxDetails(item.getKey_year(),item.getKey_office(),
                                item.getKey_client(),item.getKey_company(),item.getKey_item());
                        //item tax details
                        item.setItmTaxes(taxDetails);
                        //list of items with tax details
                        lineItems.add(item);
            } catch (SQLException ex) {
                ex.printStackTrace();
            } finally{
                SQLHelper.cleanUp(rst, stat, conn);
            return lineItems;
        public Set getOrders(String key_year,String key_office,
                String key_client,String key_company){
            List lineItems = new ArrayList();
            Set lineOrders = new HashSet();
            Connection conn = null;
            Statement stat = null;
            ResultSet rst = null;
            LineOder lineOrder = null;
            String select = "SELECT * FROM " + Constants.WEB_TABLE +
                    " WHERE key_year = '" + key_year + "'" +
                    " AND key_office = '" + key_office + "'" +
                    " AND key_client = '" + key_client + "'" +
                    " AND key_company = '" + key_company + "'";
            DbConnection dbConn = new DbConnection();
            try {
                conn = dbConn.getDbConnection(Constants.WEB_JNDI);
                stat = conn.createStatement();
                rst = stat.executeQuery(select);
                while(rst.next()){
                    lineOrder = new LineOder();
                    lineOrder.setKey_year(rst.getString("key_year"));
                    lineOrder.setKey_office(rst.getString("key_office"));
                    lineOrder.setKey_client(rst.getString("key_client"));
                    lineOrder.setKey_company(rst.getString("key_company"));
                    ////list of items with all their details
                    lineItems = getAllItemDetails(lineOrder.getKey_year(),lineOrder.getKey_office(),
                            lineOrder.getKey_client(),lineOrder.getKey_company());
                    //setting item details
                    lineOrder.setItems(lineItems);
                    //a list of order with all details
                    lineOrders.add(lineOrder);
            } catch (SQLException ex) {
                ex.printStackTrace();
            } finally{
                SQLHelper.cleanUp(rst, stat, conn);
            return lineOrders;
    Controller.java
    package orderitems;
    import java.io.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Controller extends HttpServlet {
        private Map taxDetails = new HashMap();
        private OrderDetails orderDetails = null;
        protected void processRequest(HttpServletRequest request,
                HttpServletResponse response)throws
                ServletException, IOException {
            response.setContentType("text/html;charset=UTF-8");
            String key_year = "2007";
            String key_office = "VZX00";
            String key_company = "DG20";
            String key_client =  "ZI001";
            int key_item = 1;
            String nextView = "/taxdetails_list.jsp";
            orderDetails = new OrderDetails();
            taxDetails = orderDetails.getItemTaxDetails(key_year,key_office,
                    key_company,key_client,key_item);
            //Store the collection objects into HTTP Request
            request.setAttribute("taxDetails", taxDetails);
            RequestDispatcher reqstDisp =
                    getServletContext().getRequestDispatcher(nextView);
            reqstDisp.forward(request,response);
        protected void doGet(HttpServletRequest request,
                HttpServletResponse response)throws
                ServletException, IOException {
            processRequest(request, response);
        protected void doPost(HttpServletRequest request,
                HttpServletResponse response)throws
                ServletException, IOException {
            processRequest(request, response);
    taxdetails_list.jsp
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <head>
            <title>Simple Tax Detail Diaplay ::</title>
            <link rel="stylesheet" type="text/css" href="imgs/orders.css"/>
        </head>
        <body>
            <jsp:useBean id="taxDetails" class="java.util.HashMap" scope="request"/>
            <table>
                <c:forEach items="${taxDetails}" var="hMap">
                    <tr>
                        <td><c:out value="${hMap.key}" /></td>
                        <!--td><%--c:out value="${hMap.value}" /--%></td-->
                    </tr>
                </c:forEach>
            </table>
        </body>
    </html>am displaying taxCodes(in this case i have VAT and ICD) fine but cant figure out how to display a list of value for each taxCode.Here is the output am getting
    both in my JSP and on the console:
    *******************************CONSOLE OUTPUT****************************
    Key          Value
    ICD     [orderItems.ItemTax@13e6226, orderItems.ItemTax@9dca26]
    VAT [orderItems.ItemTax@13e6226, orderItems.ItemTax@9dca26]
    Edited by: aiEx on Oct 8, 2007 6:54 AM

    hi evnafets,
    yes i need a nested for loop.I have tried your advice but my bean properties are not found.Am getting this error:
    javax.servlet.ServletException: Unable to find a value for "key_item" in object of class "java.lang.String" using operator "."
    I have tried this as stated earlier in the post:I have tried to make the method getItemTaxDetails return a List and get the returned list value as taxDetails. I then tested to display this list on JSP and its displaying fine.
    public List getItemTaxDetails(String key_year,String key_office,
                String key_client,String key_company,int key_item){
            ItemTax taxDetail = null;
            List taxDetails = new ArrayList();
            List itemTaxCodes = new ArrayList();
            Map itemTaxDetails = new HashMap();
            Connection conn = null;
            Statement stat = null;
            ResultSet rst = null;
            //get a list of all tax codes of an item with a
            //given item number
            itemTaxCodes = getAllTaxCodes(key_item,key_year,
                    key_office,key_client,key_company);
            DbConnection dbConn = new DbConnection();
            try {
                conn = dbConn.getDbConnection(Constants.WEB_JNDI);
                stat = conn.createStatement();
                for(Iterator taxCodeIter= itemTaxCodes.iterator(); taxCodeIter.hasNext();){
                    ItemTax itemTaxCode = (ItemTax)taxCodeIter.next();
                    String taxCode = itemTaxCode.getKey_tax_code();
                    String select = "SELECT tax_type,tax_value," +
                            "tax_limit_val FROM "+ Constants.WEB_TABLE +
                            " WHERE key_item = "+ key_item +
                            " AND key_year = '" + key_year + "'" +
                            " AND key_office = '" + key_office + "'" +
                            " AND key_client = '" + key_client + "'" +
                            " AND key_company = '" + key_company +"'" +
                            " AND key_tax_code = '" + taxCode + "'";
                    rst = stat.executeQuery(select);
                    while(rst.next()){
                        taxDetail = new ItemTax();
                        //records to be displayed only
                        taxDetail.setKey_item(Integer.parseInt(rst.getString("key_item")));
                        taxDetail.setTax_value(rst.getString("tax_value"));
                        taxDetail.setTax_limit_val(Float.parseFloat(rst.getString("tax_limit_val")));
                        //////other details records ommited//////////////////////////
                        taxDetails.add(taxDetail);////An ArrayList of taxDetails for each taxCode
                     * A HashMap which has all taxCodes of an item as its keys
                     * and an ArrayList of taxdetails as its values.
                     * I return this for display in a JSP.
                    itemTaxDetails.put(taxCode,taxDetails);
            } catch (SQLException ex) {
                ex.printStackTrace();
            } finally{
                SQLHelper.cleanUp(rst, stat, conn);
            //return itemTaxDetails;
            return taxDetails;
        }And my JSP
    taxdetails_list.jsp
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <link rel="stylesheet" type="text/css" href="imgs/orders.css"/>
        </head>
        <body>
            <table>
                <c:forEach var="curRecord" items="${taxDetails}" varStatus="rowCounter">
                        <c:choose>
                            <c:when test="${rowCounter.count % 2 == 0}">
                                <c:set var="rowStyle" scope="page" value="odd" />
                            </c:when>
                            <c:otherwise>
                                <c:set var="rowStyle" scope="page" value="even" />
                            </c:otherwise>
                        </c:choose>
                        <tr class="${rowStyle}">
                            <td>${curRecord.key_item}</td>
                            <td>${curRecord.tax_value}</td>
                            <td>${curRecord.tax_limit_val}</td>
                        </tr>
                    </c:forEach>
            </table>
        </body>
    </html>I can't see where am going wrong even with your advice.Please help.
    Thnx.

  • How to display client date in oracle

    Hi All,
    How to display client system date in oracle. When I try to display date & time oracle displays server date and time but I need to display client date & time. How can I achieve that?
    Thank you

    user536769 wrote:
    How to display client system date in oracle. When I try to display date & time oracle displays server date and time but I need to display client date & time. How can I achieve that?As Nicolas says, you can't easily do this.
    The reason is that the SQL engine (and the PL/SQL engine) are processes running on the database server and so they pick up the server date/time. Those processes, running on that server have no knowledge of "client" machines and no way to connect to them. Network security ensures that one machine can't just get onto another machine and access it's operating system without any form of authorisation, hence the only way to achieve this is to have some way for the server to serve a java applet or some such thing to the client and the client user accept that applet to run on their machine and then that applet obtains the relevant details and passes it back to the server.
    Imagine if you wanted to write code on your client machine to go to you colleagues client machine and get the date/time from it, how easy would that be to do without your colleague authorising some part of your software to run on his machine?
    ;)

  • How to display Date Calendar in Oracle BI Answers Prompts (parameter)

    I'm still new to OBIEE.
    How to display Date Calendar in Oracle BI Answers Prompts (parameter)?
    Thanks.

    Hi,
    While creating Dash Board prompt choose the control to 'Calendar'.
    I think it is not possible to provide 'Calendar' control using Prompts tab while creating request.
    It is possible to write Java Script for a Column of data type 'char'. So, cast the date data type to char.
    Go to: Column Properties --> Data Format
    Choose override default data format to view the available options in the drop down list.
    I would be very happy if anybody acknowledge me that I am wrong.
    -Vency

  • How to use Oracle maps in APEX??

    I am developing one application in APEX 3.2. I need to use Oracle Map for the same.
    How to integrate Oracle maps with Apex ?? Can any one help me for this ?
    Thanks

    Nagesh.Patil wrote:
    Hi All,
    I want to use oracle workflows in my apex application.
    can anybody tell me how can I get this ?
    Thanks in advance..
    Database version : 11g XE
    Apex version : 4.0
    Nagesh Patil
    Oracle Workflow is only available as a component of EBS. It has never been available on, and is not certified for Oracle 11g, nor any version of XE.

  • How to display a oracle table from a java program?

    How to display a oracle table from a java program.
    Hello friends, I have written a Java program, using oracle 10g as backend.
    I want to display a oracle table as output. Im not getting how to display oracle table as a output table.. Pls help me
    Thank you

    jayanthds, you're not going to get a satisfactory
    answer to this here. it's too big a task to justbe
    quickly outlined in a forum - the reply "all youneed
    to do is to query you table and return it asJTable"
    is worthless, for example, since the solution to
    any problem can be distilled to such a
    soundbite, if need be. doesn't make the solutionany
    simpler
    essentially you're asking "how do I write adatabase
    application?". all you'll get is snippets of code
    that, when fitted together, will eventually helpyou
    do this, but you'll spend days and days comingback
    saying "right, I've done that, now what?" until
    either you or the forum gets frustrated with the
    whole affair and the process stops
    there are entire books written about this subject,
    and countless tutorials and guides on theinternet.
    you're better off going down that routehehehe.well, it's true! I used to have a manager that would outline the solution to a problem in a few lines of pseudocode, and then firmly believe that the actual solution would be just as brief and simple. shame his pseudocode included such lofty abstractions as "reformat all data"

  • How to access via javascript with Oracle Maps to a external Geometry Cache

    If i've defined CTR_10000 as a Web map cache in mapviewer 10.1.3, what is Oracle Maps javascript code to access that
    Layer?
    I've tried:
    vat ctr10kLayer = new MVThemeBasedFOI('ctr10kLayer','CTR_10000');
    ctr10kLayer.enableAutoWholeImage(true);
    ctr10kLayer.setVisible(false);
    mapview.addThemeBasedFOI(ctr10kLayer);
    but dowsn't works,
    Any Suggestion?

    Here's an example (on 10133P5) using demis.nl's wms reference demo site.
    You will have to change the adapter class if you're using 10.1.3
    and use a proxy if necessary and set the tile_storage path
    for your environment
    map tile layer definition
    SQL> select name, is_internal, definition, base_map from user_sdo_cached_maps where name='DEMIS_
    NAME IS_I
    DEFINITION
    BASE_MAP
    DEMIS_WMS NO
    <map_tile_layer name="DEMIS_WMS" image_format="PNG" http_header_expires="168.0"
    concurrent_fetching_threads="3">
    <external_map_source url="http://www2.demis.nl/mapserver/wms.asp" request_met
    hod="GET" timeout="15000" adapter_class="mcsadapter.WMSAdapter" transparent="tru
    e" clipping_buffer="0">
    <properties>
    <property name="service" value="WMS"/>
    <property name="srs" value="EPSG:4326"/>
    <property name="format" value="image/png"/>
    <property name="layers" value="Countries,Borders,Coastlines"/>
    <property name="transparent" value="true"/>
    </properties>
    </external_map_source>
    <tile_storage root_path="/tilecache/"/>
    <coordinate_system srid="8307" minX="-180.0" minY="-90.0" maxX="180.0" maxY="
    90.0"/>
    <tile_image width="256" height="256"/>
    <zoom_levels levels="10" min_scale="5000.0" max_scale="5.0E7" min_tile_width=
    "0.003057205631621593" min_tile_height="30.572056316215935">
    <zoom_level level="0" name="" description="" scale="5.0E7" tile_width="30.
    572056316215935" tile_height="30.572056316215935"/>
    <zoom_level level="1" name="" description="" scale="1.7969068E7" tile_widt
    h="10.98702717691827" tile_height="10.98702717691827"/>
    <zoom_level level="2" name="" description="" scale="6457748.0" tile_width=
    "3.948532710638615" tile_height="3.948532710638615"/>
    <zoom_level level="3" name="" description="" scale="2320794.0" tile_width=
    "1.4190288973267207" tile_height="1.4190288973267207"/>
    <zoom_level level="4" name="" description="" scale="834050.0" tile_width="
    0.5099724714107979" tile_height="0.5099724714107979"/>
    <zoom_level level="5" name="" description="" scale="299742.0" tile_width="
    0.1832745860867039" tile_height="0.1832745860867039"/>
    <zoom_level level="6" name="" description="" scale="107721.0" tile_width="
    0.06586504956878192" tile_height="0.06586504956878192"/>
    <zoom_level level="7" name="" description="" scale="38713.0" tile_width="0
    .023670720323393343" tile_height="0.023670720323393343"/>
    <zoom_level level="8" name="" description="" scale="13912.0" tile_width="0
    .00850636894942392" tile_height="0.00850636894942392"/>
    <zoom_level level="9" name="" description="" scale="5000.0" tile_width="0.
    003057205631621593" tile_height="0.003057205631621593"/>
    </zoom_levels>
    </map_tile_layer>
    SQL>
    Html code to use it. Modify it for your installation and MV version
    <html>
    <head>
    <script language=javascript src="/mapviewer/fsmc/jslib/oraclemaps.js"></script>
    <script language=javascript>
    var mapview;
    function showMap()
    var baseURL = "http://localhost:8888/mapviewer";
    mapview = new MVMapView(document.getElementById("map"), baseURL);
    mapview.addMapTileLayer(new MVMapTileLayer("mvdemo.demis_wms"));
    var mapCenterLon = -100.45;
    var mapCenterLat = 39.6706;
    var mapZoom = 0;
    var mpoint = MVSdoGeometry.createPoint(mapCenterLon,mapCenterLat,8307);
    mapview.setCenter(mpoint);
    mapview.setZoomLevel(mapZoom);
    mapview.addNavigationPanel("EAST");
    var markerFOI = new MVFOI('markerfoi', mpoint, 'mvdemo.m.star',null,15,15);
    mapview.addFOI(markerFOI);
    mapview.display();
    </script>
    </head>
    <body onload="javascript:showMap();">
    <h2>WMS map tile example</h2>
    <div id="map" style="width: 100%; height: 70%"></div>
    </body>
    </html>

  • How to display Oracle error in web page

    Hi ,
    I am developing an application in Weblogic 10.2 and java . The data is fetched in oracle and i storre it in vector and display the same in the webpage .Whenever an oracle error or exception occurs , i need that ORA message to be displayed on the page , instead i get the error from Weblogic server being displayed on the page .The weblogic exception takes the precedence and it is displayed. Can anyone let me knwo how to display the oracle error instead of these head breaking lines , since it irritates the end users
    <Feb 10, 2009 6:38:31 AM MST> <Error> <HTTP> <BEA-101020> <[ServletContext(id=11
    504434,name=DefaultWebApp,context-path=/DefaultWebApp)] Servlet failed with Exce
    ption
    java.lang.NullPointerException
    at jsp_servlet.__ttt_cust_info._jspService(__ttt_cust_info.java:505)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
    (ServletStubImpl.java:1077)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:465)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:348)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:7047)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:3902)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2773)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    >

    I'm not convince that the null pointer exception is coming from the database. Rather, whatever you wrote to package the result might be at fault. Regardless, typically, to avoid the web container swallowing an exception is to catch it yourself. Your database call will need to catch the exception and repackage it for the JSP. A bad style would be to use scriptlet and catch the exception, but it could be useful for debugging.

Maybe you are looking for

  • Creation of secondary cost element

    Hai SAP Gurus Could any one please let me now how to create secondary cost element in SPRO. Thanks.

  • Uploading Urdu Books

    I have encountered some problems while uploading Urdu Books as PDF-Files. There is no "Form" for entering information about the Title of the book or the Publisher. Obviously the text within the PDF-File, which is in Urdu script cannot be read automat

  • Trying to upgrade from 10.4.4

    I am trying to upgrade from 10.4.4 to 10.4.8 For some reason the installation didn't work. It jst sat there stuck for a long time. I finally cancelled the installation and restarted. Though now Mail doesn't work. any idea what's going on?

  • Sequence of startup classes and EJB deployment

    The default sequence when WLS is starting is deploying EJB first and then startUpClasses. Could someone tell me if it's possible to change the sequence. Thanks a lot in advance.

  • Oracle SOA Governance

    Hi How to use Oracle SOA Governance with Oracle SOA suite. Where to install SOA governance? What should I do to use SOA Governance with Oracle SOA suite. Thanks in advance. Regards Nasir