SQL performance in 10g and 9i

Hi,
Will there be any performance gain in SQLs in 10g database (same server configuration) compared to 9i? If yes, what are the reasons?
Thanks
SA

user593719 wrote:
Hi,
Will there be any performance gain in SQLs in 10g database (same server configuration) compared to 9i? If yes, what are the reasons?
Thanks
SAAs Sb said, the answer truly is "it depends" and to be more precise, you may find more hiccups on your way when you would be working in 10g and if you have used lots of hints over your queries in 9i. The supported optimizer mode in 10g is Cost Based mode where rather than working on straight set of few rules, the estimated cost incurred on each step is calculated by oracle and than the plan is decided. So if you were forcing an index in 9i for your query, probably going for the same plan in 10g may not be really good. This is not to say that it would be always the case but you would need to do a deep check rather than looking for a generalized rule like you mentioned that whether youe queries would be better in X release than Y or not?
HTH
Aman....

Similar Messages

  • SQL Performance Analyzer Information

    Hi,
    i would use SQL Performance Analyzer to test changes between 10g and 11g database.
    I will use Parameter Change option in SQL Performance Analyzer Workflows and test the change of parameter OPTIMIZER_FEATURES_ENABLE.
    Now, if I find some query that should be optimized how can I save new profiles from the test environment and apply it after i upgrade the production environment?
    tnx

    >
    i would use SQL Performance Analyzer to test changes between 10g and 11g database.
    I will use Parameter Change option in SQL Performance Analyzer Workflows and test the change of parameter OPTIMIZER_FEATURES_ENABLE.
    Now, if I find some query that should be optimized how can I save new profiles from the test environment and apply it after i upgrade the production environment?
    >
    To me, your question translates to: 'How can I export SQL Profiles from test and import into production?'
    Answer: Use
    DBMS_SQLTUNE.CREATE_STGTAB_SQLPROF
    DBMS_SQLTUNE.PACK_STGTAB_SQLPROF
    to create a util table on test and store SQL Profiles into.
    Then datapump util table to production and
    DBMS_SQLTUNE.UNPACK_STGTAB_SQLPROF
    there.
    Kind regards
    Uwe Hesse
    http://uhesse.wordpress.com

  • SQL performance 9i and 10g

    Hi guys,
    I have question regarding sql fetching slow response issue in 10g compared to 9i. Have enabled the 10046 trace the actual CPU and Elapsed time of that query.
    cpu = cpu time in seconds executing
    elapsed = elapsed time in seconds executing
    rows = number of rows processed by the fetch or execute call
    SQL == Running on 9i
    call count cpu elapsed disk query current rows
    Parse 1 0.01 0.01 0 0 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 13295 1.39 1.55 513 14742 0 13294
    total 13297 1.40 1.56 513 14742 0 13294
    SQL == Running on 10g
    call count cpu elapsed disk query current rows
    Parse 1 0.01 0.00 0 0 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 13305 1.41 1.32 0 14621 0 13304
    total 13307 1.42 1.32 0 14621 0 13304
    They are running quite fast in 9i and 10g Database with the trace report. However, there has slow response issue on 10g.
    E.g SQL> set time on
    SQL> set timing on
    ---- fetching records on screen
    ---- truncated
    13304 returned.
    00:15:21
    SQL>
    In 9i, it only takes 2 mins to return the sqlplus prompt, but take at least 15 mins to return in 10g. Do you have any idea?
    I have raised the issue with Oracle Support, the the OSS said.. your 10046 trace is good and take only 1-2 sec. And he didn't follow after that. Please help if you have idea. Thanks
    Best Regards,
    Vbeer.

    Hi Charles,
    Oracle Version 10.2.0.3
    NAME TYPE VALUE
    statistics_level string TYPICAL
    NAME TYPE VALUE
    optimizer_dynamic_sampling integer 2
    In 10g raw trace file of 10046:
    <--QUERY-->
    END OF STMT
    PARSE #1:c=10000,e=4193,p=0,cr=0,cu=0,mis=1,r=0,dep=0,og=1,tim=21234109349008
    BINDS #1:
    EXEC #1:c=0,e=115,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,tim=21234109349329
    WAIT #1: nam='SQL*Net message to client' ela= 3 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109349392
    WAIT #1: nam='SQL*Net message from client' ela= 669 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109350166
    WAIT #1: nam='SQL*Net message to client' ela= 0 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109350353
    WAIT #1: nam='SQL*Net more data to client' ela= 12 driver id=1650815232 #bytes=2161 p3=0 obj#=77206 tim=21234109350403
    FETCH #1:c=0,e=224,p=0,cr=4,cu=0,mis=0,r=1,dep=0,og=1,tim=21234109350428
    WAIT #1: nam='SQL*Net message from client' ela= 149 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109350613
    WAIT #1: nam='SQL*Net more data from client' ela= 9 driver id=1650815232 #bytes=524 p3=0 obj#=77206 tim=21234109350665
    WAIT #0: nam='SQL*Net message to client' ela= 1 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109350737
    WAIT #0: nam='SQL*Net more data to client' ela= 9 driver id=1650815232 #bytes=2524 p3=0 obj#=77206 tim=21234109350774
    WAIT #0: nam='SQL*Net message from client' ela= 5199 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109355996
    WAIT #1: nam='SQL*Net message to client' ela= 1 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109356058
    FETCH #1:c=0,e=48,p=0,cr=1,cu=0,mis=0,r=1,dep=0,og=1,tim=21234109356084
    WAIT #1: nam='SQL*Net message from client' ela= 61 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109356177
    WAIT #0: nam='SQL*Net message to client' ela= 1 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109356218
    WAIT #0: nam='SQL*Net message from client' ela= 4931 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109361179
    WAIT #1: nam='SQL*Net message to client' ela= 0 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109361248
    FETCH #1:c=0,e=43,p=0,cr=1,cu=0,mis=0,r=1,dep=0,og=1,tim=21234109361272
    WAIT #1: nam='SQL*Net message from client' ela= 81 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109361388
    WAIT #0: nam='SQL*Net message to client' ela= 1 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109361447
    WAIT #0: nam='SQL*Net message from client' ela= 5057 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109366540
    WAIT #1: nam='SQL*Net message to client' ela= 1 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109366602
    FETCH #1:c=0,e=52,p=0,cr=1,cu=0,mis=0,r=1,dep=0,og=1,tim=21234109366629
    WAIT #1: nam='SQL*Net message from client' ela= 75 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109366737
    WAIT #0: nam='SQL*Net message to client' ela= 1 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109366778
    WAIT #0: nam='SQL*Net message from client' ela= 4913 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109371739
    WAIT #1: nam='SQL*Net message to client' ela= 0 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109371791
    FETCH #1:c=0,e=42,p=0,cr=1,cu=0,mis=0,r=1,dep=0,og=1,tim=21234109371815
    WAIT #1: nam='SQL*Net message from client' ela= 64 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109371911
    WAIT #0: nam='SQL*Net message to client' ela= 0 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109371947
    WAIT #0: nam='SQL*Net message from client' ela= 95474 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109467455
    WAIT #1: nam='SQL*Net message to client' ela= 1 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109467536
    FETCH #1:c=0,e=58,p=0,cr=1,cu=0,mis=0,r=1,dep=0,og=1,tim=21234109467563
    WAIT #1: nam='SQL*Net message from client' ela= 248 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109467848
    WAIT #0: nam='SQL*Net message to client' ela= 1 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109467893
    WAIT #0: nam='SQL*Net message from client' ela= 5526 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109473480
    WAIT #1: nam='SQL*Net message to client' ela= 3 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109473716
    FETCH #1:c=0,e=143,p=0,cr=1,cu=0,mis=0,r=1,dep=0,og=1,tim=21234109473761
    WAIT #1: nam='SQL*Net message from client' ela= 148 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109473979
    WAIT #0: nam='SQL*Net message to client' ela= 0 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109474068
    WAIT #0: nam='SQL*Net message from client' ela= 5516 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109479623
    WAIT #1: nam='SQL*Net message to client' ela= 1 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109479745
    FETCH #1:c=0,e=84,p=0,cr=1,cu=0,mis=0,r=1,dep=0,og=1,tim=21234109479781
    WAIT #1: nam='SQL*Net message from client' ela= 126 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109479950
    WAIT #0: nam='SQL*Net message to client' ela= 0 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109479996
    WAIT #0: nam='SQL*Net message from client' ela= 182929 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109662981
    WAIT #1: nam='SQL*Net message to client' ela= 2 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109663141
    FETCH #1:c=0,e=100,p=0,cr=1,cu=0,mis=0,r=1,dep=0,og=1,tim=21234109663177
    WAIT #1: nam='SQL*Net message from client' ela= 139 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109663368
    WAIT #0: nam='SQL*Net message to client' ela= 0 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109663434
    WAIT #0: nam='SQL*Net message from client' ela= 5593 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109669069
    WAIT #1: nam='SQL*Net message to client' ela= 2 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109669240
    FETCH #1:c=0,e=110,p=0,cr=1,cu=0,mis=0,r=1,dep=0,og=1,tim=21234109669282
    WAIT #1: nam='SQL*Net message from client' ela= 167 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109669506
    WAIT #0: nam='SQL*Net message to client' ela= 1 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109669597
    WAIT #0: nam='SQL*Net message from client' ela= 5505 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109675138
    WAIT #1: nam='SQL*Net message to client' ela= 1 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109675213
    FETCH #1:c=0,e=56,p=0,cr=1,cu=0,mis=0,r=1,dep=0,og=1,tim=21234109675239
    WAIT #1: nam='SQL*Net message from client' ela= 76 driver id=1650815232 #bytes=1 p3=0 obj#=77206 tim=21234109675351
    Cheers,
    Vbeer

  • Real Application Testing/Sql Performance Analyzer Docs in 10g....

    I believed that both the tools mentioned in the subject are a part of 11g and so are in the 11g docs.
    http://download.oracle.com/docs/cd/B28359_01/server.111/e12253/toc.htm
    But I was just looking at 10g book listing and I saw the same book in 10g documentation as well.
    http://download.oracle.com/docs/cd/B19306_01/server.102/e12024/toc.htm
    Now my best guess is that this is due to the backporting of 11g tools for the previous releases. Means that we can do RAT or use SPA in pre 11g databases as well so this doc book is added. Is it correct or there is some other reason?
    Cheers
    Aman....

    Real Application Testing was introduced as a new feature in Oracle Database 11g. The documentation for Real Application Testing was released in 4 phases.
    In the initial phase, the usage of Real Application Testing was documented in the Performance Tuning Guide for release 11.1.
    In the second phase, the Real Application Testing User's Guide was released for release 10.2 to document certain backported functionalities. For Database Replay, the capability to capture a database workload was backported. For SQL Performance Analyzer, the capability to capture a SQL workload into a SQL tuning set was backported. These functionalities were backported to Oracle Database 10g Release 2 (version 10.2.0.4 or higher) to support customers who want to use Real Application Testing to test database upgrades from a previous version of Oracle Database to Oracle Database 11g.
    In the third phase, the Real Application Testing Addendum was released for release 11.1 to document the added functionality to read SQL trace files from Oracle Database 9i to construct a SQL tuning set that can be used as an input source for SQL Performance Analyzer in release 11.1.0.7.
    In the final phase, all available documentation for Real Application Testing contained in the above documents were consolidated into the Real Application Testing User's Guide for release 11.1. Going forward, this guide will contain all documentation of Real Application Testing and be updated for each release.
    Regards,
    Immanuel

  • SQL: System locks up and runs slow after performing simple DML record insert

    SQL Version:  2008 R2
    I am having a serious problem.  I ran the following code to perform a simple table record insert which ran successfully.  However, after running this code I could no longer access the related table.  I couldn't run a query against it. 
    I tried to delete all the records and that wouldn't work either.  When attempting to run any DML statements (i.e. Select * From vPCCertificateTypes) against this table SQL gets locked up and never returns anything and no error messages.  I have
    to manually stop the query.  Now the entire SQL system is running slow.
    Any help would be greatly appreciated.  The code I ran to originally insert the records is below.
    Regards,
    Bob Sutor
    CODE: 
    Begin TRAN
     INSERT INTO vPCCertificateTypes (VendorGroup, CertificateType, Description, Active, Category)
     SELECT HQCo, 'MBE', 'Minority-owned Business Enterprise', 'Y', 'Affirmative Action' 
     FROM HQCO
     Where HQCo IS NOT NULL
      AND HQCo <> 100
      AND HQCo <> 99
     IF @@ROWCOUNT <> 44 ROLLBACK ELSE COMMIT
    Bob Sutor

    The problem was an open uncommitted transaction against the table as you suspected.  I ran your code and it cleared the transaction.  In the past I would intentionally leave our the Commit statement and then if the transaction ran fine, I would
    simply highlight and run 'COMMIT' and it would close the transaction.  Apparently that is not the correct approach.  I'll use your suggested code from now on.
    Thanks for the help.
    Bob Sutor

  • No of columns in a table and SQL performance

    How does the table size effects sql performance?
    I am comparing 2 tables , with same number of rows(54 million rows) ,
    table1(columns a,b,c,d,e,f..) has 40 columns
    table2 (columns (a,b,c,d)
    SQL uses columns a,b.
    SQL using table2 runs in 1 sec.
    SQL using table1 runs in 30 min.
    Can any one please let me know how the table size , number of columns in table efects the performance of SQL's?
    Thanks
    jeevan.

    user600431 wrote:
    This is a general question. I just want to compare table with more columns and table with less columns with same number of rows .
    I am finding that table with less columns is good in performance , than the table with more columns.
    Assuming there are no row chains , will there be any difference in performance with the number of columns in a table.Jeevan,
    the question is not how many columns your table has, but how large your table segment is. If your query runs a full table scan it has to read through the whole table segment, so in that case the size of the table matters.
    A table having more columns potentially has a larger row size than a table with less columns but this is not a general rule. Think of large columns, e.g. varchar2 columns, think of blank (NULL) columns and you can easily end up with a table consisting of a single column taking up more space per row than a table with 200 columns consisting only of varchar2(1) columns.
    Check the DBA/ALL/USER_SEGMENTS view to determine the size of your two table segments. If you gather statistics on the tables then the dictionary will contain information about the average row size.
    If your query is using indexes then the size of the table won't affect the query performance significantly in many cases.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • SQL Performance and Security

    Help needed here please. I am new to this concept and i am working on a tutorial based on SQL performance and security. I have worked my head round this but now i am stuck.
    Here is the questions:
    1. Analyse possible performance problems, and suggest solutions for each of the following transactions against the database
    a) A manager of a project needs to inspect total planned and actual hours spent on a project broken down by activity.
    e.g     
    Project: xxxxxxxxxxxxxx
    Activity Code          planned     actual (to date)
         1          20          25
         2          30          30
         3          40          24
    Total               300          200
    Note that actual time spent on an activity must be calculated from the WORK UNIT table.
    b)On several lists (e.g. list or combo boxes) in the on-line system it is necessary to identify completed, current, or future projects.
    2. Security: Justify and implement solutions at the server that meet the following security requirements
    (i)Only members of the Corporate Strategy Department (which is an organisation unit) should be able to enter, update and delete data in the project table. All users should be able to read this information.
    (ii)Employees should only be able to read information from the project table (excluding the budget) for projects they are assigned to.
    (iii)Only the manager of a project should be able to update (insert, update, delete) any non-key information in the project table relating to that project.
    Here is the project tables
    set echo on
    * Changes
    * 4.10.00
    * manager of employee on a project included in the employee on project table
    * activity table now has compound key, based on ID dependence between project
    * and activity
    drop table org_unit cascade constraints;
    drop table project cascade constraints;
    drop table employee cascade constraints;
    drop table employee_on_project cascade constraints;
    drop table employee_on_activity cascade constraints;
    drop table activity cascade constraints;
    drop table activity_order cascade constraints;
    drop table work_unit cascade constraints;
    * org_unit
    * type - for example in lmu might be FACULTY, or SCHOOL
    CREATE TABLE org_unit
    ou_id               NUMBER(4)      CONSTRAINT ou_pk PRIMARY KEY,
    ou_name          VARCHAR2(40)     CONSTRAINT ou_name_uq UNIQUE
                             CONSTRAINT ou_name_nn NOT NULL,
    ou_type          VARCHAR2(30) CONSTRAINT ou_type_nn NOT NULL,
    ou_parent_org_id     NUMBER(4)     CONSTRAINT ou_parent_org_unit_fk
                             REFERENCES org_unit
    * project
    CREATE TABLE project
    proj_id          NUMBER(5)     CONSTRAINT project_pk PRIMARY KEY,
    proj_name          VARCHAR2(40)     CONSTRAINT proj_name_uq UNIQUE
                             CONSTRAINT proj_name_nn NOT NULL,
    proj_budget          NUMBER(8,2)     CONSTRAINT proj_budget_nn NOT NULL,
    proj_ou_id          NUMBER(4)     CONSTRAINT proj_ou_fk REFERENCES org_unit,
    proj_planned_start_dt     DATE,
    proj_planned_finish_dt DATE,
    proj_actual_start_dt DATE
    * employee
    CREATE TABLE employee
    emp_id               NUMBER(6)     CONSTRAINT emp_pk PRIMARY KEY,
    emp_name          VARCHAR2(40)     CONSTRAINT emp_name_nn NOT NULL,
    emp_hiredate          DATE          CONSTRAINT emp_hiredate_nn NOT NULL,
    ou_id               NUMBER(4)      CONSTRAINT emp_ou_fk REFERENCES org_unit
    * activity
    * note each activity is associated with a project
    * act_type is the type of the activity, for example ANALYSIS, DESIGN, BUILD,
    * USER ACCEPTANCE TESTING ...
    * each activity has a people budget , in other words an amount to spend on
    * wages
    CREATE TABLE activity
    act_id               NUMBER(6),
    act_proj_id          NUMBER(5)     CONSTRAINT act_proj_fk REFERENCES project
                             CONSTRAINT act_proj_id_nn NOT NULL,
    act_name          VARCHAR2(40)     CONSTRAINT act_name_nn NOT NULL,
    act_type          VARCHAR2(30)     CONSTRAINT act_type_nn NOT NULL,
    act_planned_start_dt     DATE,
    act_actual_start_dt      DATE,
    act_planned_end_dt     DATE,
    act_actual_end_dt     DATE,
    act_planned_hours     number(6)     CONSTRAINT act_planned_hours_nn NOT NULL,
    act_people_budget     NUMBER(8,2)      CONSTRAINT act_people_budget_nn NOT NULL,
    CONSTRAINT act_pk PRIMARY KEY (act_id, act_proj_id)
    * employee on project
    * when an employee is assigned to a project, an hourly rate is set
    * remember that the persons manager depends on the project they are on
    * the implication being that the manager needs to be assigned to the project
    * before the 'managed'
    CREATE TABLE employee_on_project
    ep_emp_id          NUMBER(6)     CONSTRAINT ep_emp_fk REFERENCES employee,
    ep_proj_id          NUMBER(5)     CONSTRAINT ep_proj_fk REFERENCES project,
    ep_hourly_rate      NUMBER(5,2)      CONSTRAINT ep_hourly_rate_nn NOT NULL,
    ep_mgr_emp_id          NUMBER(6),
    CONSTRAINT ep_pk PRIMARY KEY(ep_emp_id, ep_proj_id),
    CONSTRAINT ep_mgr_fk FOREIGN KEY (ep_mgr_emp_id, ep_proj_id) REFERENCES employee_on_project
    * employee on activity
    * type - for example in lmu might be FACULTY, or SCHOOL
    CREATE TABLE employee_on_activity
    ea_emp_id          NUMBER(6),
    ea_proj_id          NUMBER(5),
    ea_act_id          NUMBER(6),      
    ea_planned_hours      NUMBER(3)     CONSTRAINT ea_planned_hours_nn NOT NULL,
    CONSTRAINT ea_pk PRIMARY KEY(ea_emp_id, ea_proj_id, ea_act_id),
    CONSTRAINT ea_act_fk FOREIGN KEY (ea_act_id, ea_proj_id) REFERENCES activity ,
    CONSTRAINT ea_ep_fk FOREIGN KEY (ea_emp_id, ea_proj_id) REFERENCES employee_on_project
    * activity order
    * only need a prior activity. If activity A is followed by activity B then
    (B is the prior activity of A)
    CREATE TABLE activity_order
    ao_act_id          NUMBER(6),      
    ao_proj_id          NUMBER(5),
    ao_prior_act_id      NUMBER(6),
    CONSTRAINT ao_pk PRIMARY KEY (ao_act_id, ao_prior_act_id, ao_proj_id),
    CONSTRAINT ao_act_fk FOREIGN KEY (ao_act_id, ao_proj_id) REFERENCES activity (act_id, act_proj_id),
    CONSTRAINT ao_prior_act_fk FOREIGN KEY (ao_prior_act_id, ao_proj_id) REFERENCES activity (act_id, act_proj_id)
    * work unit
    * remember that DATE includes time
    CREATE TABLE work_unit
    wu_emp_id          NUMBER(5),
    wu_act_id          NUMBER(6),
    wu_proj_id          NUMBER(5),
    wu_start_dt          DATE CONSTRAINT wu_start_dt_nn NOT NULL,
    wu_end_dt          DATE CONSTRAINT wu_end_dt_nn NOT NULL,
    CONSTRAINT wu_pk PRIMARY KEY (wu_emp_id, wu_proj_id, wu_act_id, wu_start_dt),
    CONSTRAINT wu_ea_fk FOREIGN KEY (wu_emp_id, wu_proj_id, wu_act_id)
              REFERENCES employee_on_activity( ea_emp_id, ea_proj_id, ea_act_id)
    /* enter data */
    start ouins
    start empins
    start projins
    start actins
    start aoins
    start epins
    start eains
    start wuins
    start pmselect
    I have the tables containing ouins and the rest. email me on [email protected] if you want to have a look at the tables.

    Answer to your 2nd question is easy. Create database roles for the various groups of people who are allowed to access or perform various DML actions.
    The assign the various users to these groups. The users will be restricted to what the roles are restricted to.
    Look up roles if you are not familiar with it.

  • SQL performance slow -- oracle 10g to oracle 11g

    Hi,
    We are have two development server, here we can call server10 and server11.
    Server’s having same hardware and OS, but different oracle version, server 10 and server 11 having oracle 10g and oracle 11g respectively.
    Problem, when you run sql query in oracle 11g it’s very slow compare to oracle 10g server.
    Here I have checked
    1)     sga size – comparatively 11g size is big
    2)     no full table scan
    OS – SUN
    DB: 11.1.0.7.0, 10.2.0.4.0

    mmee wrote:
    Hi,
    We are have two development server, here we can call server10 and server11.
    Server’s having same hardware and OS, but different oracle version, server 10 and server 11 having oracle 10g and oracle 11g respectively.
    Problem, when you run sql query in oracle 11g it’s very slow compare to oracle 10g server.
    Here I have checked
    1)     sga size – comparatively 11g size is big
    2)     no full table scan
    OS – SUN
    DB: 11.1.0.7.0, 10.2.0.4.0If the query is running slow, the sga size should not be the first thing to check. PLease post the execution plans of the queries from both the servers. Please try to post the tkprof output of the trace of both. The reason for this that explain plan may lie to us about what has happened but trace would be the real picture only.
    HTH
    Aman....
    PS: Don't forget to use the code tag and using the Preview tab to see how the code looks. A better formatted post would most likely get better attention and response.

  • Client transport  between SAP on Oracle 10G and MS SQL server 2005

    Hi Folks,
    We have a requirement where we have to do client export/import from SAP ECC 6.O running on Oracle 10g and to SAP ECC 6.0 running on MS SQL server 2005.I want to know whether SAP supports this and patch levels of all components two systems should be the same.
    Thanks in advance,
    Basis Admin

    Not recommendet because of potential :
    -  patch level inconsistency
    - ABAP dictionary inconsistency (programs, tables)
    - possible client independent configuration conflicts
        existing config cen disturb "imported" client
        imported config can ddisturb  existing clients
    If there are any inconsistencies mentioned above you are in trouble...
    regards,
    wojtek

  • Connect Oracle 10g and OWB to SQL Server 2005 in Windows XP

    I am unable to create a working connection between Oracle 10g and a SQL Server database. I have followed the instructions in several sources, but when I attempt to connect to the MSSQL database through SQL Plus or SQL Developer, I get the ORA-03135 error. I set up a non-Oracle location in OWB and the connection test was successful but the metadata would not import. Creating an Oracle location with the same parameters produced the ORA-03135 error.
    In TNSNAMES.ORA I placed the following definition:
    MSSQL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = wgilt1.hsd1.nj.comcast.net)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = MSSQL)
         (HS = OK)
    In LISTENER.ORA I placed the following in the SID_LIST_LISTENER:
    (SID_DESC =
    (SID_NAME = MSSQL)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_2)
    (PROGRAM = hsodbc)
    The inimssql.ora file contains the following:
    HS_FDS_CONNECT_INFO = MSSQL
    HS_DB_NAME = MSSQL
    HS_FDS_TRACE_LEVEL = ON
    HS_FDS_TRACE_FILE_NAME = c:\hs_fds_mssql.log
    What is missing?

    could be a copy paste issue, but please make sure the tnsnames.ora has at least on space in from of each line after the alias.
    In addition what is the listener status? Please post the output of lsnrctl status <listener name>.
    Need to know also the output of: C:\oracle\product\10.2.0\db_2\bin\hsodbc

  • Required info on SQL Server Performance Issue Analysis and Troubleshoot way

    Dear All,
    I am going to prepare the simple documentation steps on SQL Server Performance Issue Analysis and troubleshoot method. I am struggling to make this documentation since we have different checklist (like network latency,disk latency, memory/processor pressure,SQL
    query tuning etc) to validate once application performance issue reported from the customer.So, I am looking for the experts document or link sharing .
    Your input will help for document preparation in better way.
    Thanks in advance.

    Hi,
    Recommendations and Guidelines on configuring disk partitions for SQL Server
    http://support.microsoft.com/kb/2023571
    Disk and File Layout for SQL Server
    https://blogs.technet.com/b/dataplatforminsider/archive/2012/12/19/disk-and-file-layout-for-sql-server.aspx
    Microsoft SQL Server 2012 Performance Tuning: Implementing Physical Database Structure
    http://www.packtpub.com/article/sql-server-2012-implementing-physical-database-strusture
    Database Mirroring Best Practices and Performance Considerations
    http://technet.microsoft.com/en-us/library/cc917681.aspx
    Hope the information helps.
    Tracy Cai
    TechNet Community Support

  • Virtualised Servers and SQL  performance

    Virtualised Servers and SQL  performance
    A client would like to virtualise their Servers as this will enhance their redundancy.
    This will include their SQL Server where SAP B1 is running on.
    I would like to know whether this will be a good idea concerning SQL performance. (it is said that it does have a negative impact.)
    Specs concerning the company:
    1.     They would like to set up a ZEN layer u201CLinuxu201D and then run their virtual machines from it on a SAN format, and use another server as redundancy.
    2.      Their SBO Companyu2019s total to about 30 gig.
    3.     They have about 100 users 30% log on using Citrix.
    Can anyone tell me if this would be a good solution for them, or is it a complete no no concerning performance?
    Thank you

    Hi,
    We have done exactly what your client wants to do and I would strongly recommend to spend a significant amount of time testing performance. AddOns are loading normally (Sachin, you should check if you don't have 2 network cards on your license server).
    However, I am still not convinced that it is the best solution in terms of performance. If I had to do it again, I would probably have 2 physical SQL servers with full redudency instead.
    Vincent

  • Physical Joins Difference Between 10G and 11G?

    Hi All, I have started using OBIEE 11G. Anybody please let me know is there any difference in applying physical joins in OBIEE 10G and 11G.
    I heard that we need to join Fact and Dim tables in reverse way in 11G.
    Thanks in Advance.

    # Fast-Start Failover for Maximum Performance Mode in a Data Guard Configuration
    # Compression of Redo Traffic (Only for Gap Resolution) Over the Network in a Data Guard Configuration
    # Real-Time Query Capability of Physical Standby Database
    # Fast Role Transitions in a Data Guard Configuration
    # Data Guard Integration, Simplification, and Performance
    # Dynamic Setting of Oracle Data Guard SQL Apply Parameters
    # Enhanced Data Guard Broker Based Management Framework
    # Histogram for Redo Transport Response Time in a Data Guard Configuration
    # Snapshot Standby
    # Strong Authentication for Data Guard Redo Transport
    # Enhanced DDL Handling in Oracle Data Guard SQL Apply
    # Enhanced Oracle RAC Switchover Support for Logical Standby Databases
    # Data Guard Logical Apply Completeness
    # Oracle Scheduler Support in Data Guard SQL Apply
    # Support Transparent Data Encryption (TDE) with Data Guard SQL Apply
    # Support XMLType Data Type (Only CLOB) in Data Guard SQL Apply
    # Virtual Private Database (VPD) Support in Data Guard SQL Apply
    See Also:
    Oracle Data Guard Concepts and Administration for details
    Ref. Oracle® Database New Features Guide
    11g Release 1 (11.1)
    Part Number B28279-01
    ~ Madrid

  • Loosing  performance in 10g against 8i

    I've created database under 10g from dump
    file from 8i database. I've tried some select statements
    on new created database, but it was about 2x slower
    much more accessing the disk than on 8i.
    I increased PGA_AGGREGATE_TARGET parameter
    and get the performance to the level of 8i that way.
    But because of PGA_AGGREGATE_TARGET is value of
    memory available to all server processes attached
    to the instance whereas e.g. SORT_AREA_SIZE set in 8i
    exists for each user process,
    I tried with more sessions and the performance in
    10g was lower again than in 8i. The size of
    PGA_AGGREGATE_TARGET parameter is now much greater
    than the default value 20% of SGA. What should I do,
    continue in growing that parameter, or the reason
    of massive disk usage in new created 10g database
    can be in something else? Thanks for advise a lot,
    P.

    Make sure that you have updated statistics. This is very important. Also, I suggest you don't simply change parameters on the fly. First, understand where the bottleneck is. Have you enabled SQL tracing? Did you examine the trace file using TKProf? Have you looked at the V$session_wait, v$session_event views? Can you provide smoe more details on the queries that are slower and provide their TKProf output. Find the source of the problem first before making any changes.
    The massive disk activity could be related to paging to disk, or performing sort operations on disk.
    -Raj Suchak
    [email protected]

  • Index to Improve SQL Performance

    Please provide a link to information about how to use an Index to enhance SQL performance with Oracle 10g database.

    user8973820 wrote:
    I would like information regarding the use of clustered versus non-clustered indexes.The documentation is your friend :)
    [Overview of Indexed Clusters|http://download.oracle.com/docs/cd/E11882_01/server.112/e10713/tablecls.htm#CFABHBAG]
    [Indexes and Index-Organized Tables|http://download.oracle.com/docs/cd/E11882_01/server.112/e10713/indexiot.htm#BABHJAJF]
    HTH!

Maybe you are looking for

  • Matching FI Line Items and Total Records for FM

    Dear Friends, Currently, we are implementing Public Sector Management using Former Budgeting. Some PR and PO has been created, before the FM budget data transferred from Cost Center Planning using FM9C. Using FMRP_2FMB4002 report, the u2018Available

  • I have Photoshop CS5 and want to add-on plugsin

    I have Photoshop CS5 and want to add-on plug-ins when I click from the photoshop tab it directs me to CC plugs which does work on CS5, what and where are the plugs for CS5?

  • Trouble installing photoshop elements on 2nd computer - says already on 2 computers

    I had elements on 2 laptops but I had to send one of my computers back to HP to have keyboard replaced.  While we were trying to pinpoint the problem we decided to set computer to factory settings, so all my programs were taken off - so I thought.  I

  • Diff dev dates

    HI, In a sales order having 10 different line items.,with different dates of delivery dates.Then how sales order is created & what are the settings we haveto customize & how pricing can be done for that each individual line item. Please give me the s

  • USB drivers for Ellipsis 7 tablet ...

    Does anyone know where I can find the USB drivers for my Ellipsis 7, needed for development work?