Stats job in Oracle 11g
During installation, the decision was made to not install the stats gathering job in 11g.
Post installation the job is not running as expected.
SInce then we have done more research and are comfortable with the stats job running only for Oracle dictionary tables.
My question is
How to install it and make sure it is run at a certain time?
I have read documentation and have issues commands such as :-
DBMS_AUTO_TASK_ADMIN.ENABLE (
client_name IN VARCHAR2,
operation IN VARCHAR2,
window_name IN VARCHAR2);
I have verified that the stats are not gathered on dictionary tables a.k.a SYS owned objects.
Any input will be highly appreciated.
I have verified that the stats are not gathered on dictionary tables a.k.a SYS owned objects.post SQL & results that are proof that "the stats are not gathered on dictionary tables".
LAST_ANALYZED is NOT a reliable indicator to determine if/when statistics were gathered.
If/when table content does NOT change, then current statistics are still valid & statistics do NOT need to be collected again.
Handle: Dbacloud
Status Level: Newbie (20)
Registered: Nov 18, 2009
Total Posts: 55
Total Questions: 13 (13 unresolved)
so many questions without ANY answers.
http://forums.oracle.com/forums/ann.jspa?annID=718
Edited by: sb92075 on Feb 25, 2011 5:46 PM
Similar Messages
-
How to view the List of statements executed in Oracle 11G database
Hi ,
I have this Application which internally updates and writes to the tables in my database. Is there a way that i can make oracle 11g to log all the statements that are executed in it so that ill be able to see the statements?. Plz explain me how to do this ?
Thanks
KiranUser Auditing on those tables.
http://www.oracle.com/technology/deploy/security/database-security/database-auditing/index.html
http://www.oracle-base.com/articles/10g/Auditing_10gR2.php
Regards
Rajesh -
Regarding stats collection in oracle 11g.
Just a general question, while doing stats collection weather system takes the backup of current statistics. i think we can specify stattab. but weather it takes stats backup before over writing?
I got this requirement as a part of upgrade, i have already gone through export_schema_stats and import_schema stats already. Just trying all other possible options only...
Regards
DBA.DBA wrote:
Just a general question, while doing stats collection weather system takes the backup of current statistics. i think we can specify stattab. but weather it takes stats backup before over writing?
backup to where exactly? -
"Rows" statistics from STAT in trace event 10046, Oracle 11g.
Hi, all!
Why "Rows" statistics in STAT are different for 10g and 11g?
I have two database with version 10g and 11g, with the same data.
I executed some pl/sql code with tracing 10046 level 8.
And I have different result when obtain raw trace.
In 10g I obtain rows statistics for all executions - Rows= 7.
In 11g I obtain rows statistics for first executions - Rows= 1. Why?
See my example:
declare
type t_name_tbl is table of varchar2(30) index by binary_integer;
v_name_tbl t_name_tbl;
v_len number := 10;
begin
execute immediate 'alter session set timed_statistics = true ';
execute immediate 'alter session set statistics_level=all ';
execute immediate 'alter session set max_dump_file_size = unlimited ';
execute immediate 'alter session set events ''10046 trace name context forever,level 8'' ';
loop
select cour_name bulk collect
into v_name_tbl
from country t
where length(t.cour_name) = v_len;
exit when v_len = 0;
v_len := v_len - 1;
for i in 1 .. v_name_tbl.count loop
dbms_output.put_line(v_name_tbl(i));
end loop;
end loop;
end;Result Tkprof for Oracle 10g:
SELECT COUR_NAME
FROM
COUNTRY T WHERE LENGTH(T.COUR_NAME) = :B1
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 11 0.00 0.00 0 0 0 0
Fetch 11 0.01 0.00 0 44 0 7
total 23 0.01 0.00 0 44 0 7
Misses in library cache during parse: 0
Optimizer mode: ALL_ROWS
Parsing user id: 649 (recursive depth: 1)
Rows Row Source Operation
7 TABLE ACCESS FULL COUNTRY (cr=44 pr=0 pw=0 time=1576 us)Result Tkprof for Oracle 11g:
SQL ID: 3kqmkg8jp5nwk
Plan Hash: 1371235632
SELECT COUR_NAME
FROM
COUNTRY T WHERE LENGTH(T.COUR_NAME) = :B1
call count cpu elapsed disk query current rows
Parse 1 0.01 0.00 0 0 0 0
Execute 11 0.02 0.01 0 0 0 0
Fetch 11 0.00 0.01 3 44 0 7
total 23 0.03 0.02 3 44 0 7
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: ALL_ROWS
Parsing user id: 82 (recursive depth: 1)
Rows Row Source Operation
1 TABLE ACCESS FULL COUNTRY (cr=4 pr=3 pw=0 time=0 us cost=2 size=44 card=2)Were can I read about it?Oracle 11g by default writes the execution plan (the STAT lines in the raw trace file) after the first execution of the SQL statement, while prior to 11g the execution plan is written only when the cursor is closed.
The behavior in 11g can be controlled by changing the PLAN_STAT parameter of the call that enables the trace from the default value of FIRST_EXECUTION to ALL_EXECUTIONS:
http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/d_sessio.htm#i1010518
Charles Hooper
Co-author of "Expert Oracle Practices: Oracle Database Administration from the Oak Table"
http://hoopercharles.wordpress.com/
IT Manager/Oracle DBA
K&M Machine-Fabricating, Inc.
Edited by: Charles Hooper on Aug 9, 2010 3:33 PM
Default value on 11g is FIRST_EXECUTION, while the behavior prior to 11g is ALL_EXECUTIONS - corrected the incomplete sentence. -
Oracle 11g - Non Oracle JOB ?
Oracle 11g - Non Oracle JOB ?
=====================
I hope this is the right forum for this issue, if not let me, where to go.
We are using Oracle 11g (11.2.0.1.0) on (Platform : solaris[tm] oe (64-bit)), Sql Developer 3.0.04
1) We are loading table using PL/SQL -- > at Oracle server.
2) This data is consumed by Mainframe DB2 process -- > at DB2 server.
3) Return us another table with derived data from DB2 -- > at DB2 server.
There is a IBM JCL read our table and return a Oracle table with calculated data.
Do we able to automate a process using PL/SQL to start the IBM JCL upon loading the table Step (1)?
Are there any alternate approach?
Thanks in helping us.
Edited by: qwe16235 on Jul 19, 2011 1:54 PMHello,
I read the DBMS_SCHEDULER pieces. We need to create a job (Pl/sql procedure or shell script) to configure the DBMS_SCHEDULER.
If we are going to do such thing in the server, where our current Oracle DB instance located, we can perform desired tasks via jobs. No issues.
I reviewed the components within DBMS_SCHEDULER to start job on another server, where there is no Oracle DB instance running. I did not find any clue/pointer on the referred doc.
Do we need any additional components to do such things?
We are on Server A with Oracle DB 11g and Server B with Non-Oracle and no Oracle Instance running there.
How do we create a Job J1 on Server A, where it will request Server B to start a Job J2 in Non-Oracle instance?
Do we have a component within DBMS_Scheduler to do that?
Thanks in helping. -
Oracle 11g - Invoke JOB on another server?
Oracle 11g - Invoke JOB on another server?
===========================
I hope this is the right forum for this issue, if not let me know, where to go.
I posted on other forum, but I did not find resposnes there, so I am posting it here.
We are using Oracle 11g (11.2.0.1.0) on (Platform : solaris[tm] oe (64-bit)), Sql Developer 3.0.04
1) We are loading table using PL/SQL.
2) This data will be consumed by Mainframe DB2 process (Read our table, format and calculate measures).
3) Return the result as another Oracle table (Push) with derived data from DB2.
There is a IBM JCL that read our table and return an Oracle table with calculated data.
Is it doable?
How do we invoke the IBM JCL from our Oracle 11g server upon loading the table (Step 1)?
Are there any metalink notes to address this situation?
Are there any alternate approach?
Thanks in helping us.Hi,
Since your talking about interfacing between Oracle and DB2 where 3 sequential steps are to be taken, I would recommend to use a UNIX shell script to kick off the seperate steps.
I have no experience whatsoever with DB2, so I can't tell you if you would be able to start a JCL ( DB2 Job ?? ) from within the oracle database.
Otherwise you would need a kind of polling mechanism where the DB2 database checks for a certain value (table value) existence in order to start its work
HTH
FJFranken -
Hi all,
After Oracle 11g migration, i have been facing issues in OEM scheduling. Twice the job did not run even after 11.2.0.7 upgrade. Hence i would like to explore the possibility of scheduling the same in DBMS jobs (we have not faced even a single failure since migration). However there is no mail alert available for successful completion of the job. In this regard i would like to have your views and help to create alerts to proceed further.
ThankxHi Ravi,
Really the link helps,eventhough i have been looking for the rootcause to overcome from the job failure(scheduled jobs)
Actually after completion/succeded of my scheduled job i may also get "INITIALIZATION ERROR" status message,so i need to be Re-schedule the particular job again
for next day.
Look up screenshot of the error
Job Name=OEM_FLEET_ICL_SEND_6_30_AM_DAILY
Job Owner=SYSMAN
Job Type=SQL Script
Target Type=Database Instance
Timestamp=Apr 19, 2011 6:30:44 AM
Status=Initialization Error
Step Output=
Command:Output Log
SQLPlus: Release 11.2.0.2.0 Production on Tue Apr 19 06:30:15 2011*
Copyright (c) 1982, 2010, Oracle. All rights reserved.
SQL> SQL> SQL> SQL> Connected.
SQL> SQL> SQL> SQL>
PL/SQL procedure successfully completed.
SQL> SP2-0103: Nothing in SQL buffer to run.
SQL>
Commit complete.
SQL> SQL> SQL> Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
*~~~End Step Output/Error Log~~~*
kindly advice me on this
Thanks -
Oracle 11g R2 Client Silent Installation Issue (PATH) Windows 7 x86
Hi All,
I'm hoping somebody can shed some light on this issue.
I created a Response file using the 'Save Response File' method during an interactive installation on a Windows 7 Enterprise x86 client. (file enclosed)
I have installed it multiple times now with multiple permutations of the command line (got caught out by the old lower case F in responseFile) but now I'm getting the same error each time (a critical error with the PATH according to the installation log). There is nothing wrong with the path length as the installation works fine in GUI mode and passes the Prereq check.
I launch the command line to install (with Run As Administrator) - "[location of setup.exe]\setup.exe" -nowait -silent -responseFile "[location of response file]\Oracle11gv2.rsp"
RESPONSE FILE:
## Copyright(c) Oracle Corporation 1998,2008. All rights reserved. ##
## Specify values for the variables listed below to customize ##
## your installation. ##
## Each variable is associated with a comment. The comment ##
## can help to populate the variables with the appropriate ##
## values. ##
# Do not change the following system generated value.
oracle.install.responseFileVersion=/oracle/install/rspfmt_clientinstall_response_schema_v11_2_0
# This variable holds the hostname of the system as set by the user.
# It can be used to force the installation to use an alternative
# hostname rather than using the first hostname found on the system
# (e.g., for systems with multiple hostnames and network interfaces).
ORACLE_HOSTNAME=
# Unix group to be set for the inventory directory.
UNIX_GROUP_NAME=
# Inventory location.
INVENTORY_LOCATION=C:\Program Files\Oracle\Inventory
# Specify the languages in which the components will be installed.
# en : English ja : Japanese
# fr : French ko : Korean
# ar : Arabic es : Latin American Spanish
# bn : Bengali lv : Latvian
# pt_BR: Brazilian Portuguese lt : Lithuanian
# bg : Bulgarian ms : Malay
# fr_CA: Canadian French es_MX: Mexican Spanish
# ca : Catalan no : Norwegian
# hr : Croatian pl : Polish
# cs : Czech pt : Portuguese
# da : Danish ro : Romanian
# nl : Dutch ru : Russian
# ar_EG: Egyptian zh_CN: Simplified Chinese
# en_GB: English (Great Britain) sk : Slovak
# et : Estonian sl : Slovenian
# fi : Finnish es_ES: Spanish
# de : German sv : Swedish
# el : Greek th : Thai
# iw : Hebrew zh_TW: Traditional Chinese
# hu : Hungarian tr : Turkish
# is : Icelandic uk : Ukrainian
# in : Indonesian vi : Vietnamese
# it : Italian
# Example : SELECTED_LANGUAGES=en,fr,ja
SELECTED_LANGUAGES=en,en_GB
# Complete path of the Oracle Home
ORACLE_HOME=C:\Oracle\product\11.2.0\client_1
# Complete path of the Oracle Base.
ORACLE_BASE=C:\Oracle
#Name : INSTALL_TYPE
#Datatype : String
#Description: Installation type of the component.
# The following choices are available. The value should contain
# only one of these choices.
# InstantClient : InstantClient
# Administrator : Administrator
# Runtime : Runtime
# Custom : Custom
#Example : INSTALL_TYPE = "Administrator"
oracle.install.client.installType=Custom
# Name : oracle.install.client.customComponents
# Datatype : StringList
# This property is considered only if INSTALL_TYPE is set to "Custom"
# Description: List of Client Components you would like to install
# The following choices are available. You may specify any
# combination of these choices. The components you choose should
# be specified in the form "internal-component-name:version"
# Below is a list of components you may specify to install.
# oracle.sqlj:11.2.0.1.0 -- "Oracle SQLJ"
# oracle.rdbms.util:11.2.0.1.0 -- "Oracle Database Utilities"
# oracle.javavm.client:11.2.0.1.0 -- "Oracle Java Client"
# oracle.sqlplus:11.2.0.1.0 -- "SQL*Plus"
# oracle.dbjava.jdbc:11.2.0.1.0 -- "Oracle JDBC/THIN Interfaces"
# oracle.ldap.client:11.2.0.1.0 -- "Oracle Internet Directory Client"
# oracle.rdbms.oci:11.2.0.1.0 -- "Oracle Call Interface (OCI)"
# oracle.precomp:11.2.0.1.0 -- "Oracle Programmer"
# oracle.xdk:11.2.0.1.0 -- "Oracle XML Development Kit"
# oracle.network.aso:11.2.0.1.0 -- "Oracle Advanced Security"
# oracle.assistants.oemlt:11.2.0.1.0 -- "Enterprise Manager Minimal Integration"
# oracle.oraolap.mgmt:11.2.0.1.0 -- "OLAP Analytic Workspace Manager and Worksheet"
# oracle.network.client:11.2.0.1.0 -- "Oracle Net"
# oracle.ordim.client:11.2.0.1.0 -- "Oracle Multimedia Client Option"
# oracle.ons:11.2.0.0.0 -- "Oracle Notification Service"
# oracle.odbc:11.2.0.1.0 -- "Oracle ODBC Driver"
# oracle.has.client:11.2.0.1.0 -- "Oracle Clusterware High Availability API"
# oracle.dbdev:11.2.0.1.0 -- "Oracle SQL Developer"
# oracle.rdbms.scheduler:11.2.0.1.0 -- "Oracle Scheduler Agent"
# Example : oracle.install.client.customComponents="oracle.precomp:11.2.0.1.0","oracle.ons:11.2.0.0.0","oracle.oraolap.mgmt:11.2.0.1.0","oracle.rdbms.scheduler:11.2.0.1.0"
oracle.install.client.customComponents=oracle.rdbms.util:11.2.0.1.0,oracle.sqlplus:11.2.0.1.0,oracle.dbjava.jdbc:11.2.0.1.0,oracle.rdbms.oci:11.2.0.1.0,oracle.network.client:11.2.0.1.0,oracle.odbc:11.2.0.1.0,oracle.oo4o:11.2.0.1.0,oracle.ntoledb:11.2.0.1.0,oracle.ntoledb.odp_net_2:11.2.0.1.0,oracle.aspnet_2:11.2.0.1.0
#Name : MTS_PORT
#Datatype : int
#Description: Port number to be used for by the Oracle MTS Recovery Service to listen
# for requests. This needs to be entered in case oracle.ntoramts is
# selected in the list of custom components in custom install
#Example : MTS_PORT = 2030
oracle.install.client.oramtsPortNumber=49152
# Host name to be used for by the Oracle Scheduler Agent.
# This needs to be entered in case oracle.rdbms.scheduler is selected in the
# list of custom components during custom install
# Example : oracle.install.client.schedulerAgentHostName = acme.domain.com
oracle.install.client.schedulerAgentHostName=
# Port number to be used for by the Oracle Scheduler Agent.
# This needs to be entered in case oracle.rdbms.scheduler is selected in the
# list of custom components during custom install
# Example: oracle.install.client.schedulerAgentPortNumber = 1500
oracle.install.client.schedulerAgentPortNumber=
LOG FILE TO FOLLOWLOG FILE:
Using paramFile: Z:\Source Media\KM0399 - Oracle 11g\win32_11gR2_client\client\install\oraparam.ini
The commandline for unzip:
Z:\Source Media\KM0399 - Oracle 11g\win32_11gR2_client\client\install\unzip -qqqo ..\stage\Components\oracle.jdk\1.5.0.17.03\1\DataFiles/"*.jar" -d "C:\Users\DESKTO~1\AppData\Local\Temp\OraInstall2013-02-26_08-36-31AM" INFO: Loading data from: jar:file:/C:/Users/DesktopAdmin/AppData/Local/Temp/OraInstall2013-02-26_08-36-31AM/ext/jlib/installcommons_1.0.0b.jar!/oracle/install/driver/oui/resource/ConfigCommandMappings.xml
INFO: Loading beanstore from jar:file:/C:/Users/DesktopAdmin/AppData/Local/Temp/OraInstall2013-02-26_08-36-31AM/ext/jlib/installcommons_1.0.0b.jar!/oracle/install/driver/oui/resource/ConfigCommandMappings.xml
INFO: Restoring class oracle.install.driver.oui.ConfigCmdMappings from jar:file:/C:/Users/DesktopAdmin/AppData/Local/Temp/OraInstall2013-02-26_08-36-31AM/ext/jlib/installcommons_1.0.0b.jar!/oracle/install/driver/oui/resource/ConfigCommandMappings.xml
INFO: Verifying target environment...
INFO: Checking whether the IP address of the localhost could be determined...
INFO: Completed verification of target environment.
INFO: Inventory exists: false
INFO: Registering setup bean
INFO: Validating Response File Z:\Source Media\KM0399 - Oracle 11g\win32_11gR2_client\client\response\Oracle11gv2.rsp
WARNING: Unable to find the namespace URI. Reason: Start of root element expected.
INFO: Setting Response file data to the Installer
WARNING: Unable to find the namespace URI. Reason: Start of root element expected.
INFO: Building Flow
INFO: Building the flow graph
INFO: Loaded state init
INFO: Loaded state clientInstallType
INFO: Loaded state productLanguage
INFO: Loaded state getOracleHome
INFO: Loaded state prereqExecutionDecider
INFO: Loaded state checkPrereqs
INFO: Loaded state postPrereqs
INFO: Loaded state summary
INFO: Loaded state clientCustomInstall
INFO: Loaded state schedulerAgent
INFO: Loaded state mtsDialog
INFO: Loaded state setup
INFO: Loaded state finish
INFO: Linking states
INFO: State[checkPrereqs]: route=success; to=summary
INFO: State[clientCustomInstall]: route=TO_ENDCUSTOM; to=prereqExecutionDecider
INFO: State[clientCustomInstall]: route=TO_ORAMTS; to=mtsDialog
INFO: State[clientCustomInstall]: route=TO_SCHEDULERAGENT; to=schedulerAgent
INFO: State[clientInstallType]: route=ic_no; to=productLanguage
INFO: State[clientInstallType]: route=ic_yes; to=getOracleHome
INFO: State[getOracleHome]: route=INVENTORY_NO; to=prereqExecutionDecider
INFO: State[getOracleHome]: route=INVENTORY_NO_CUSTOM_YES; to=clientCustomInstall
INFO: State[getOracleHome]: route=INVENTORY_YES; to=prereqExecutionDecider
INFO: State[getOracleHome]: route=INVENTORY_YES_CUSTOM_YES; to=clientCustomInstall
INFO: State[init]: route=success; to=clientInstallType
INFO: State[mtsDialog]: route=success; to=prereqExecutionDecider
INFO: State[postPrereqs]: route=CUSTOM; to=clientCustomInstall
INFO: State[postPrereqs]: route=NON_CUSTOM; to=summary
INFO: State[prereqExecutionDecider]: route=executeprereqs; to=checkPrereqs
INFO: State[prereqExecutionDecider]: route=ignoreprereqs; to=summary
INFO: State[productLanguage]: route=productlanguage_yes; to=getOracleHome
INFO: State[schedulerAgent]: route=TO_ENDCUSTOM; to=prereqExecutionDecider
INFO: State[schedulerAgent]: route=TO_ORAMTS; to=mtsDialog
INFO: State[setup]: route=success; to=finish
INFO: State[summary]: route=success; to=setup
INFO: Successfully built the flow
INFO: Opening bean stores from which the beans can be loaded
INFO: Changing the format to extended property file format to merge the flowDataDefaults with the flowDataSource
INFO: Loading beanstore from file:/Z:/Source Media/KM0399 - Oracle 11g/win32_11gR2_client/client/response/Oracle11gv2.rsp
INFO: Translating external format into raw format
INFO: Loaded BeanStore using the flow data source
INFO: Registering the flow data beans
INFO: [INS-07001] Value for property 'INSTALL_TYPE' not found in the bean store.
INFO: [INS-07001] Value for property 'oracle_install_WindowsSystemDirectory' not found in the bean store.
INFO: [INS-07001] Value for property 'oracle_install_LaunchNetCA' not found in the bean store.
INFO: [INS-07001] Value for property 'oracle_install_NoMigration' not found in the bean store.
INFO: [INS-07001] Value for property 'oracle_install_RACInstall' not found in the bean store.
INFO: [INS-07001] Value for property 'oracle_install_db_ConfigurationType' not found in the bean store.
INFO: [INS-07001] Value for property 'oracle_install_db_InstallType' not found in the bean store.
INFO: [INS-07001] Value for property 'oracle_install_db_InstallEdition' not found in the bean store.
INFO: [INS-07001] Value for property 'oracle_install_client_CustomComponents' not found in the bean store.
INFO: [INS-07001] Value for property 'oracle_install_client_OraMTSPortNumber' not found in the bean store.
INFO: [INS-07001] Value for property 'oracle_install_client_SchedulerAgentHostName' not found in the bean store.
INFO: [INS-07001] Value for property 'oracle_install_client_SchedulerAgentPortNumber' not found in the bean store.
INFO: [INS-07001] Value for property 'ORACLE_HOME' not found in the bean store.
INFO: [INS-07001] Value for property 'FROM_LOCATION' not found in the bean store.
INFO: [INS-07001] Value for property 'ORACLE_BASE' not found in the bean store.
INFO: [INS-07001] Value for property 'TOPLEVEL_COMPONENT' not found in the bean store.
INFO: [INS-07001] Value for property 'TopLevelComponentVersion' not found in the bean store.
INFO: [INS-07001] Value for property 'UNIX_GROUP_NAME' not found in the bean store.
INFO: [INS-07001] Value for property 'INVENTORY_LOCATION' not found in the bean store.
INFO: [INS-07001] Value for property 'SELECTED_LANGUAGES' not found in the bean store.
INFO: [INS-07001] Value for property 'COLLECTOR_RESPONSE_FILE' not found in the bean store.
INFO: [INS-07001] Value for property 'MYORACLESUPPORT_USERNAME' not found in the bean store.
INFO: [INS-07001] Value for property 'MYORACLESUPPORT_PASSWORD' not found in the bean store.
INFO: [INS-07001] Value for property 'DECLINE_SECURITY_UPDATES' not found in the bean store.
INFO: [INS-07001] Value for property 'PROXY_HOST' not found in the bean store.
INFO: [INS-07001] Value for property 'PROXY_PORT' not found in the bean store.
INFO: [INS-07001] Value for property 'PROXY_USER' not found in the bean store.
INFO: [INS-07001] Value for property 'PROXY_PWD' not found in the bean store.
INFO: [INS-07001] Value for property 'SECURITY_UPDATES_VIA_MYORACLESUPPORT' not found in the bean store.
INFO: [INS-07001] Value for property 'COLLECTOR_IGNORE_FAILURES' not found in the bean store.
INFO: [INS-07001] Value for property 'COLLECTOR_IGNORE_CONFIGURATION' not found in the bean store.
INFO: [INS-07001] Value for property 'ORACLE_HOSTNAME' not found in the bean store.
WARNING: [INS-07001] Value for property 'oracle_install_WindowsSystemDirectory' not found in the bean store.
WARNING: [INS-07001] Value for property 'oracle_install_LaunchNetCA' not found in the bean store.
WARNING: [INS-07001] Value for property 'oracle_install_NoMigration' not found in the bean store.
WARNING: [INS-07001] Value for property 'oracle_install_RACInstall' not found in the bean store.
WARNING: [INS-07001] Value for property 'oracle_install_db_ConfigurationType' not found in the bean store.
WARNING: [INS-07001] Value for property 'oracle_install_db_InstallType' not found in the bean store.
WARNING: [INS-07001] Value for property 'oracle_install_db_InstallEdition' not found in the bean store.
WARNING: [INS-07001] Value for property 'FROM_LOCATION' not found in the bean store.
WARNING: [INS-07001] Value for property 'TOPLEVEL_COMPONENT' not found in the bean store.
WARNING: [INS-07001] Value for property 'TopLevelComponentVersion' not found in the bean store.
WARNING: [INS-07001] Value for property 'OCMSettings' not found in the bean store.
INFO: Set value for bean ClientSetupBean
INFO: [INS-07001] Value for property 'INSTALL_TYPE' not found in the bean store.
INFO: [INS-07001] Value for property 'oracle_install_WindowsSystemDirectory' not found in the bean store.
INFO: [INS-07001] Value for property 'oracle_install_LaunchNetCA' not found in the bean store.
INFO: [INS-07001] Value for property 'oracle_install_NoMigration' not found in the bean store.
INFO: [INS-07001] Value for property 'oracle_install_RACInstall' not found in the bean store.
INFO: [INS-07001] Value for property 'oracle_install_db_ConfigurationType' not found in the bean store.
INFO: [INS-07001] Value for property 'oracle_install_db_InstallType' not found in the bean store.
INFO: [INS-07001] Value for property 'oracle_install_db_InstallEdition' not found in the bean store.
INFO: [INS-07001] Value for property 'oracle_install_client_CustomComponents' not found in the bean store.
INFO: [INS-07001] Value for property 'oracle_install_client_OraMTSPortNumber' not found in the bean store.
INFO: [INS-07001] Value for property 'oracle_install_client_SchedulerAgentHostName' not found in the bean store.
INFO: [INS-07001] Value for property 'oracle_install_client_SchedulerAgentPortNumber' not found in the bean store.
INFO: [INS-07001] Value for property 'ORACLE_HOME' not found in the bean store.
INFO: [INS-07001] Value for property 'FROM_LOCATION' not found in the bean store.
INFO: [INS-07001] Value for property 'ORACLE_BASE' not found in the bean store.
INFO: [INS-07001] Value for property 'TOPLEVEL_COMPONENT' not found in the bean store.
INFO: [INS-07001] Value for property 'TopLevelComponentVersion' not found in the bean store.
WARNING: Failed to load bean oracle.install.ivw.client.bean.ClientInstallSettings. Reason: [INS-07001] Value for property 'ClientInstallSettings' not found in the bean store.
INFO: Closing bean stores from which the beans can be loaded
INFO: Registering the flow views
INFO: Adding View[type: oracle.install.commons.base.interview.common.view.PrereqGUI viewId: null uiType: null]
INFO: Adding View[type: oracle.install.commons.base.interview.common.view.SummaryGUI viewId: null uiType: null]
INFO: Adding View[type: oracle.install.commons.base.interview.common.view.SetupGUI viewId: null uiType: null]
INFO: Adding View[type: oracle.install.ivw.common.view.ProductLanguageGUI viewId: ProductLanguageUI uiType: null]
INFO: Adding View[type: oracle.install.ivw.client.view.CustomInstallGUI viewId: null uiType: null]
INFO: Adding View[type: oracle.install.ivw.client.view.SchedulerAgentGUI viewId: null uiType: null]
INFO: Adding View[type: oracle.install.ivw.client.view.OraMTSGUI viewId: null uiType: null]
INFO: Adding View[type: oracle.install.ivw.client.view.InstallLocationGUI viewId: null uiType: null]
INFO: Adding View[type: oracle.install.ivw.client.view.InstallTypesGUI viewId: null uiType: null]
INFO: Adding View[type: oracle.install.ivw.client.view.FinishGUI viewId: null uiType: null]
INFO: Initial values of Setup Properties :
PROPERTY VALUE
COLLECTOR_IGNORE_CONFIGURATION false
COLLECTOR_IGNORE_FAILURES false
COLLECTOR_RESPONSE_FILE
DECLINE_SECURITY_UPDATES false
FROM_LOCATION Z:\Source Media\KM0399 - Oracle 11g\win32_11gR2_client\cl
ient\install\../stage/products.xml
INSTALL_TYPE Custom
INVENTORY_LOCATION C:\Program Files\Oracle\Inventory
MYORACLESUPPORT_PASSWORD Protected value, not to be logged
MYORACLESUPPORT_USERNAME
ORACLE_BASE C:\Oracle
ORACLE_HOME C:\Oracle\product\11.2.0\client_1
ORACLE_HOSTNAME GBA-P74444432
PROXY_HOST
PROXY_PORT
PROXY_PWD Protected value, not to be logged
PROXY_USER
SECURITY_UPDATES_VIA_MYORACLESUPPORT true
SELECTED_LANGUAGES {"en","en_GB"}
oracle_install_LaunchNetCA false
oracle_install_NoMigration true
oracle_install_RACInstall false
oracle_install_WindowsSystemDirectory
oracle_install_client_CustomComponents {"oracle.rdbms.util:11.2.0.1.0","oracle.sqlplus:11.2.0.1.
0","oracle.dbjava.jdbc:11.2.0.1.0","oracle.rdbms.oci:11.2
.0.1.0","oracle.network.client:11.2.0.1.0","oracle.odbc:1
1.2.0.1.0","oracle.oo4o:11.2.0.1.0","oracle.ntoledb:11.2.
0.1.0","oracle.ntoledb.odp_net_2:11.2.0.1.0","oracle.aspn
et_2:11.2.0.1.0"}
oracle_install_client_OraMTSPortNumber 49152
oracle_install_db_ConfigurationType
oracle_install_db_InstallEdition EE
oracle_install_db_InstallType
INFO: Launching Oracle Client Installer
INFO: Started executing the flow in SILENT mode
INFO: Waiting for completion of background operations
INFO: Finishing all forked tasks at state init
INFO: Waiting for completion all forked tasks at state init
INFO: All forked task are completed at state init
INFO: Completed background operations
INFO: Executing action at state init
INFO: Completed executing action at state <init>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Moved to state <init>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Validating state <init>
WARNING: Validation disabled for the state init
INFO: Completed validating state <init>
INFO: Verifying route success
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Executing action at state clientInstallType
INFO: Completed executing action at state <clientInstallType>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Moved to state <clientInstallType>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Validating state <clientInstallType>
WARNING: Validation disabled for the state clientInstallType
INFO: Completed validating state <clientInstallType>
INFO: In Transition of InstallTypesAction:
INFO: Verifying route ic_no
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Executing action at state productLanguage
INFO: Completed executing action at state <productLanguage>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Moved to state <productLanguage>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Validating state <productLanguage>
INFO: Using default Validator configured in the Action class oracle.install.ivw.common.action.ProductLanguageAction
INFO: Completed validating state <productLanguage>
INFO: Verifying route productlanguage_yes
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Executing action at state getOracleHome
INFO: Completed executing action at state <getOracleHome>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Moved to state <getOracleHome>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Validating state <getOracleHome>
INFO: custom prereq file name: oracle.client_Custom.xml
INFO: refDataFile: Z:\Source Media\KM0399 - Oracle 11g\win32_11gR2_client\client\stage\cvu\oracle.client_Custom.xml
INFO: isCustomRefDataFilePresent: false
INFO: InstallAreaControl exists: false
INFO: Checking:NEW_HOME
INFO: Checking:COMP
INFO: Checking:COMP
INFO: Checking:COMP
INFO: Checking:COMP
INFO: Checking:COMP
INFO: Checking:COMP
INFO: Checking:COMP
INFO: Checking:COMP
INFO: Checking:ORCA_HOME
INFO: Reading shiphome metadata from Z:\Source Media\KM0399 - Oracle 11g\win32_11gR2_client\client\install\..\stage\shiphomeproperties.xml
INFO: Loading beanstore from file:/Z:/Source Media/KM0399 - Oracle 11g/win32_11gR2_client/client/install/../stage/shiphomeproperties.xml
INFO: Translating external format into raw format
INFO: Restoring class oracle.install.driver.oui.ShiphomeMetadata from file:/Z:/Source Media/KM0399 - Oracle 11g/win32_11gR2_client/client/install/../stage/shiphomeproperties.xml
INFO: inventory location isC:\Program Files\Oracle\Inventory
INFO: inventory location isC:\Program Files\Oracle\Inventory
INFO: size estimation for Administratorinstall is 1046.229476928711
INFO: PATH has :==>C:\Users\DESKTO~1\AppData\Local\Temp\OraInstall2013-02-26_08-36-31AM\jdk\jre\bin;.;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\AdminStudio\11.5\Common\
INFO: Completed validating state <getOracleHome>
INFO: InstallLocationAction to INVENTORY_NO_CUSTOM_YES
INFO: Verifying route INVENTORY_NO_CUSTOM_YES
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Executing action at state clientCustomInstall
INFO: Re-loading component config bean
INFO: Loading beanstore from jar:file:/C:/Users/DesktopAdmin/AppData/Local/Temp/OraInstall2013-02-26_08-36-31AM/ext/jlib/instclient.jar!/oracle/install/ivw/client/resource/custom_components.xml
INFO: Translating external format into raw format
INFO: Restoring class oracle.install.commons.base.util.ComponentConfig from jar:file:/C:/Users/DesktopAdmin/AppData/Local/Temp/OraInstall2013-02-26_08-36-31AM/ext/jlib/instclient.jar!/oracle/install/ivw/client/resource/custom_components.xml
WARNING: [INS-07001] Value for property 'dependants' not found in the bean store.
WARNING: [INS-07001] Value for property 'dependants' not found in the bean store.
WARNING: [INS-07001] Value for property 'dependants' not found in the bean store.
WARNING: [INS-07001] Value for property 'dependants' not found in the bean store.
WARNING: [INS-07001] Value for property 'dependants' not found in the bean store.
WARNING: [INS-07001] Value for property 'dependants' not found in the bean store.
WARNING: [INS-07001] Value for property 'dependants' not found in the bean store.
WARNING: [INS-07001] Value for property 'dependants' not found in the bean store.
WARNING: [INS-07001] Value for property 'dependants' not found in the bean store.
WARNING: [INS-07001] Value for property 'dependants' not found in the bean store.
WARNING: [INS-07001] Value for property 'dependants' not found in the bean store.
WARNING: [INS-07001] Value for property 'dependants' not found in the bean store.
WARNING: [INS-07001] Value for property 'dependants' not found in the bean store.
WARNING: [INS-07001] Value for property 'dependants' not found in the bean store.
WARNING: [INS-07001] Value for property 'dependants' not found in the bean store.
WARNING: [INS-07001] Value for property 'dependants' not found in the bean store.
WARNING: [INS-07001] Value for property 'dependants' not found in the bean store.
WARNING: [INS-07001] Value for property 'dependants' not found in the bean store.
WARNING: [INS-07001] Value for property 'dependants' not found in the bean store.
WARNING: [INS-07001] Value for property 'dependants' not found in the bean store.
WARNING: [INS-07001] Value for property 'dependants' not found in the bean store.
WARNING: [INS-07001] Value for property 'dependants' not found in the bean store.
WARNING: [INS-07001] Value for property 'dependants' not found in the bean store.
WARNING: [INS-07001] Value for property 'dependants' not found in the bean store.
WARNING: [INS-07001] Value for property 'dependants' not found in the bean store.
WARNING: [INS-07001] Value for property 'dependants' not found in the bean store.
WARNING: [INS-07001] Value for property 'dependants' not found in the bean store.
INFO: Resolving dependencies
INFO: Completed executing action at state <clientCustomInstall>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Moved to state <clientCustomInstall>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Validating state <clientCustomInstall>
INFO: Completed validating state <clientCustomInstall>
INFO: Verifying route TO_ENDCUSTOM
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Executing action at state prereqExecutionDecider
INFO: Completed executing action at state <prereqExecutionDecider>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Moved to state <prereqExecutionDecider>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Validating state <prereqExecutionDecider>
WARNING: Validation disabled for the state prereqExecutionDecider
INFO: Completed validating state <prereqExecutionDecider>
INFO: Verifying route executeprereqs
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Executing action at state checkPrereqs
INFO: custom prereq file name: oracle.client_Custom.xml
INFO: refDataFile: Z:\Source Media\KM0399 - Oracle 11g\win32_11gR2_client\client\stage\cvu\oracle.client_Custom.xml
INFO: isCustomRefDataFilePresent: false
INFO: Completed executing action at state <checkPrereqs>
INFO: Waiting for completion of background operations
INFO: Finishing all forked tasks at state checkPrereqs
INFO: Waiting for completion all forked tasks at state checkPrereqs
INFO: Creating PrereqChecker Job for leaf task Physical Memory
INFO: Creating CompositePrereqChecker Job for container task Free Space
INFO: Creating PrereqChecker Job for leaf task Free Space: GBA-P74444432:C:\Users\DESKTO~1\AppData\Local\Temp
INFO: Creating PrereqChecker Job for leaf task Architecture
INFO: Creating PrereqChecker Job for leaf task Environment variable: "PATH"
INFO: CVU tracingEnabled = false
INFO: Nodes are prepared for verification.
INFO: *********************************************
INFO: Physical Memory: This is a prerequisite condition to test whether the system has at least 128MB (131072.0KB) of total physical memory.
INFO: Severity:IGNORABLE
INFO: OverallStatus:SUCCESSFUL
INFO: -----------------------------------------------
INFO: Verification Result for Node:GBA-P74444432
INFO: Expected Value:128MB (131072.0KB)
INFO: Actual Value:1023.5547MB (1048120.0KB)
INFO: -----------------------------------------------
INFO: *********************************************
INFO: Free Space: GBA-P74444432:C:\Users\DESKTO~1\AppData\Local\Temp: This is a prerequisite condition to test whether sufficient free space is available in the file system.
INFO: Severity:IGNORABLE
INFO: OverallStatus:SUCCESSFUL
INFO: -----------------------------------------------
INFO: Verification Result for Node:GBA-P74444432
INFO: Expected Value:130MB
INFO: Actual Value:21.3053GB
INFO: -----------------------------------------------
INFO: *********************************************
INFO: Architecture: This is a prerequisite condition to test whether the system has a certified architecture.
INFO: Severity:CRITICAL
INFO: OverallStatus:SUCCESSFUL
INFO: -----------------------------------------------
INFO: Verification Result for Node:GBA-P74444432
INFO: Expected Value:32-bit
INFO: Actual Value:32-bit
INFO: -----------------------------------------------
INFO: *********************************************
INFO: Environment variable: "PATH": This test checks whether the length of the environment variable "PATH" does not exceed the recommended length.
INFO: Severity:CRITICAL
INFO: OverallStatus:OPERATION_FAILED
INFO: -----------------------------------------------
INFO: Verification Result for Node:GBA-P74444432
WARNING: Result values are not available for this verification task
INFO: All forked task are completed at state checkPrereqs
INFO: Completed background operations
INFO: Moved to state <checkPrereqs>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Validating state <checkPrereqs>
INFO: Using default Validator configured in the Action class oracle.install.ivw.client.action.PrereqAction
INFO: Adding ExitStatus PREREQUISITES_NOT_MET to the exit status set
SEVERE: [FATAL] [INS-13013] Target environment do not meet some mandatory requirements.
CAUSE: Some of the mandatory prerequisites are not met. See logs for details. C:\Users\DESKTO~1\AppData\Local\Temp\OraInstall2013-02-26_08-36-31AM\installActions2013-02-26_08-36-31AM.log
ACTION: Identify the list of failed prerequisite checks from the log: C:\Users\DESKTO~1\AppData\Local\Temp\OraInstall2013-02-26_08-36-31AM\installActions2013-02-26_08-36-31AM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.
INFO: Advice is ABORT
INFO: Adding ExitStatus INVALID_USER_INPUT to the exit status set
INFO: Completed validating state <checkPrereqs>
INFO: Terminating all background operations
INFO: Terminated all background operations
WARNING: A log of this session is currently saved as: C:\Users\DESKTO~1\AppData\Local\Temp\OraInstall2013-02-26_08-36-31AM\installActions2013-02-26_08-36-31AM.log. Oracle recommends that if you want to keep this log, you should move it from the temporary location to a more permanent location.
INFO: Finding the most appropriate exit status for the current application
INFO: Exit Status is -3
INFO: Shutdown Oracle Client Installer
INFO: Unloading Setup Driver -
Dbms_lob.writeappend in Oracle 11g
Hi,
we have this line of code
DBMS_LOB.writeappend(v_clob,doc_rec.seg_length,doc_rec.value) in our procedure.
when we run this code in oracle10g ,its not taking thath much time.But when we run in oracle 11g,its taking time.
I there any noncompatibility DBMS_LOB.writeappend for this function in oracle 11g.
Thanks in advancethanks abufazal...
actually after execution of below job, its not gathering the stats...
i have checked using select LAST_ANALYZED,TABLE_NAME from dba_tables where OWNER='XXXXX';
can anyone please suggest how to create job with scussful stats gather.
BEGIN
DBMS_SCHEDULER.CREATE_JOB (
job_name => 'example_job1',
job_type => 'PLSQL_BLOCK',
job_action => 'BEGIN
DBMS_STATS.gather_schema_stats("XXXXX", estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE, cascade => TRUE);
END;',
start_date => TO_DATE('08-06-2013 18:00','DD-MM-YYYY HH24:MI'),
repeat_interval => 'FREQ=DAILY;BYDAY=TUE;BYHOUR=18;BYMINUTE=0;BYSECOND=0',
enabled => TRUE,
comments => 'Gather table statistics');
END;
Can you provide output of the following query
SQL> select job_name,job_action,start_date,last_start_date,last_run_duration,next_run_date,failure_count from dba_scheduler_jobs where job_name='EXAMPLE_JOB1';
If the failure_count is > 0, please do share the errors from alert log file. -
Help with oracle 11g pivot operator
i need some help with oracle 11g pivot operator. is it possible to use multiple columns in the FOR clause and then compare it against multiple set of values.
here is the sql to create some sample data
create table pivot_data ( country_code number , dept number, job varchar2(20), sal number );
insert into pivot_data values (1,30 , 'SALESMAN', 5000);
insert into pivot_data values (1,301, 'SALESMAN', 5500);
insert into pivot_data values (1,30 , 'MANAGER', 10000);
insert into pivot_data values (1,301, 'MANAGER', 10500);
insert into pivot_data values (1,30 , 'CLERK', 4000);
insert into pivot_data values (1,302, 'CLERK',4500);
insert into pivot_data values (2,30 , 'SALESMAN', 6000);
insert into pivot_data values (2,301, 'SALESMAN', 6500);
insert into pivot_data values (2,30 , 'MANAGER', 11000);
insert into pivot_data values (2,301, 'MANAGER', 11500);
insert into pivot_data values (2,30 , 'CLERK', 3000);
insert into pivot_data values (2,302, 'CLERK',3500);
using case when I can write something like this and get the output i want
select country_code
,avg(case when (( dept = 30 and job = 'SALESMAN' ) or ( dept = 301 and job = 'SALESMAN' ) ) then sal end ) as d30_sls
,avg(case when (( dept = 30 and job = 'MANAGER' ) or ( dept = 301 and job = 'MANAGER' ) ) then sal end ) as d30_mgr
,avg(case when (( dept = 30 and job = 'CLERK' ) or ( dept = 302 and job = 'CLERK' ) ) then sal end ) as d30_clrk
from pivot_data group by country_code;
output
country_code D30_SLS D30_MGR D30_CLRK
1 5250 10250 4250
2 6250 11250 3250
what I tried with pivot is like this I get what I want if I have only one ( dept,job) for one alias name. I want to call (30 , 'SALESMAN') or (301 , 'SALESMAN') AS d30_sls. any help how can I do this
SELECT *
FROM pivot_data
PIVOT (SUM(sal) AS sum
FOR (dept,job) IN ( (30 , 'SALESMAN') AS d30_sls,
(30 , 'MANAGER') AS d30_mgr,
(30 , 'CLERK') AS d30_clk
this is a simple example .... my real life scenario is compliated with more fields and more combinations .... So something like using substr(dept,1,2) won't work in my real case .
any suggestions get the result similar to what i get in the case when example is really appreciated.Hi,
Sorry, I don't think there's any way to get exactly what you requested. The values you give in the PIVOT ... IN clause are exact values, not alternatives.
You could do something like this to map all alternatives to a common value:
WITH got_dept_grp AS
SELECT country_code, job, sal
, CASE
WHEN job IN ('SALESMAN', 'MANAGER') AND dept = 301 THEN 30
WHEN job IN ('CLERK') AND dept = 302 THEN 30
ELSE dept
END AS dept_grp
FROM pivot_data
SELECT *
FROM got_dept_grp
PIVOT ( AVG (sal)
FOR (job, dept_grp)
IN ( ('SALESMAN', 30)
, ('MANAGER' , 30)
, ('CLERK' , 30)
;In your sample data (and perhaps in your real data), it's about as easy to explicitly define the pivoted groups individually, like this:
WITH got_pivot_key AS
SELECT country_code, sal
, CASE
WHEN job = 'SALESMAN' AND dept IN (30, 301) THEN 'd30_sls'
WHEN job = 'MANAGER' AND dept IN (30, 301) THEN 'd30_mgr'
WHEN job = 'CLERK' AND dept IN (30, 302) THEN 'd30_clrk'
END AS pivot_key
FROM pivot_data
SELECT *
FROM got_pivot_key
PIVOT ( AVG (sal)
FOR pivot_key
IN ( 'd30_sls'
, 'd30_mgr'
, 'd30_clrk'
;Thanks for posting the CREATE TABLE and INSERT statements; that really helps! -
Oracle 11G and SqlDataSource: 'ORA-01036: illegal variable name/number'
[Resolved - http://forums.oracle.com/forums/thread.jspa?messageID=2366331�]
I've created a short video to explain my problem with Oracle and SqlDataSource. If you'd rather watch than read, go see the video at http://www.kencox.ca/video/oracelandsqldatasource.html.
I'm trying to do some extremely simple drag and drop development in Visual Web Developer 2008 with the Oracle 11g database and ODP.NET. According to Oracle, "The data provider can be used with the latest .NET Framework 3.5 version. "
The SELECT statement works fine, but any attempt to use UPDATE via the SQLDataSource UpdateCommand nets me the infamous 'ORA-01036: illegal variable name/number' error.
I wouldn't mind using one of my MSDN Support Incidents to have Microsoft take a look at this issue, but I'm not sure the problem is Microsoft's. It seems like Oracle is doing a poor job in its Visual Studio integration.
Question: Has anyone successfully used an UpdateCommand statement in SQLDataSource against Oracle 11g? If so, let me know!
Below, you see the entire code as generated in Visual Web Developer 2008. To see it in action, check the video at http://www.kencox.ca/video/oracelandsqldatasource.html.
Ken
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
DataSourceID="SqlDataSource1"
EmptyDataText="There are no data records to display.">
<Columns>
<asp:CommandField ShowEditButton="True" />
<asp:BoundField DataField="ACCOUNTID" HeaderText="ACCOUNTID"
SortExpression="ACCOUNTID" />
<asp:BoundField DataField="ACCOUNTNAME" HeaderText="ACCOUNTNAME"
SortExpression="ACCOUNTNAME" />
<asp:BoundField DataField="ACCOUNTLOCATION" HeaderText="ACCOUNTLOCATION"
SortExpression="ACCOUNTLOCATION" />
<asp:BoundField DataField="ACCOUNTPHONE" HeaderText="ACCOUNTPHONE"
SortExpression="ACCOUNTPHONE" />
<asp:BoundField DataField="ACCOUNTCONTACT" HeaderText="ACCOUNTCONTACT"
SortExpression="ACCOUNTCONTACT" />
<asp:BoundField DataField="ACCOUNTWEBSITE" HeaderText="ACCOUNTWEBSITE"
SortExpression="ACCOUNTWEBSITE" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:ConnectionString1 %>"
ProviderName="<%$ ConnectionStrings:ConnectionString1.ProviderName %>"
SelectCommand="SELECT "ACCOUNTID", "ACCOUNTNAME", "ACCOUNTLOCATION", "ACCOUNTPHONE", "ACCOUNTCONTACT", "ACCOUNTWEBSITE" FROM "ACCOUNTS""
UpdateCommand="UPDATE ACCOUNTS SET ACCOUNTLOCATION = 'This Place' WHERE (ACCOUNTID = 4)">
</asp:SqlDataSource>
</div>
</form>
</body>
</html>//////////using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class _Default : System.Web.UI.Page
protected void Page_Load(object sender, EventArgs e)
Message was edited by:
kjopcKen,
One thing to be aware of is Microsoft has produced Visual Studio database tools and data provider for Oracle. In addition, Oracle has produced its own tools. Knowing which products you are using is important because you want to know which company you should be complaining about. :-)
In your video, you are using all Microsoft tools and data provider, not Oracle's.
I would recommend using Oracle Developer Tools (ODT) for VS and ODP.NET since these products are much better integrated with .NET and Oracle.
ODP.NET uses Oracle.DataAccess.Client namespace. System.Data.OracleClient belongs to the MS provider for Oracle, which Mark pointed out. If you drag and drop DB objects using ODT, it will generate ODP.NET code for you (and give you more data source wizard options as well).
You can download the latest 11g version of ODP.NET and ODT here:
http://www.oracle.com/technology/software/tech/windows/odpnet/index.html
These support .NET 3.5 and VS 2008. -
Oracle 11g Database Performance
We have Oracle 11g (11.1.0.6) database on HP-UX (IA). It’s around 200G database, and we have lot of batch job and reports running against this database. This database is performing really bad, whenever we restart the application and the database its performing good batch jobs are running for 2 hrs, the time will increase gradually and after few days same job taking more that 20 hrs some times its not even complete we manually kill it.
So I am guessing this is related to memory (SGA) issue, we have configured automatic memory management. But I don’t know where/what to look to find the root cause. Can some one help me to find a problem?Database Memory Details_
SQL> select * from V_$SGA_TARGET_ADVICE;
SGA_SIZE SGA_SIZE_FACTOR ESTD_DB_TIME ESTD_DB_TIME_FACTOR ESTD_PHYSICAL_READS
13312 1 267849 1 110687043
3328 .25 1147710 4.2849 231524088
6656 .5 560074 2.091 149969875
9984 .75 353321 1.3191 121279793
16640 1.25 228583 .8534 106547348
19968 1.5 204503 .7635 103204599
23296 1.75 139577 .5211 94194674
26624 2 139577 .5211 94194674
8 rows selected.
SQL>
SQL>
SQL> show sga;
Total System Global Area 1.6034E+10 bytes
Fixed Size 2112960 bytes
Variable Size 3422552640 bytes
Database Buffers 1.2549E+10 bytes
Redo Buffers 60190720 bytes
SQL>
SQL>
SQL> show parameter;
NAME TYPE VALUE
memory_max_target big integer 15G
memory_target big integer 15G
pga_aggregate_target big integer 512M
sga_target big integer 13G
sga_max_size big integer 15G
SQL>
SQL>
Memory & CPU_
Load averages: 0.10, 0.12, 0.12
319 processes: 263 sleeping, 56 running
Cpu states:
CPU LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS
0 0.07 1.6% 0.0% 1.8% 96.6% 0.0% 0.0% 0.0% 0.0%
2 0.13 3.6% 0.0% 1.4% 95.0% 0.0% 0.0% 0.0% 0.0%
4 0.12 7.3% 0.0% 4.0% 88.7% 0.0% 0.0% 0.0% 0.0%
6 0.09 3.6% 0.0% 4.4% 92.1% 0.0% 0.0% 0.0% 0.0%
avg 0.10 4.0% 0.0% 2.8% 93.2% 0.0% 0.0% 0.0% 0.0%
System Page Size: 4Kbytes
Memory: 16795892K (5385924K) real, 19681732K (6338872K) virtual, 1122788K free Page# 1/6 -
ORACLE 11g + PHP5 problem: "fetch out of sequence" on i5/OS AS/400
Hi!
I have a big problem using a database connection to i5 AS/400 with PHP5 OCI8 interface by Oracle 11g:
when doing a simple "select * from (as400_database_link)" I get this return: "fetch out of sequence... preceding line..."
I never had this problem with 9i, old transparent gateway.
BUT:
when doing for example a "select * from (as400_database_link) where rownum < 1000000" it works fine without problems.
Anyone an idea how to eliminate this stupid "where rownum < 100000" behaviour?
I would have to add this in many select statements... ;(
bye,
OliverTach,
how do you call oci_execute ?
try oci_execute($query,OCI_DEFAULT);
I had the same problem with adodb
$q = " select * from elephant@africa";
$db->GetAll($q);
Failed with the same error.
ADODB called oci_execute with OCI_COMMIT_ON_SUCCESS,which caused my error.
$q = " select * from elephant@africa";
$db->BeginTrans();
$db->GetAll($q);
$db->CommitTrans(); (or rollback);
did the job,because BeginTrans changed oci_execute to run with OCI_DEFAULT.
Hope this helps,
gw
Edited by: unficyp123 on Oct 20, 2008 2:51 PM -
Can we change GATHER_STATS_PROG (auto gather stat job) behavior
Hi All,
Is anyway we can change default oracle auto gather job ?
We know that oracle gather job (GATHER_STATS_JOB, below 11g) will trigger base on the Maintenance Window, we have few huge Production environment.
We're thinking to gather application schema stat by using our own scripts, thus would like to know is anyway we can still enable oracle auto gather stat
but exclude application schema?
Thanks in advance.
Regards,
KlnghauHi All,
Forgot to mention my oracle version is 10.2.0.4, and I think i find the solution from My Oracle support,
Oracle10g: New DBMS_STATS parameter AUTOSTATS_TARGET [ID 276358.1]
This is a new parameter in Oracle10g for the DBMS_STATS package.
According to the documentation for this package in file dbmsstat.sql
(under ORACLE_HOME/rdbms/admin):
This parameter is applicable only for auto stats collection.
The value of this parameter controls the objects considered for stats collection.
It takes the following values:
'ALL' -- statistics collected for all objects in system
'ORACLE' -- statistics collected for all oracle owned objects
'AUTO' -- oracle decides for which objects to collect stats
Default is AUTO, i think i can chenge to ORACLE in my environment.
Thanks -
Hello Guys
Oracle 11g new features notes as found on web very generic
if i want to convince my client to switch from oracle 10g to oracle 11g,this information will not be useful
if you had migrated to 11g and worked on it,please reply practical reasons from dba point of view
how customer will be benefited from migrating from oracle 10 g to 11g
like if i mentioned to him ADR feature it doesnt makes sense to him
Active dataguard may be one of feature but will be have any benefit where dataguard is implemented
still to application guys also it will give any advantage
say for example i am discussing this with Application team head ,how will he benefit from migrating to 11g
what feature will be benefitted to him and how
will this feature will be appealing enough to efforts in migration
thanks
cheersIn my opinion, the best way to convince them is to do an assessment for their particular environment, based on the specifics.
For example, I've done such one for a database and here are some of the points:
1. Almost 30%(as reported by Grid Control) of frequently executed queries are on tables like XX.XXXX and YY.YYYYY. These tables are relatively small and statements , and functions on them are good candidates for modification to use :
Query Results Cache and PL/SQL Function Result Cache (Oracle 11G Enterprise Edition option, no extra cost needed).
2. From time to time we experience sudden execution plan changes and get worse plans. This degrades applications' performance orders of magnitude. Oracle 11g has a new built-in feature called "SQL Plan Management". As described in the docs:
"SQL plan management prevents performance regressions resulting from sudden changes to the execution plan of a SQL statement by providing components for capturing, selecting, and evolving SQL plan information. If you are performing a database upgrade that installs a new optimizer version, it can result in plan changes for a small percentage of SQL statements, with most of the plan changes resulting in either no performance change or improvement. However, certain plan changes may cause performance regressions.
With SQL plan management, the optimizer automatically manages execution plans and ensures that only known or verified plans are used. When a new plan is found for a SQL statement, the plan is not used until it has been verified by the database to have comparable or better performance than the current plan. This means if you seed SQL plan management with your current (pre-11g) execution plan, which will become the SQL plan baseline for each statement, the optimizer uses these plans after the upgrade. If the 11g optimizer determines that a different plan should be used, the new plan is queued for verification and will not be used until it has been confirmed to have comparable or better performance than the current plan."
I don't expect this to be perfect but at least it will decrease the number of such problematic periods.
3. 10g Recovery Manager doesn't support parallelism per datafile. In our environment we have several 30+GB datafiles and since our storage system is not very fast for such type of operations, non-parallel restore of a single datafile will take much more time compared to the same activity on 11g. 11g supports RMAN datafile restore in parallel.
4. Several optimizations in optimizer work. One of them is better handling of full scans:
We've done some tests 10g/11g and were surprised because of this direct path read/db file scattered reads thing. Our tests are:
Two databases - one 11g and one 10g with same sga_target,sga_max_size(500MB) and pga_aggregate_target(200MB), everything else is as it is set during install by DBCA. These two databases run on one host.
The storage is a NAS(6 discs) managed by 11g ASM (one normal redundancy diskgroup ) which is used by the databases.
I imported a 3GB table on every database and gathered stats. To not go in detail as of now, the results are:
three consecutive runs on 11g.
average execution time - 50 seconds
three consecutive runs on 10g.
average execution time - 125 seconds
The statement is:
select /*+ full(t) nocache(t) */ count(1) from zz.zzz t;
and there is no other activity on the host and the storage.
Same number of logical and physical reads during 11g and 10g runs.
During the above runs while run on:
11g, iostat reports ~14MB/s per disk
10g, iostat reports ~5MB/s per disk
After tracing these sessions we figured out that on 11g direct path read is used, while 10g uses db file scattered read.
5. We can use AUDIT_SYS_OPERATIONS in conjunction with XML,EXTENDED for auditing purposes. 10.2.0.4 has a bug for this that is fix in 11.1.0.6 onwards.
6. Database Resident Connection Pooling(Concepts guide 11g documentation)
"Database Resident Connection Pooling (DRCP) provides a connection pool in the database server for typical Web application usage scenarios. DRCP pools dedicated servers, which comprise of a server foreground combined with a database session, to create pooled servers.
A Web application typically acquires a database connection, uses the connection for a short period, and then releases the connection. DRCP enables multiple Web application threads and processes to share the pooled servers for their connection needs.
DRCP complements middle-tier connection pools that share connections between threads in a middle-tier process. DRCP also enables you to share database connections across multiple middle-tier processes. These middle-tier processes may belong to the same or different middle-tier host.
DRCP enables a significant reduction in key database resources that are required to support a large number of client connections. DRCP reduces the amount of memory required for the database server and boosts the scalability of both the database server and the middle-tier. The pool of readily available servers also reduces the cost of re-creating client connections.
DRCP is especially useful for architectures with multi-process, single-threaded application servers, such as PHP and Apache servers, that cannot do middle-tier connection pooling. The database can scale to tens of thousands of simultaneous connections with DRCP."
It will help us to improve dedicated server usage(currently we use shared server).
7. A lot of bug fixes for bugs that don't have 10g patches , fixed in 11g only and affect us - examples XML,EXTENDED and AUDIT_SYS_OPERATIONS bug, FGA bugs, job system on logical standby database , "ORA-12569: TNS:packet checksum failure" during sqlplus login and so on.
It's for sure that there are much more such convincing points, but a several days assessment will make it possible to identify the most important ones from performance/availability/security perspective for their environment. As it is often the case - the devil is in the details. It's all about the way they use the database.
Maybe you are looking for
-
Hi, can you pls help me in telling use of semantic groups in DTP. Thanks Jose
-
I current have a two server domain, both Windows 2008 R2 and fully updated. The two servers are on subnet 10.0.1.0 /24 - Windows 2008 R2 Server A: 10.0.1.1 (DC, GC, FSMO, DNS) - Windows 2008 R2 Server B: 10.0.1.2 (DC, GC) AD Domain: COMPANY.LOCAL I
-
Add/Remove instance manager issues
My add instance button is working as intended. The remove instance button is working, but not as I would like it to. The instance it removes is not necessarily the last instance added, as I would like. When "clicked" it removes the second instance li
-
Bapi to create delivery for purchase orders
Hi Expets, what is the bapi to create a delivery for purchase orders.urgent.please do the needful kiran j
-
How to scan soure of methods?
I want to scan source of methods. For exapmle, Class Interface "CL_IM_FI_HEADER_1300_FS" has 4 methods. IF_EX_FI_HEADER_SUB_1300~PUT_DATA_TO_SCREEN_PBO IF_EX_FI_HEADER_SUB_1300~PUT_DATA_TO_SCREEN_PAI IF_EX_FI_HEADER_SUB_1300~GET_DATA_FROM_SCREEN_PBO