Employees table in 10g r2

how can i get the employees table in 10g r2?i am not getting it after loged in as system.what to do?

more updated error:
my document do not contain hr_main.sql but hr_code.sql
its giving a error like:
SQL> @?/demo/schema/human_resources/hr_code.sql
Procedure created.
  BEFORE INSERT OR UPDATE OR DELETE ON employees
ERROR at line 2:
ORA-00942: table or view does not exist
ALTER TRIGGER secure_employees DISABLE
ERROR at line 1:
ORA-04080: trigger 'SECURE_EMPLOYEES' does not exist
Warning: Procedure created with compilation errors.
  AFTER UPDATE OF job_id, department_id ON employees
ERROR at line 2:
ORA-00942: table or view does not exist
Commit complete.

Similar Messages

  • How to use temporary interface in another interface as derived table in 10g

    Hi ,
    Can somebody please tell me how to use temporary interface in another interface as derived table in 10g.
    I have an option in odi 11g to this task.But i am working on odi 10g for my project.So that please help me to do this task.
    I can able to create temporary interface in 10g ,but i dont know how to use that temporary interface in another inerface as derived table.
    Thanks in Advance
    Thanks,
    Srikanth A

    A temp interface CANNOT be used as a derived table in ODI 10g.
    All you can do is to drag and drop the temp interface as the source in the mapping.
    PS. Please remember to assign correct/helpful points to the people who help you in the forum.

  • How to get second maximum salary from employee table(sql query)

    how to get second maximum salary from employee table(sql query)

    dude there is no matter of structure .........that user already said its from employee table ...............its basic table in sql and there is no need to specify the table structure
    .........i think u got my point I think you are the one who didn't understand Sarma's point.
    Give a man a fish and you feed him once. Teach a man how to fish and you feed him a life long.
    >
    and the query is
    select max(sal) from emp where sal<(select max(sal)
    from emp);
    this will give the 2nd max salary from the emp tableBtw: You solution is bad, because it needs to scan and sort the table emp twice. And a better solution has been given already.
    Message was edited by:
    Sven W. - reordered statements

  • PLEASE SEND ME SQL query to list ALL CONSTRAINTS ON EMPLOYEES TABLE FROM OU

    PLEASE SEND ME SQL query to list ALL CONSTRAINTS ON EMPLOYEES TABLE FROM OUTSIDE PP SCHEMA INCLUDING SCHEMA NAME AND CONSTraint NAME
    Username : PP
    Table : Employees

    I think you are looking for below query :
    SQL> SHOW USER;
    USER is "SCOTT"
    SQL> select owner,constraint_name,constraint_type,table_name,r_owner,r_constraint_name
      2    from all_constraints
      3    where constraint_type='R'
      4   and r_constraint_name in (select constraint_name from all_constraints
      5    where constraint_type in ('P','U') and table_name='EMP');
    OWNER                          CONSTRAINT_NAME                C TABLE_NAME                     R_OWNER                        R_CONSTRAINT_NAME
    TEST1                          ERL_EMP_FK_1                   R EMPLOYEE                       SCOTT                          PK_EMP
    1 row selected.Means, TEST1 user is having a constraint ERL_EMP_FK_1 on his table EMPLOYEE. Which is using PK_EMP (primary key of SCOTT user's 'EMP' [in the query])
    Regards
    Girish Sharma

  • Sample employee table

    I have installed oracle database10g on XP, right now I am trying to look for the sample employee table, I could find it. Where can I download sample
    table in my database? Please help.

    Log in first as scott/tiger, then type
    SQL> descr employee
    Name Null? Type
    EMPNO NUMBER(4)
    ENAME VARCHAR2(10)
    JOB VARCHAR2(9)
    MGR NUMBER(4)
    HIREDATE DATE
    SAL NUMBER(7,2)
    COMM NUMBER(7,2)
    DEPTNO NUMBER(2)

  • How to find 'n' th maximum salary in employees table

    how to find 'n' th maximum salary in employees table using stored procedure............

    Depends on your unmentioned database version.
    In general you're asking for a Top-N query.
    See this article:
    http://www.oracle.com/technetwork/issue-archive/2007/07-jan/o17asktom-093877.html
    In 11g you have http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/functions114.htm#CJAFEJBE
    an analytic function
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/functions004.htm#SQLRF06174

  • Where is the employees table in hr 10g xe database?

    when i connect to oracle 10g express edition (xe) through an application called crystal reports, i see an hr with tables that include employees, jobs, countries etc.
    however, when i use sqlplus from my c prompt and execute the following query:
    select * from tab;
    the above tables do not show up whatsoever.
    how can i get to hr? where is it hiding?
    thank you.

    Have you executed the script that I gave you?
    You could query in hr schema using crystal reports?
    Check the owner name of the table usinf all_objects.
    SQL> desc all_objects
    Name                                      Null?    Type
    OWNER                                     NOT NULL VARCHAR2(30)
    OBJECT_NAME                               NOT NULL VARCHAR2(30)
    SUBOBJECT_NAME                                     VARCHAR2(30)
    OBJECT_ID                                 NOT NULL NUMBER
    DATA_OBJECT_ID                                     NUMBER
    OBJECT_TYPE                                        VARCHAR2(19)
    CREATED                                   NOT NULL DATE
    LAST_DDL_TIME                             NOT NULL DATE
    TIMESTAMP                                          VARCHAR2(19)
    STATUS                                             VARCHAR2(7)
    TEMPORARY                                          VARCHAR2(1)
    GENERATED                                          VARCHAR2(1)
    SECONDARY                                          VARCHAR2(1)
    SQL> Cheers
    Sarma.

  • Dual table in 10g

    Hi!
    1 am using forms 6.
    my forms were running good but after i take my application to 10g, some forms have not been compiling.
    in every form where dual table has been referenced error has come, remaining forms run well
    like
    select sysdate
    into l_Date
    from dual
    if in form i use sys.dual then it works
    in sql plus i can select using select * from dual
    is this a bug or any other problem?
    thanx

    error has comeGive us a clue. What error? Please post error number and message or at least describe the behaviour.
    Also, this is primarily a database forum. As your queries run in SQL*Plus it strikes me this is most likely to be a problem with Forms, and so you may be better off trying the OTN > Products > Developer Suite > Forms forum. Unlike this forum, actual Oracle employees answer questions there, so it's definitely a better bet.
    Are you using Forms 6 or 6i? Forms 6 is de-supported and so may not play nicely with 10g. 6i is supported and either is or will be certified to run against 10g.
    Cheers, APC

  • Installing Sample Tables in 10g(Vista)

    Hi guys,
    I am a newborn baby in this world of Oracle. I am currently doing my DBA OCP course.
    I have installed 10g Enterprise edition in vista and in the advance installation, selected sample schemas too.
    Now I have problems finding the tables like HR and such. I tried running hr_code.sql and got these errors. I tried it by logging in as SYSTEM in iSQL*PLUS
    "ERROR at line 2:
    ORA-00942: table or view does not exist
    ALTER TRIGGER secure_employees DISABLE
    ERROR at line 1:
    ORA-04080: trigger 'SECURE_EMPLOYEES' does not exist
    Warning: Procedure created with compilation errors.
    AFTER UPDATE OF job_id, department_id ON employees
    I found out there is a masted script called mksample.sql, But I can't find it and should i run this instead and than run the hr script?
    Kindly help me :)

    You are confusing a user (that is, a schema) and objects within that schema.
    HR, OE, IX, SH and so on are users. You log on as those users so that you can make use of the objects created within those schemas.
    You wouldn't, I hope, log on as 'SHAJ' and then expect to do select from shaj*, would you? That would be like buying an airplane ticket and expecting the ticket to fly you somewhere! The ticket is simply the tool that gets you onto the airplane, not the thing that does the flying itself. You want the tables a user has created, not the user itself.
    What you can do instead is to do select table_name from user_tables. That will show you all the tables that exist within the schema of the user you've logged on as. You'll find tables with names such as SALES, SALES_HISTORY, EMPLOYEES and so on. Then you can select * from employees and at that point you are querying from the tables within a schema.

  • ORA-00942 when creating external table under 10g with AQ

    I have an application that runs with AQ. The front-end queues up batch-type
    tasks in a queue. When one particular kind of message is dequeued, it
    initiates a data load. That load requires the creation of an external
    table.
    The schema in question is owned by user BL (bulkload). The queue
    is owned by BLB (bulkload batch), primarily to simplify some of the
    rules needed by the resource manager in order to limit the total CPU
    a batch process can consume. The BLB user has full access to the
    BL schema, along with the following rights:
    CREATE TYPE
    CREATE TABLE
    CREATE SEQUENCE
    CREATE PROCEDURE
    CREATE VIEW
    CREATE SYNONYM
    CREATE SEQUENCE
    ALTER SESSION
    CREATE SESSION
    QUERY REWRITE
    CREATE ANY CONTEXT
    EXECUTE_CATALOG_ROLE
    CREATE MATERIALIZED VIEW
    CREATE ANY DIRECTORY
    DROP ANY DIRECTORY
    The table creation works fine under 9.2.0.8 (our current required
    version). However the application generates an ORA-00942 table or view does
    not exist when run under 10g (10.2.0.1 and 10.2.0.3).
    The following statement is the problem:
    CREATE TABLE bulkload33 (
              field1 VARCHAR2(2000),field2 VARCHAR2(2000),field3 VARCHAR2(2000))
              ORGANIZATION EXTERNAL (
              TYPE oracle_loader DEFAULT DIRECTORY EXT_100
              ACCESS PARAMETERS ( RECORDS DELIMITED BY "\r\n"
              CHARACTERSET 'WE8ISO8859P1'
              BADFILE EXT_100:'bulkload_bad.csv'
              LOGFILE EXT_100:'bulkload_log.csv'
              FIELDS TERMINATED BY ','
              OPTIONALLY ENCLOSED BY '"' MISSING FIELD VALUES ARE NULL REJECT ROWS WITH ALL NULL FIELDS (
              field1 CHAR(2000),field2 CHAR(2000),field3 CHAR(2000),field4 CHAR(2000)))
              LOCATION ('bulkload.csv')
              ) REJECT LIMIT UNLIMITED PARALLEL;
    To clarify, the preceding statement, when handled by the process
    for a queue message, failes with an ORA-00942.
    Note that I can issue the command directly, as BLB or SYS, against
    the BL schema with no problems. Further, as user BLB or SYS, I can do
    the following:
    CREATE OR REPLACE PROCEDURE dotest
    IS
         l_sql varchar2(2000);
    BEGIN
         l_sql := 'CREATE TABLE bulkload33 (
              field1 VARCHAR2(2000),field2 VARCHAR2(2000),field3 VARCHAR2(2000))
              ORGANIZATION EXTERNAL (
              TYPE oracle_loader DEFAULT DIRECTORY EXT_100
              ACCESS PARAMETERS ( RECORDS DELIMITED BY "\r\n"
              CHARACTERSET ''WE8ISO8859P1''
              BADFILE EXT_100:''bulkload_bad.csv''
              LOGFILE EXT_100:''bulkload_log.csv''
              FIELDS TERMINATED BY '',''
              OPTIONALLY ENCLOSED BY ''"'' MISSING FIELD VALUES ARE NULL REJECT ROWS WITH ALL NULL FIELDS (
              field1 CHAR(2000),field2 CHAR(2000),field3 CHAR(2000),field4 CHAR(2000)))
              LOCATION (''bulkload.csv'')
              ) REJECT LIMIT UNLIMITED PARALLEL';
         EXECUTE IMMEDIATE l_sql;
    END;
    show errors
    EXEC dotest
    Does anyone have any ideas of why this doesn't work under 10g? Metalink
    has yielded no clues so far.
    Thanks.

    Define "has full access to the BL schema" given that it is impossible to grant access rights, in Oracle, by schema. What was done and how was it done?
    My guess is that the privs were granted in a role, rather than explicitly, as is required for PL/SQL.

  • Employee table

    Hi SDNers,
    I have a doubt like when we create any customer or vendor,those corresponding details will update at CDHDR table.
    In the same way, when we create or change the employee details, which table will records those.
    and wat all the tcode for creating or changing the employee numbers other than pa40 and pa41.
    Thansk,
    Venkat

    Hi,
    In HR the changes are stored in the infotypes so in PA40, PA41 each screen correspond to a Infotype and when you save the changes correcsponding Infotypes are updated.
    PA40, PA41 are the only 2 for creating Employee Number.
    Basically you need to create the positions details in Organization Structure using PPOME and and then hire a person for the position using PA40 and Pernr number is generated based on the number range you defined for the personnel numbers.
    After the User is created you can modify any data using PA30 and to display the user details you can use PA20.
    Example Infotypes:
    0000 - Actions
    0001 - Organizational Assignments
    0002 - Personal Data
    0006 - Address
    0008 - Basic Pay
    0105 - Communication Data
    0041 - Date Specifications
    2001 - Absences
    2002 - Attendances
    2006 - Absence Quotas
    Hope this helps.
    Cheers-
    Pramod

  • Customize Font in Pivot Table OBIEE 10g

    Hi All,
    I have the Pivot table like this:
    Item                Value
    A                     1
    B                     2
    C                     3
    Total  A-C         6
    D                     1
    E                     2
    F                     3
    Total D-F          6
    How to bold the Total A-C and its value?My version is OBIEE 10g
    Thank you before
    Regards
    JOE

    Hi Joe
    In 10g
    1st change the View from Compound Layout to "Tabular View"
    2nd.. as you told the A-C total is needed, in the tabular view at Answers......navigate to that field/column  & find Sigma (Summation Symbol) ..
    3rd, by clicking on it..you will get the Totals in Bold Letters
    Please mark Correct if this helps you
    Regards

  • Deploying Factless Fact Tables in 10G

    Hello - We are trying to deploy the same factless fact tables we used for OWB 9i to 10G and we are receiving validation errors saying that every cube must have a measure. We do not want to create a null column just to get around something that worked fine in a previous version of the tool, and we have quite a few factless fact tables in our model.
    Are there any thoughts on this?
    Thanks,
    Kristi

    Hi,
    I already face that kind of fact table, but in the same time, i needed to count the number of intersection between dimensions or sum, so i used a one measure, that always takes 1 as value, that did the trick.
    Regards

  • How to display S.no adjacent to employees table help plsss

    In a form in tabular format Emp details are displayed
    Adjacent to the table i want to put a Sno display item showing
    1 for 1st employee
    2 for 2nd employee ......
    I thought i could like create a global variable in a package specification in a program unit and assign it to 1
    Package pack1 is
    v_num number :=1;
    end;
    and then write a PRE_ITEM trigger for a Sno item in the object navigator
    In the trigger
    how to display the value inside v_cnt;
    I tried creating a sequence
    create sequence v_seq;
    but the sequence really wont help me as
    it would keep on incrementing
    so how can i display the value inside the v_cnt in a item
    Is it possible not to use a trigger and still achieve this

    BEDE,
    what will the :system.cursor_record show in a tabular block of 10 rows and what the rownum will sho instead (even if you change the where clause or the ordre by) :
    - the :system.cursor_record will show the number of the fetch.
    1-10 rows : 1
    11-20 rows : 2 etc ...
    - the rownum order by field :
    rownum - field
    1- A
    2- B
    3 - C etc..
    - the rownum order by field desc :
    rownum - field
    1 -C
    2 - B
    3 - A etc..
    - the rownum where clause filed != 'B':
    rownum - field
    1 - A
    2 - C
    3 - D etc..
    So Sqlstar_student, just choose the method regarding your needs.
    Regards
    JeanYves

  • Problems with viewing employees table in database

    Can any help me to be able to view all the tables in database: Employees, countries and so on?
    I think it is due inability to login as hr user.
    Thanks,
    Peter

    Peter,
    You will need to give us more information:
    Oracle Version?
    Platform?
    Interface you are trying to log in from? (SQL*Plus or iSQL*Plus?)
    Error messages?
    Steps you took to produce the error?
    The HR user will have been set up with a default password, if it is set up at all. Did you install the database? Did you unlock the HR user?
    This chapter might help you figure out if the HR schema is installed:
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96539/installa.htm
    Alison

Maybe you are looking for

  • DVI on my MacBook Pro quit working.

    I got a DVI output adapter to display my MacBook on my TV. Last night everything worked fine. Today, nothing will display through to my TV. I haven't updated anything. I've restarted twice. I can't figure why last night I was able to watch several mo

  • Can't access songs in iTunes

    This has happened before and I don't remember the fix, but my wife has not been able to access any of her purchased music. When she double clicks a song, she's prompted for the password to an account that hasn't been used in many years. This may have

  • Not comming out of loop

    Gurus Below is the code which I have written, the problem is, when record is not found, its showing alert, but system getting hanged .. Can you suggest a solution Declare      CURSOR C_SUBCLASS IS SELECT DEPT, CLASS, SUBCLASS                 FROM SUB

  • Can Time Machine backup Windows 2003 servers?

    Hi, Before anybody casts any stones, I'm Pro mac. I'm currently working at a company that only has Windows 2003 servers. We need a new DR & Backup system for our Windows servers. Can time machine backup and restore to Microsoft Windows 2003 servers?

  • Right click functions no longer work since update

    I'm active with Pinterest, and when I would see a photo I wanted to add to a board, I was able to right-click it. There was a choice "Add This", which provided a range of sites -- including Pinterest. The Add This right-click function is gone since t