Set periodically database (oracle 11g) statistics updates in EP7.0

Hello gurus,
I am trying to make database statistics update periodically in SAP standalone J2EE engine, anyone plz tell me the process.
I am using netweaver 7.0 with oracle 11g database in solaris sparc
if there is any script for stat updates plase post that script.
Thanks in advance

This is certainly a major problem. The issue is rather simple, SQL Developer is only retrieving as many rows as are specified in the preferences "SQL Array Fetch Size" (under preferences, database, advanced). A simple query on a table with 10,000 rows will only give stats on at most a retrieval of 500 rows since this is the max setting for the array fetch size. I'm not buying the argument that we don't want to wait for the entire result set. I suppose if your are only interested in seeing if the query is syntactically correct then not waiting for the entire set is fine. But the whole idea of AUTO TRACE is to see the statistics of the entire run so you can know what resources were used to compete the SQL. Seeing only the resources use to get the first set of rows is very misleading. And if you change the array fetch size to be smaller, your SQL will appear to run "better" when in reality you don't know who well it's running at all.
We need to be able to have AUTO TRACE retrieve all rows, not just the setting of array fetch size. There is currently no way to get AUTO TRACE to show the stats of a compete run.

Similar Messages

  • Difference btween oracle 10G database & oracle 11G database

    Hi
    i have a web application have 10G database engine, now i will upload it on a host server witch supports oracle 11G database.
    can i export Dump file from my Oracle10g database and import it into oracle 11G database successful.
    what can i do?
    please suggest me
    thank you

    Hi,
    Difference btween oracle 10G database & oracle 11G database Here is a complete list:
    http://www.dba-oracle.com/oracle11g/oracle_11g_new_features.htm
    can i export Dump file from my Oracle10g database and import it into oracle 11G database successful.Yes. Oracle supports backward compatibility . . .
    You mght not, however do it the other way . . .
    Hope this helps . . .
    Donald K. Burleson
    Oracle Press author
    Author of "Oracle Tuning: The Definitive Reference"
    http://www.rampant-books.com/t_oracle_tuning_book.htm
    "Time flies like an arrow; Fruit flies like a banana".

  • Not able to start database Oracle 11g on Linux Server

    Hi
    I am using Oracle 11g database. I have successfully installed it on my linux server (Oracle Linux 4).
    When i am trying to access database through url "https://localhost.localdomain:1158/em".
    Browser is throwing some error that SSL port is not enabled but i feel otherwise.
    I tried to diagonse the problem, where i could find that listener port is not getting started.
    How to start all the services related to Oracle Database ?
    I am newbie for linux as well as database.
    Detailed help 'll be appreciated. Thanks a lot.

    I tried running netca but it gave me following error :
    [oracle@localhost bin]$ ./netca
    Oracle Net Services Configuration:
    Xlib: connection to ":0.0" refused by server
    Xlib: No protocol specified
    Error: null
    Check the trace file for details: /u01/app/oracle/cfgtoollogs/netca/trace_OraDb11g_home1-1002093PM2348.log
    Oracle Net Services configuration failed. The exit code is 1
    My listener.ora file content is as follows :
    [oracle@localhost admin]$ more listener.ora
    # listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
    ADR_BASE_LISTENER = /u01/app/oracle
    Following is trace_OraDb11g_home1-1001255PM5356.log content :
    [root@localhost cfgtoollogs]# cd netca/
    [root@localhost netca]# ls
    netca_OraDb11g_home1-1001255PM5356.log trace_OraDb11g_home1-1001255PM5356.log
    netca_OraDb11g_home1-1002093PM2348.log trace_OraDb11g_home1-1002093PM2348.log
    [root@localhost netca]# more trace_OraDb11g_home1-1001255PM5356.log [main] [ 2010-01-25 17:53:57.009 IST ] [NetCALogger.initTrace:203] Oracle Net Configuration Assistant: 1001255PM5356
    [main] [ 2010-01-25 17:53:57.010 IST ] [NetCALogger.initTrace:204] Oracle Home: /u01/app/oracle/product/11.2.0/dbhome_1
    [main] [ 2010-01-25 17:53:57.011 IST ] [NetCALogger.initTrace:205] Oracle Base: /u01/app/oracle
    [main] [ 2010-01-25 17:53:57.011 IST ] [NetCALogger.initTrace:206] Oracle Home
    Name: OraDb11g_home1
    [main] [ 2010-01-25 17:53:57.049 IST ] [InventoryUtil.getOUIInvSession:347] setting OUI READ level to ACCESSLEVEL_READ_LOCKLESS
    [main] [ 2010-01-25 17:53:57.050 IST ] [HAUtils.<init>:188] oui location /u01/app/oraInventory/ContentsXML
    [main] [ 2010-01-25 17:53:57.068 IST ] [Version.isPre:274] version to be checked 11.2.0.1.0 major version to check against10
    [main] [ 2010-01-25 17:53:57.068 IST ] [Version.isPre:285] isPre.java: Returning FALSE
    [main] [ 2010-01-25 17:53:57.074 IST ] [OCR.loadLibrary:308]
    Inside constructor of OCR
    [main] [ 2010-01-25 17:53:57.095 IST ] [OCR.loadLibrary:316] Going to load the
    ocr library
    [main] [ 2010-01-25 17:53:57.096 IST ] [sPlatform.isHybrid:67] osName=Linux osArch=i386 rc=false
    [main] [ 2010-01-25 17:53:57.097 IST ] [sPlatform.isHybrid:67] osName=Linux osArch=i386 rc=false
    [main] [ 2010-01-25 17:53:57.097 IST ] [Library.load:254] Loading library /u01/app/oracle/product/11.2.0/dbhome_1/lib/libsrvmocr11.so
    [main] [ 2010-01-25 17:53:57.099 IST ] [OCR.loadLibrary:318] loaded ocr libraries
    [main] [ 2010-01-25 17:53:57.100 IST ] [OCR.isCluster:939] Calling OCRNative for isCluster()
    [main] [ 2010-01-25 17:53:57.103 IST ] [OCR.isCluster:943] OCR Result status =
    true
    [main] [ 2010-01-25 17:53:57.103 IST ] [OCR.isCluster:955] Bolean result = false
    [main] [ 2010-01-25 17:53:57.107 IST ] [CmdlineArgs.<init>:110] Initializing variables array...
    [main] [ 2010-01-25 17:53:57.107 IST ] [CmdlineArgs.<init>:116] Initializing NetProperties...
    [main] [ 2010-01-25 17:53:57.109 IST ] [CmdlineArgs.initArgs:133] Initializing
    command line arguments...
    [main] [ 2010-01-25 17:53:57.109 IST ] [CmdlineArgs.parseLogParam:290] Parsing
    /log argument...
    [main] [ 2010-01-25 17:53:57.116 IST ] [CmdlineArgs.parseLogParam:345] Returning Log File = null
    [main] [ 2010-01-25 17:53:57.123 IST ] [CmdlineArgs.setOraArgs:236] Setting Oracle arguments...
    [main] [ 2010-01-25 17:53:57.124 IST ] [CmdlineArgs.setOraArgs:240] Passed Oracle Home = /u01/app/oracle/product/11.2.0/dbhome_1
    [main] [ 2010-01-25 17:53:57.124 IST ] [CmdlineArgs.setOraArgs:243] Read Oracle Home = /u01/app/oracle/product/11.2.0/dbhome_1
    [main] [ 2010-01-25 17:53:57.125 IST ] [CmdlineArgs.setOraArgs:246] Read Oracle Home ID =
    [main] [ 2010-01-25 17:53:57.125 IST ] [CmdlineArgs.setOraArgs:249] Read Oracle Home Name = null
    [main] [ 2010-01-25 17:53:57.126 IST ] [CmdlineArgs.compareOraHome:183] Comparing Oracle Homes ...
    [main] [ 2010-01-25 17:53:57.126 IST ] [CmdlineArgs.compareOraHome:184] Oracle
    Home 1 = /u01/app/oracle/product/11.2.0/dbhome_1
    [main] [ 2010-01-25 17:53:57.127 IST ] [CmdlineArgs.compareOraHome:185] Oracle
    Home 2 = /u01/app/oracle/product/11.2.0/dbhome_1
    [main] [ 2010-01-25 17:53:57.127 IST ] [CmdlineArgs.compareOraHome:224] Returning true
    [main] [ 2010-01-25 17:53:57.128 IST ] [InitialSetup.configureOPS:4504] Cluster mode is OFF
    [main] [ 2010-01-25 17:53:57.128 IST ] [InitialSetup.<init>:4028] TNS_ADMIN is: null
    [main] [ 2010-01-25 17:53:57.133 IST ] [OPSUtil.getHomeVersion:446] Inside getHomeVersion...
    [main] [ 2010-01-25 17:53:57.134 IST ] [OPSUtil.getHomeVersion:447] oracleHome
    = /u01/app/oracle/product/11.2.0/dbhome_1
    [main] [ 2010-01-25 17:53:57.135 IST ] [OPSUtil.getHomeVersion:451] oracle.sysman.assistants.util.OracleHome Object = /u01/app/oracle/product/11.2.0/dbhome_1
    [main] [ 2010-01-25 17:53:57.135 IST ] [OracleHome.getVersion:877] OracleHome.getVersion called. Current Version: null
    [main] [ 2010-01-25 17:53:57.138 IST ] [InventoryUtil.getOUIInvSession:347] setting OUI READ level to ACCESSLEVEL_READ_LOCKLESS
    [main] [ 2010-01-25 17:53:57.138 IST ] [OracleHome.getVersion:896] Homeinfo /u01/app/oracle/product/11.2.0/dbhome_1,1
    [main] [ 2010-01-25 17:53:57.670 IST ] [OracleHome.getVersion:922] OracleHome.server.getVersion Version: 11.2.0.1.0
    [main] [ 2010-01-25 17:53:57.670 IST ] [OracleHome.getVersion:943] Current Version From Inventory: 11.2.0.1.0
    [main] [ 2010-01-25 17:53:57.670 IST ] [OracleHome.getVersion:948] using sqlplus: /u01/app/oracle/product/11.2.0/dbhome_1/bin/sqlplus
    [main] [ 2010-01-25 17:53:57.671 IST ] [OPSUtil.getHomeVersion:452] returning oracleHome Version = 11.2.0.1.0
    [main] [ 2010-01-25 17:53:57.671 IST ] [OracleHome.getVersion:877] OracleHome.getVersion called. Current Version: 11.2.0.1.0
    [main] [ 2010-01-25 17:53:57.671 IST ] [OracleHome.getVersion:943] Current Version From Inventory: 11.2.0.1.0
    [main] [ 2010-01-25 17:53:57.671 IST ] [OracleHome.getVersion:948] using sqlplus: /u01/app/oracle/product/11.2.0/dbhome_1/bin/sqlplus
    [main] [ 2010-01-25 17:53:57.672 IST ] [InitialSetup.<init>:4041] Admin location is: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin
    [main] [ 2010-01-25 17:53:57.783 IST ] [ConfigureProfile.setProfileParam:136] Setting NAMES.DIRECTORY_PATH: (TNSNAMES, EZCONNECT)
    [main] [ 2010-01-25 17:53:57.783 IST ] [ConfigureProfile.setProfileParam:136] Setting ADR_BASE: /u01/app/oracle
    [main] [ 2010-01-25 17:53:57.791 IST ] [HAUtils.getHASHome:583] Oracle home from system properties: /u01/app/oracle/product/11.2.0/dbhome_1
    [main] [ 2010-01-25 17:53:57.792 IST ] [HAUtils.getCRSHome:540] Getting configured CRS/HAS home for Oracle home ( /u01/app/oracle/product/11.2.0/dbhome_1 ) ...[main] [ 2010-01-25 17:53:57.794 IST ] [GETCRSHOMEUtil.<init>:76] Toolname: getcrshome --- Tool location: /u01/app/oracle/product/11.2.0/dbhome_1/srvm/adminTool dependencies: [Ljava.lang.String;@102799c
    [main] [ 2010-01-25 17:53:57.794 IST ] [NativeSystem.isCmdScv:471] isCmdScv: cmd=[]
    [main] [ 2010-01-25 17:53:57.795 IST ] [RuntimeExec.runCommand:75] Calling Runtime.exec() with the command
    [main] [ 2010-01-25 17:53:57.796 IST ] [RuntimeExec.runCommand:77] /bin/sh
    [main] [ 2010-01-25 17:53:57.796 IST ] [RuntimeExec.runCommand:77] -c
    [main] [ 2010-01-25 17:53:57.796 IST ] [RuntimeExec.runCommand:77] /u01/app/oracle/product/11.2.0/dbhome_1/srvm/admin/getcrshome
    [Thread-2] [ 2010-01-25 17:53:57.802 IST ] [StreamReader.run:61] In StreamReader.run
    [main] [ 2010-01-25 17:53:57.802 IST ] [RuntimeExec.runCommand:142] runCommand: Waiting for the process
    [Thread-1] [ 2010-01-25 17:53:57.802 IST ] [StreamReader.run:61] In StreamReader.run
    [main] [ 2010-01-25 17:53:57.815 IST ] [RuntimeExec.runCommand:144] runCommand: process returns 1
    [main] [ 2010-01-25 17:53:57.816 IST ] [RuntimeExec.runCommand:161] RunTimeExec: output>
    [main] [ 2010-01-25 17:53:57.816 IST ] [RuntimeExec.runCommand:170] RunTimeExec: error>
    [main] [ 2010-01-25 17:53:57.816 IST ] [RuntimeExec.runCommand:192] Returning from RunTimeExec.runCommand
    [main] [ 2010-01-25 17:53:57.818 IST ] [CmdToolUtil.doexecute:372] nativeSystem.runRemoteExecCmd failed. Command = /u01/app/oracle/product/11.2.0/dbhome_1/srvm/admin/getcrshome arguments = [] env = null
    [main] [ 2010-01-25 17:53:57.824 IST ] [HAUtils.isHASConfigured:349] Ignoring exception in isHASConfigured: PRCT-1011 : Failed to run "getcrshome"
    [main] [ 2010-01-25 17:53:57.824 IST ] [HAUtils.isHASConfigured:350] oracle.cluster.deployment.ClusterwareInfo.getConfiguredCRSHome(ClusterwareInfo.java:423)
    oracle.sysman.assistants.util.hasi.HAUtils.getCRSHome(HAUtils.java:544)
    oracle.sysman.assistants.util.hasi.HAUtils.getHASHome(HAUtils.java:604)
    oracle.sysman.assistants.util.hasi.HAUtils.isHASConfigured(HAUtils.java:345)
    oracle.net.ca.InitialSetup.checkHAConfiguration(NetCA.java:4653)
    oracle.net.ca.InitialSetup.<init>(NetCA.java:4075)
    oracle.net.ca.NetCA.main(NetCA.java:405)
    [main] [ 2010-01-25 17:53:57.825 IST ] [InitialSetup.checkHAConfiguration:4691]
    HA Server is NOT configured.
    [main] [ 2010-01-25 17:53:57.827 IST ] [NetCAResponseFile.<init>:68] Response file initialized: /u01/app/oracle/product/11.2.0/dbhome_1/network/install/netca_typ.rsp
    [main] [ 2010-01-25 17:53:57.828 IST ] [NetCAResponseFile.getInstalledComponents:107] Installed components from response file: server, net8, javavm
    [main] [ 2010-01-25 17:53:57.828 IST ] [NetCAResponseFile.getVirtualHost:164] Virtual Host from response file: null
    [main] [ 2010-01-25 17:53:57.829 IST ] [SilentConfigure.performSilentConfigure:174] Typical profile configuration.
    [main] [ 2010-01-25 17:53:57.831 IST ] [ConfigureProfile.setProfileParam:136] Setting NAMES.DIRECTORY_PATH: (TNSNAMES, EZCONNECT)
    [main] [ 2010-01-25 17:53:57.831 IST ] [ConfigureProfile.setProfileParam:136] Setting ADR_BASE: /u01/app/oracle
    [main] [ 2010-01-25 17:53:57.833 IST ] [SilentConfigure.performSilentConfigure:182] Typical listener configuration.
    [main] [ 2010-01-25 17:53:57.843 IST ] [ConfigureListener.isHASConfigured:1425]
    Calling SRVM api to check if Oracle Restart is configured ...
    [main] [ 2010-01-25 17:53:57.843 IST ] [HAUtils.getHASHome:583] Oracle home from system properties: /u01/app/oracle/product/11.2.0/dbhome_1
    [main] [ 2010-01-25 17:53:57.843 IST ] [HAUtils.getCRSHome:540] Getting configured CRS/HAS home for Oracle home ( /u01/app/oracle/product/11.2.0/dbhome_1 ) ...[main] [ 2010-01-25 17:53:57.844 IST ] [GETCRSHOMEUtil.<init>:76] Toolname: getcrshome --- Tool location: /u01/app/oracle/product/11.2.0/dbhome_1/srvm/adminTool dependencies: [Ljava.lang.String;@102799c
    [main] [ 2010-01-25 17:53:57.844 IST ] [NativeSystem.isCmdScv:471] isCmdScv: cmd=[]
    [main] [ 2010-01-25 17:53:57.844 IST ] [RuntimeExec.runCommand:75] Calling Runtime.exec() with the command
    [main] [ 2010-01-25 17:53:57.845 IST ] [RuntimeExec.runCommand:77] /bin/sh
    [main] [ 2010-01-25 17:53:57.845 IST ] [RuntimeExec.runCommand:77] -c
    [main] [ 2010-01-25 17:53:57.845 IST ] [RuntimeExec.runCommand:77] /u01/app/oracle/product/11.2.0/dbhome_1/srvm/admin/getcrshome
    [Thread-4] [ 2010-01-25 17:53:57.849 IST ] [StreamReader.run:61] In StreamReader.run
    [main] [ 2010-01-25 17:53:57.850 IST ] [RuntimeExec.runCommand:142] runCommand: Waiting for the process
    [Thread-3] [ 2010-01-25 17:53:57.850 IST ] [StreamReader.run:61] In StreamReader.run
    [main] [ 2010-01-25 17:53:57.863 IST ] [RuntimeExec.runCommand:144] runCommand: process returns 1
    [main] [ 2010-01-25 17:53:57.864 IST ] [RuntimeExec.runCommand:161] RunTimeExec: output>
    [main] [ 2010-01-25 17:53:57.864 IST ] [RuntimeExec.runCommand:170] RunTimeExec: error>
    [main] [ 2010-01-25 17:53:57.864 IST ] [RuntimeExec.runCommand:192] Returning from RunTimeExec.runCommand
    [main] [ 2010-01-25 17:53:57.865 IST ] [CmdToolUtil.doexecute:372] nativeSystem.runRemoteExecCmd failed. Command = /u01/app/oracle/product/11.2.0/dbhome_1/srvm/admin/getcrshome arguments = [] env = null
    [main] [ 2010-01-25 17:53:57.865 IST ] [HAUtils.isHASConfigured:349] Ignoring exception in isHASConfigured: PRCT-1011 : Failed to run "getcrshome"
    [main] [ 2010-01-25 17:53:57.865 IST ] [HAUtils.isHASConfigured:350] oracle.cluster.deployment.ClusterwareInfo.getConfiguredCRSHome(ClusterwareInfo.java:423)
    oracle.sysman.assistants.util.hasi.HAUtils.getCRSHome(HAUtils.java:544)
    oracle.sysman.assistants.util.hasi.HAUtils.getHASHome(HAUtils.java:604)
    oracle.sysman.assistants.util.hasi.HAUtils.isHASConfigured(HAUtils.java:345)
    oracle.net.ca.ConfigureListener.isHASConfigured(ConfigureListener.java:1428)
    oracle.net.ca.ConfigureListener.isHASRunning(ConfigureListener.java:1450)
    oracle.net.ca.ConfigureListener.validateListenerName(ConfigureListener.java:1697)
    oracle.net.ca.ConfigureListener.typicalConfigure(ConfigureListener.java:169)
    oracle.net.ca.SilentConfigure.performSilentConfigure(SilentConfigure.java:185)
    oracle.net.ca.InitialSetup.<init>(NetCA.java:4159)
    oracle.net.ca.NetCA.main(NetCA.java:405)
    [main] [ 2010-01-25 17:53:57.866 IST ] [ConfigureListener.isHASConfigured:1436]
    Is Oracle Restart configured: false
    [main] [ 2010-01-25 17:53:57.866 IST ] [ConfigureListener.isHASRunning:1465] Is Oracle Restart running: false
    [main] [ 2010-01-25 17:53:57.866 IST ] [ConfigureListener.typicalConfigure:201]
    Checking for free port in range: 1521-1540
    [main] [ 2010-01-25 17:53:57.867 IST ] [ConfigureListener.isPortFree:1010] Checking if port 1521 is free on local machine...
    [main] [ 2010-01-25 17:53:57.867 IST ] [ConfigureListener.isPortFree:1023] InetAddress.getByName(127.0.0.1): /127.0.0.1
    [main] [ 2010-01-25 17:53:57.868 IST ] [ConfigureListener.isPortFree:1025] Local host IP address: localhost.localdomain/127.0.0.1
    [main] [ 2010-01-25 17:53:57.868 IST ] [ConfigureListener.isPortFree:1027] Local host name: localhost.localdomain
    [main] [ 2010-01-25 17:53:57.868 IST ] [ConfigureListener.isPortFree:1039] Creating ServerSocket on Port:1521, IP Address: localhost.localdomain/127.0.0.1
    [main] [ 2010-01-25 17:53:57.871 IST ] [ConfigureListener.isPortFree:1042] Created ServerSocket successfully.
    [main] [ 2010-01-25 17:53:57.871 IST ] [ConfigureListener.isPortFree:1055] Creating ServerSocket on Port:1521, Local IP Address: /127.0.0.1
    [main] [ 2010-01-25 17:53:57.871 IST ] [ConfigureListener.isPortFree:1059] Created ServerSocket successfully.
    [main] [ 2010-01-25 17:53:57.872 IST ] [ConfigureListener.isPortFree:1065] Creating ServerSocket on Port:1521
    [main] [ 2010-01-25 17:53:57.872 IST ] [ConfigureListener.isPortFree:1068] Created ServerSocket successfully.
    [main] [ 2010-01-25 17:53:57.872 IST ] [ConfigureListener.isPortFree:1088] Returning is Port 1521 free: true
    [main] [ 2010-01-25 17:53:57.872 IST ] [ConfigureListener.typicalConfigure:208]
    Using port: 1521
    [main] [ 2010-01-25 17:53:57.880 IST ] [ConfigureListener.setListenerParam:1779] Setting ADR_BASE_LISTENER: /u01/app/oracle
    [main] [ 2010-01-25 17:53:57.882 IST ] [ConfigureListener.isPortFree:1010] Checking if port 1521 is free on local machine...
    [main] [ 2010-01-25 17:53:57.882 IST ] [ConfigureListener.isPortFree:1023] InetAddress.getByName(127.0.0.1): /127.0.0.1
    [main] [ 2010-01-25 17:53:57.883 IST ] [ConfigureListener.isPortFree:1025] Local host IP address: localhost.localdomain/127.0.0.1
    [main] [ 2010-01-25 17:53:57.883 IST ] [ConfigureListener.isPortFree:1027] Local host name: localhost.localdomain
    [main] [ 2010-01-25 17:53:57.883 IST ] [ConfigureListener.isPortFree:1039] Creating ServerSocket on Port:1521, IP Address: localhost.localdomain/127.0.0.1
    [main] [ 2010-01-25 17:53:57.883 IST ] [ConfigureListener.isPortFree:1042] Created ServerSocket successfully.
    [main] [ 2010-01-25 17:53:57.884 IST ] [ConfigureListener.isPortFree:1055] Creating ServerSocket on Port:1521, Local IP Address: /127.0.0.1
    [main] [ 2010-01-25 17:53:57.884 IST ] [ConfigureListener.isPortFree:1059] Created ServerSocket successfully.
    [main] [ 2010-01-25 17:53:57.884 IST ] [ConfigureListener.isPortFree:1065] Creating ServerSocket on Port:1521
    [main] [ 2010-01-25 17:53:57.885 IST ] [ConfigureListener.isPortFree:1068] Created ServerSocket successfully.
    [main] [ 2010-01-25 17:53:57.885 IST ] [ConfigureListener.isPortFree:1088] Returning is Port 1521 free: true
    [main] [ 2010-01-25 17:54:00.849 IST ] [SilentConfigure.performSilentConfigure:187] Typical service alias configuration.
    Let me know where i have gone wrong ?
    Thanks for ur effort..

  • Problem with Export User's data from database oracle 11g

    i want export all user data and Its tables from oracle 11g database, I am using the comand exp, pero export only the tables with data, i Have Some tables and Not Without export data These tables,
    can someone help me!

    problem with zero extent table
    exp is de-supported in 11g. Use expdp instead to export tables without any rows.
    Srini

  • Oracle 11g client Update Problem

    Hi ,
    I have problem with oracle 11g client, I have a treatment that is has selected information and update after the last treatment.The problem is that the update is sometimes the enssemble fields, even those I do not want to update.
    I use the 11g client with c #, my procedure is like update WHERE num = @ aram.I have doubts about the problems of loss of connection, because it give me the log: host not found, but there is a transaction, and in case of emergency I did a rollback.is there anyone who approaches to this problem??I took you to kindly help me, because the project and in production mode

    Apart from the fact that this has nothing to do with Oracle Forms the certifications and the version checks of the installer are there for a reason. Copying one version file doesn't make your RHEL6 a RHEL3. RHEL6 most certainly uses a different kernel, different libraries, different everything then RHEL3 (yes, Software Vendors change version numbers of their products not just for fun!). You might get lucky (using your friend google) that you get it working with some effort, but this doesn't guarantee that everything works and given the fact that this is not certified getting help is not that easy. Better yet is to save yourself the time and stick with certified combinations (maybe use OEL insted of RHEL?)
    cheers

  • Oracle Forms 6i and database oracle 11g

    Hello!
    Today we have Oracle Forms 6i running against databse 9i. We are in the process of upgrading our db to 11g.
    Will our Forms application still work? What steps do we need to do to make it work?
    Any input is valuable.
    We have the same quetsion oabout Oracle reports 6i.

    Hello,
    I you follow the Note:338513.1 on Metalink, you can see the following:
    Forms / Reports 6i patchset 16 or patchset 17 was certified to work against Oracle Server (RDBMS)+
    +10g Rel 1 (10.1.x)+
    Forms / Reports 6i has never been certified, nor will it ever be certified against Oracle Server (RDBMS) 10g Rel 2 (10.2.x) or Oracle Server (RDBMS) 11g (11.x).
    +(This is because Forms / Reports 6i is now de-supported - see important note below)+
    Important Note: Forms / Reports 6i is now de-supported e.g.
    - If running in client-server mode, Forms / Reports 6i was desupported at end of January 2005
    - If deploying over the web, Forms / Reports 6i (Oracle 9iAS Rel 1 Forms / Reports Services) was desupported at the end of June 2004
    This means that Forms / Reports development will no longer provide an error correction service for Forms / Reports 6i (unless an organisation has purchased extended maintenance support) Therefore, Oracle strongly recommends that customers using desupported versions upgrade to a supported version e.g upgrade to Oracle Developer Suite 10g Rel 1 or 2 / Oracle Application Server 10g Rel 1 or 2
    Francois

  • Installing oracle application express from the database with oracle 11g

    Hi,
    I installed oracle 11g release 1 and trying to install oracle APEX from the database with Embedded PL/SQL gateway. The installation guide require grant connect privilege to any host for the APEX_030200 database user, but this schema does not exist in the database...
    How to continue the installation of APEX ?

    Thanks Hari,
    But I need to enable network services in my database (oracle 11g).
    Do I have to replace in the PL/SQL script below apex_030200 by flows_030000 ?
    DECLARE
    ACL_PATH VARCHAR2(4000);
    ACL_ID RAW(16);
    BEGIN
    -- Look for the ACL currently assigned to '*' and give APEX_030200
    -- the "connect" privilege if APEX_030200 does not have the privilege yet.
    SELECT ACL INTO ACL_PATH FROM DBA_NETWORK_ACLS
    WHERE HOST = '*' AND LOWER_PORT IS NULL AND UPPER_PORT IS NULL;
    -- Before checking the privilege, ensure that the ACL is valid
    -- (for example, does not contain stale references to dropped users).
    -- If it does, the following exception will be raised:
    -- ORA-44416: Invalid ACL: Unresolved principal 'APEX_030200'
    -- ORA-06512: at "XDB.DBMS_XDBZ", line ...
    SELECT SYS_OP_R2O(extractValue(P.RES, '/Resource/XMLRef')) INTO ACL_ID
    FROM XDB.XDB$ACL A, PATH_VIEW P
    WHERE extractValue(P.RES, '/Resource/XMLRef') = REF(A) AND
    EQUALS_PATH(P.RES, ACL_PATH) = 1;
    DBMS_XDBZ.ValidateACL(ACL_ID);
    IF DBMS_NETWORK_ACL_ADMIN.CHECK_PRIVILEGE(ACL_PATH, 'APEX_030200', 'connect') IS NULL THEN
    DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(ACL_PATH,'APEX_030200', TRUE, 'connect');
    END IF;
    EXCEPTION
    -- When no ACL has been assigned to '*'.
    WHEN NO_DATA_FOUND THEN
    DBMS_NETWORK_ACL_ADMIN.CREATE_ACL('power_users.xml','ACL that lets power users to connect to everywhere',
    'APEX_030200', TRUE, 'connect');
    DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL('power_users.xml','*');
    END;
    COMMIT;
    Regards

  • Query not considering function based index in oracle 11g

    I have a query which used Function Based Index when run in oracle 9i but when I run the same query
    without any changes, it does not consider index. Below is the query:
    SELECT distinct patient_role.domain_key, patient_role.patient_role_key,
    patient_role.emergency_contact_name,
    patient_role.emergency_contact_phone, patient_role.emergency_contact_note,
    patient_role.emergency_contact_relation_id,
    patient_role.financial_class_desc_id, no_known_allergies, patient_role.CREATED_BY,
    patient_role.CREATED_TIMESTAMP,
    patient_role.CREATED_TIMESTAMP_TZ, patient_role.UPDATED_BY, patient_role.UPDATED_TIMESTAMP,
    patient_role.UPDATED_TIMESTAMP_TZ,
    patient_role.discontinued_date
    FROM encounter, patient_role
    WHERE patient_role.patient_role_key = encounter.patient_role_key
    AND UPPER(TRIM(leading :SYS_B_0 from encounter.account_number)) = UPPER(TRIM(leading :SYS_B_1 from
    :SYS_B_2))
    AND patient_role.discontinued_date IS null
    AND encounter.discontinued_date IS null ;
    Index definition:
    CREATE INDEX "user1"."IX_TRIM_ACCOUNT_NUMBER" ON "user1."ENCOUNTER" (UPPER(TRIM(LEADING
    '0' FROM "ACCOUNT_NUMBER")), "PATIENT_ROLE_KEY", "DOMAIN_KEY", "DISCONTINUED_DATE")
    PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
    BUFFER_POOL DEFAULT)
    TABLESPACE "user1"
    Database : Oracle 11g (11.2.0.3)
    O/S : Linux 64 bit (the query does not consider index even on windows os)
    Any suggestions?
    -Onkar
    Edited by: onkar.nath on Jul 2, 2012 3:32 PM

    Onkar,
    I don't appreciate you posting this question in several forums at the same time.
    If I would know you also posted this on Asktom, I wouldn't even have bothered.
    As to your 'issue':
    First of all: somehow cursor_sharing MUST have been set to FORCE. Oracle is a predictable system, not a fruitmachine.
    Your statement the '0' is replaced by a bind variable anyway is simply false. If you really believe it is not false, SUBMIT a SR.
    But your real issue is not Oracle: it is your 'application', which is a mess anyway. Allowing for alphanumeric numbers is a really bad idea.
    Right now you are already putting workaround on workaround on workaround on workaround.
    Issue is the application: it is terminal., and you either need to kill it, or to replace it.
    Sybrand Bakker
    Senior Oracle DBA

  • Oracle 11g clusterware installation issue.

    In our test lab, we are facing the following issue.Kindly help us to resolve this issue.
    Environment Details
    O/S : Oracle Enterprise Linux
    Database: Oracle 11g
    Clusterware: Oracle 11g
    The nodes are created using vmware.
    All the pre installation checks using clufvy utility are successful.
    During Installation of clusterware software, we need to run root.sh at the end on all the nodes. We have 2 node cluster. Root.sh runs successfully on node 1, but fails on node 2.
    Root.sh on node 2 details are given below
    # ./root.sh
    WARNING: directory '/u01/app/oracle/product/11.1.0' is not owned by root
    WARNING: directory '/u01/app/oracle/product' is not owned by root
    WARNING: directory '/u01/app/oracle' is not owned by root
    WARNING: directory '/u01/app' is not owned by root
    WARNING: directory '/u01' is not owned by root
    Checking to see if Oracle CRS stack is already configured
    Setting the permissions on OCR backup directory
    Setting up NS directories
    Oracle Cluster Registry configuration upgraded successfully
    WARNING: directory '/u01/app/oracle/product/11.1.0' is not owned by root
    WARNING: directory '/u01/app/oracle/product' is not owned by root
    WARNING: directory '/u01/app/oracle' is not owned by root
    WARNING: directory '/u01/app' is not owned by root
    WARNING: directory '/u01' is not owned by root
    clscfg: EXISTING configuration version 3 detected.
    clscfg: version 3 is 11G Release 1.
    assigning default hostname tsa1-fdfolio for node 1.
    assigning default hostname tsa2-fdfolio for node 2.
    Successfully accumulated necessary OCR keys.
    Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
    node <nodenumber>: <nodename> <private interconnect name> <hostname>
    node 1: tsa1-fdfolio tsa1-fdfolio-priv tsa1-fdfolio
    node 2: tsa2-fdfolio tsa2-fdfolio-priv tsa2-fdfolio
    clscfg: Arguments check out successfully.
    NO KEYS WERE WRITTEN. Supply -force parameter to override.
    -force is destructive and will destroy any previous cluster
    configuration.
    Oracle Cluster Registry for cluster has already been initialized
    Startup will be queued to init within 90 seconds.
    Adding daemons to inittab
    Expecting the CRS daemons to be up within 600 seconds.
    Failure at final check of Oracle CRS stack.
    10

    The trace files which **might** contain some useful error messages are :
    a) The latest trace files under $CRS_Home/log/hostname/client directory
    b) The OS Messages file ( /var/log/messages )
    This information can then be used to google similar issues ..
    Paste those messages here and I'll see if it rings a bell ..
    Vishwa

  • Slow to convert Oracle 11g XMLType into Java String or Document

    After retrieving a result set from an Oracle 11g database, it takes roughly 75 seconds to convert the XMLType (this is a structured XML Storage, registered with an xsd) into either a java String or Document. I'm using Java 1.6, have the xdb.jar and xmlparserv2.jar
    This xsd is <100 lines and the xml document is also <100 lines.
    Sample code:
    oracle.xdb.XMLType xml = oracle.xdb.XMLType.createXML((oracle.sql.OPAQUE)rset.getObject("XMLDATA"));
    the other way, but still took just as long:
    XMLType xml = (XMLType)rset.getObject("XMLDATA");
    xml.getStringVal();
    or
    org.w3c.dom.Document doc = xml.getDocument();
    either way of the above ways takes just as long.

    If I put this value into the database table, I can
    see only the date. Time part is missing. Is this the
    problem with java.sql.Date or Oracle datatype Date?This is not a problem, this is the defined behaviour of the Date type. RTFAPI and have a look at Timestamp, while you're at it.

  • Optimal NTFS block size for Oracle 11G on Windows 2008 R2 (OLTP)

    Hi All,
    We are currently setting up an Oracle 11G instance on a Windows 2008 R2 server and were looking to see if there was an optimal NTFS block size. I've read the following: http://docs.oracle.com/cd/E11882_01/win.112/e10845/specs.htm
    But it only mentioned the block sizes that can be used (2k - 16k). And basically what i got out of it, was the different block szes affect the max # of database files possible for each database.
    Is there an optimal NTFS block size for Oracle 11G OLTP system on Windows?
    Thanks in advance

    Is there an optimal NTFS block size for Oracle 11G OLTP system on Windows?ideally FS block size should be equal to Oracle tablespace block size.
    or at least be N times less than Oracle block size.
    For example - if Oracle BS=8K then NTFS BS better to be 8K but also can be 4K or 2K.
    Also both must be 1 to N times of Disk sector size. Older disks had sectors 512 bytes.
    Contemporary HDDs have internal sector size 4K. Usually.

  • Clustering in Oracle 11g/10g

    Hi
    We have 40000 records in our database (Oracle 11g/10g), in which each record holds 2 to 3 images and so each record will be of some MBs.
    Do we need to perform clustering to get a better performance?
    Thanks
    Shoba Anandhan

    Thanks for the immediate replies.
    We have a Windows 2003 Server, where in we have the Microsoft Visual Studio 2008 and Oracle 11g database.
    Our web application will be developed using Microsoft Visual Studio 2008 having Oracle as backend.
    At at time we are assuming 100 users to work with the web applications. We connect to the database everytime to display data in the web page.
    100% performance is expected.
    The Windows 2003 Server has a 4 GB of RAM. Is 4 GB enough to process these database requests or do we need more?

  • Spooling file in Oracle 11g

    Hi,
    I am spooling one file from database(oracle 11g), but the output file contains jumbled line as compare to original source file.
    I am using following script to spool out the source?:
    spool pkg_ta_search.sql     
         select text from all_source where name = upper('pkg_ta_search');
    spool off
    I even used the order by line clause but still I am getting the same reult.
    Thanks
    Kaushal

    Hii, Kaushal,
    Welcome to the forum!
    Both the package spec (or head) and the package body will have the same name. You need to add something to the WHERE clause (or the ORDER BY clause) to keep them separate.
    You probably want something like this:
    SELECT       text
    FROM       user_source               -- or all_source; see note below
    WHERE       name     = 'PKG_TA_SEARCH'
    AND       type     = 'PACKAGE BODY'     -- Or just 'PACKAGE'
    ORDER BY  line;Maybe there are other schemas that also have a package called 'PKG_TA_SEARCH'. User_source contains information about objects in your schema only. If the package really is in another schema, the you have to use all_souce, but add
    AND       owner = 'FUBAR'    -- or whateverto the WHERE clause.

  • Oracle 11g Installation How to select Database Character Set

    Hi,
    I am Installing oracle 11g R2. After installation I had verified the character set it was AL16UTF16 but I wants to set AL32UTF8 charater set at the time of oracle installation only. I can't see the character set setting opetion at the time of installation because I am selecting the installation option " Install database softerware only" and after installation of oracle software manually I am creating the database. Please help me how can I set the character set at the time of oracle installation or at the time of database creation.
    My question is-
    How can I set the AL32UTF8 character set in above scenario?
    Why It is showing AL16UTF16 character set even I did not define any thing?

    But is there any choice to set the NLS_CHARACTERSET at the time of manually database creation. Actually For creating the database i am using one shell script for seting the parameter values in init.ora file so can I set the parameter at that level(at the time of creating init.ora using manually database creation). like
    ## Original init.ora file created by manual database creation tool on ${DATE}.
    *.aq_tm_processes=0
    *.background_dump_dest='$ORACLE_BASE/admin/$ORACLE_SID/bdump'
    *.compatible='10.2.0'
    *.control_files='/$db_file_loc/oradata/$ORACLE_SID/control01.ctl','/$db_file_loc/oradata/$ORACLE_SID/control02.ctl','/$db_file_loc/oradata/$ORACLE_SID/control03.ctl'
    *.core_dump_dest='$ORACLE_BASE/admin/$ORACLE_SID/cdump'
    *.db_block_size=8192
    *.db_cache_size=104857600
    *.db_domain='$server_name'
    *.db_file_multiblock_read_count=8
    *.db_name='$ORACLE_SID'
    *.fast_start_mttr_target=300
    *.instance_name='$ORACLE_SID'
    *.java_pool_size=16777216
    *.job_queue_processes=4
    *.large_pool_size=16777216
    *.log_archive_dest='/u05/oradata/$ORACLE_SID'
    *.log_archive_format='$ORACLE_SID_%s_%t_%r.arc'
    *.olap_page_pool_size=4194304
    *.open_cursors=500
    *.optimizer_index_cost_adj=50
    *.pga_aggregate_target=536870912
    *.processes=1500
    *.query_rewrite_enabled='TRUE'
    *.remote_login_passwordfile='EXCLUSIVE'
    *.shared_pool_size=83886080
    *.sort_area_size=1048576
    *.sga_max_size=1048576000
    *.sga_target=536870912
    *.star_transformation_enabled='TRUE'
    *.timed_statistics=TRUE
    *.undo_management='AUTO'
    *.undo_retention=10800
    *.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='$ORACLE_BASE/admin/$ORACLE_SID/udump'
    *.utl_file_dir='/export/home/oracle/utlfiles'
    **.nls_characterset='AL32UTF8'*
    EOF
    Is it correct?

  • Oracle 11g upgrade: How to update stale statistics for sys and sysman?

    Hi,
    I am in the process of testing Oracle 11g upgrade from Oracle 10.2.0.3. I have run utlu111i.sql on the 10g database.
    The utility utlu111i.sql reports about the stale statistics for SYS and SYSMAN components.
    I executed dbms_stats.gather_dictionary_stats; dbms_stats.gather_schema_stats('SYS'); and dbms_stats.gather_schema_stats('SYSMAN');
    After that the utlu111i.sql still reports the stale statistics for sys and sysman. Does anyone know how to get rid off this warning successfully?
    Thanks,
    Sreekanth

    Does anyone know how to get rid off this warning successfully?Just ignore the warnings. Check The Utlu111i.Sql Pre-Upgrade Script Reports Stale Sys Statistics - 803774.1 from Metalink.

Maybe you are looking for

  • "Add components to your existing installation" disabled in SQL Server 2000 clustered installation.

    When I try to add the fulltext service to a named instance in SQLServer 2000, I see the option "Add components to your existing installation" in gray. I launched the installer both ways, with the services stoped and started, and always the same resul

  • Dual monitor per ideacentre a730

    come posso fare per collegare un secondo monitor ? ho provato con un cavo vga/hdmi ma non ci sono riuscito, quale procedura devo seguire ?  Moderator Note; translate.google.com translation of above. how do I connect a second monitor? I tried using a

  • How to activate Classic on 10.4.11

    Just got 10.4.7 and installed and upgraded to 10.4.11 OK. Loaded a lot of applications OK. Now I need to run an old application under Classic. Cannot use my 10.4.7 install disk as I'm now on 10.4.11. I have copied a valid 9.2 system file across (one

  • I cannot open my movies with Quicktime or imovie

    Hi - I've run into a major hurdle. I try to export a movie as a Quicktime file, self-contained with audio and video. Each time I export it and try to open it with Quicktime or imovie, those applications crash. It was working fine a week ago. Have Fin

  • Please Help! For some reason when ever I type in PSE it comes out very faint and almost invisable???

    Please Help! For some reason when ever I type in PSE 10 it comes out very faint and almost invisable like. I'm not sure what I did but I cant get it back to the normal black font??? Please help. I know this seems like a very simple and easy question.