Tablesusing in the work practice of Oracle Database 10g-SQL Fundam 1

I want scripts sql builder for the tables (LOCATIONS, DEPARTMENTS, JOB_HISTORY, COUNTRIES, EMPLOYEES, JOBS, REGIONS, JOB_GRADES) use in the work practice of Oracle Database 10g-SQL Fundamentals(I)
I thank you
Youssef BENABDELLAH

These exist in the HR schema.
You may need to log in as SYS user and unlock the HR user account so you can log in with it (and set a password too if appropriate/necessary)

Similar Messages

  • Do i have to pay exam center fee to an authorized oracle exam center(new horizon) in Bangladesh rather than the exam fee of Oracle Database 11g: SQL Fundamentals I ?

    Do i have to pay exam center fee to an authorized oracle exam center(new horizon) in Bangladesh rather than the exam fee of Oracle Database 11g: SQL Fundamentals I ?

    I agree with Matthew that I cannot be sure exactly what you are asking.
    Generally i regard it as less risk to yourself to schedule and pay Pearson Vue directly.
    However if you contact the exam center and get them to schedule for you my understanding is you pay them. Unfortunately there is risk of the exam center overcharging you (99%++ of most most worldwide wont).
    The only reasons for doing this I can think of is (there may be more) :-
    - is if you do not have credit/debit cards that Pearson Vue would accept.
    - The center will accept turn up and schedule and your transport to the exam center might be unreliable and you are worried you might miss the appointment and you are hoping to pay on arrival (some will not accept this).

  • Oracle Database 10g:SQL Fundamentals II 2-12

    In Oracle Database 10g:SQL Fundamentals II Edition 1.1 Dated August 2004. On the page 2-12.
    The last parenthesis is closed but not opened.

    Is this book part of the Oracle product, or a third-party book (including Oracle Press)? If it's third-party, the publisher would appreciate knowing the problem, but you'd have to write to them. The Oracle staff monitoring documentation questions on this forum don't have anything to do with the third-party books.
    Thanks,
    Diana

  • "Oracle Database 10g: SQL Fundamentals I"  with a FRENCH language ?

    S'il vous plait ,je veux telecharger des cours en "Oracle Database 10g: SQL Fundamentals I" en francais est ce qu'il ya des liens disponible...? Merci
    -Please i want to download a Course "Oracle Database 10g: SQL Fundamentals I" with a FRENCH language wat do i do?
    thanks for your

    You could look for it in your local bookstore or at amazon.
    I think oracle provides only documentation in english language for download, but I may be wrong.
    Edited by: hm on 09.11.2011 04:08

  • Oracle Database 10g Express Edition with openSUSE 10.3 ?

    The install guide for Oracle Database 10g Express Edition say it requires Suse SLES-9 .
    Does any know if Express Edition can be installed on openSUSE 10.3 ?
    Thanks in advance.

    Likewise. No issues at all.
    You might want to web-search for Novell's orarun package. Not required if you read the install manual and understand Linux, but it helps prep the environment by eliminating some of the guess work.

  • Oracle Database 10g JDBC Samples on OTN

    Review the OTN's new Oracle Database 10g JDBC Samples that illustrate new features introduced with Oracle10g JDBC Driver. The features illustrated are Connection Cache, Named Parameter Support, IEEE Datatypes, Thin Driver support for PLSQL Index by Tables and Web Rowset. Also watch out for samples on Datalinks, New Encryption Algorithms, Globalization Support, Shortcuts for CLOB manipulation and more to be hosted shortly.
    The samples are available at,
    http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/files/oracle10g/index.html

    I suppose that is nice.
    It would be even nicer if the drivers actually conformed to JDBC so that one could for example reliably use blobs in a J2EE server with CMP.

  • Connecting to Oracle Database 10g Express Edition

    Hello guys,
    Im running Windows XP SP2.
    Ive just installed Oracle SQL Developer and Oracle Database 10g Express Edition.
    Im trying to connect via SQL Developer with:
    hr/hr (yes, ive unlocked this user)
    localhost:1521
    sid:orcl
    but then it says:
    "Status: Failure -Listener refused the connection with the following error:ORC-12505, TNS:listener does not currently know of SID given in connect descript..."
    i guess its smth wrong with my SID.
    Im total newbie to oracle, keep that in mind.
    Please help!

    The default SID for Oracle Database 10g Express Edition is XE.

  • Export import - using TOAD FOR ORACLE  and ORACLE DATABASE 10G EXPRESS or s

    Hi all,
    Could you please kindly help me?
    I am using TOAD FOR ORACLE to export a table to flat file A. The tool just supports to distinguish fields by "spaces".
    And the web page of ORACLE DATABASE 10G EXPRESS to import the data from flat file A to another database. To load data to a table from a text file, the web page bases on "comma" to distinguish fields.
    So could you have any suggestion for me? I need to export data via TOAD FOR ORACLE. And then import it to another database by the home page of ORACLE DATABASE 10G EXPRESS or sqlplus.
    Thank you so much for your help!

    Dont use TOAD for exporting your data. Use PL/SQL. Below is the code given in Asktom.com that does what you want.
    create or replace function  dump_csv( p_query     in varchar2,
                                          p_separator in varchar2 default ',',
                                          p_dir       in varchar2 ,
                                          p_filename  in varchar2 )
    return number
    is
        l_output        utl_file.file_type;
        l_theCursor     integer default dbms_sql.open_cursor;
        l_columnValue   varchar2(2000);
        l_status        integer;
        l_colCnt        number default 0;
        l_separator     varchar2(10) default '';
        l_cnt           number default 0;
    begin
        l_output := utl_file.fopen( p_dir, p_filename, 'w' );
        dbms_sql.parse(  l_theCursor,  p_query, dbms_sql.native );
        for i in 1 .. 255 loop
            begin
                dbms_sql.define_column( l_theCursor, i, l_columnValue, 2000 );
                l_colCnt := i;
            exception
                when others then
                    if ( sqlcode = -1007 ) then exit;
                    else
                        raise;
                    end if;
            end;
        end loop;
        dbms_sql.define_column( l_theCursor, 1, l_columnValue, 2000 );
        l_status := dbms_sql.execute(l_theCursor);
        loop
            exit when ( dbms_sql.fetch_rows(l_theCursor) <= 0 );
            l_separator := '';
            for i in 1 .. l_colCnt loop
                dbms_sql.column_value( l_theCursor, i, l_columnValue );
                utl_file.put( l_output, l_separator || l_columnValue );
                l_separator := p_separator;
            end loop;
            utl_file.new_line( l_output );
            l_cnt := l_cnt+1;
        end loop;
        dbms_sql.close_cursor(l_theCursor);
        utl_file.fclose( l_output );
        return l_cnt;
    end dump_csv;
    /Here is the link to this thread in asktom.
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:95212348059

  • Oracle Database 10g Express Edition & linux Fedora

    Hi guys
    How are you doing?
    I want to ask about my problem which is I can't access to the home page of Oracle Database 10g Express Edition when I press on "Go To Database Home Page" it's open firefox but does not do any thing by the way I try to write the web page http://127.0.0.1:8080/apex on the address bar but firefox give me an error which is "Unable to connect"
    So please when you know the solution post it here step by step "I'm beginner linux user" .
    My distribution is Fedora 14
    ..Thanks a lot
    Saleh

    Was the configure step completed successfully?i.e., did you run
    /etc/init.d/oracle-xe configure after you installed the rpm? This is similar in XE 10g and 11g beta. You can run this again to reenter your configuration parameters, especially concerning HTTP port, and make sure they have the expected values that way.
    Despite that, you could try to (re)start the service, and see if it comes up without errors.
    /etc/init.d/oracle-xe stop
    /etc/init.d/oracle-xe startIf everything doesn't look too bad, you could have a port conflict with another service using port 8080. In that case, you could reconfigure XE to have its HTTP server listening to a different port.
    -Udo

  • 1Z0-051 Oracle Database 11g: SQL Fundamentals I

    Hi ,
    Could any one pls help which book i need to refer to get oca . Thanks
    Pls give me free download able links to download ebooks if possible .Thanks

    The book is not free quite expensive :) .Any one having oca prep book .I have to write 1Z0 -051 exam for 11g cert.
    Can i get either one of the book listed below for oca Exam
    Introduction to oracle9i SQL or Oracle database 10g SQL Fundamental I or Oracle Database 11g Introduction to SQL .
    Thanks !

  • Oracle Critical Patch Update for Oracle Database 10g Release 10.2.0.3.0

    Hi,
    The [ Oracle Critical Patch Update for April 2012 was released on April 17th, 2012|http://www.oracle.com/technetwork/topics/security/cpuapr2012-366314.html] , wherein it was stated that below list versions will get affected.
    Oracle Database 10g Release 2, versions 10.2.0.3, 10.2.0.4, 10.2.0.5
    Currently I am using
    BANNER
    Oracle Database 10g Release 10.2.0.3.0 - 64bit Production
    Can anyone tell me, difference between
    Oracle Database 10g Release 2, versions 10.2.0.3 with Oracle Database 10g Release 10.2.0.3.0
    I am much concerned whether to apply patch for 10.2.0.3.0, wherein the affected version is Oracle Database 10g Release 2, versions 10.2.0.3
    Thanks,
    Sam

    user12983673 wrote:
    Can anyone tell me, difference between
    Oracle Database 10g Release 2, versions 10.2.0.3 with Oracle Database 10g Release 10.2.0.3.0There is no difference -- you use version 10.2.0.3 which is affected by last CPU.

  • OCA Exam 1Z0-042 - focus on Oracle Database 10g R2 from Nov 1st.

    I was planning to take the OCA (Exam 1Z0-042) next week. But I recently saw that starting November 1, the focus of the exam will be on Oracle Database 10g R2.
    I have been preparing with the hlep of the Oracle10g Administraton I book from Sybex. Will the topis differ to a great extent now that the exam will focus only on R2? Has anyone taken this exam after November 1 and found a great difference?
    Thanks,

    Thanks bhuttie. I do plan to take the selftest exams but I was just thrown off with the words " focus on Oracle Database 10g R2" on Oracle's website. Did you take the exam after November 1 as well ?

  • Questions About Chapter 2 in Oracle DB 10g: SQL Fundamentals II

    Hello,
    first of all i'm glad to be a member of your forum. I have joined a beginner Oracle Course: Intro to SQL. I'm facing some problems understanding some concepts in Chapter 2 of Oracle Database 10g: SQL Fundamentals II text book. I got about 15 questions. However, i will only ask two questions at first. Since i'm a newbie, please answer it in a simplistic form. Excuse me if you see grammatical mistakes.
    Dropping a column can take a while if the column has a large number of values. In this case it may be better to set it to be unused and drop it when the number of users on the system are fewer to avoid extended locks.
    Questions:
    "when the number of users on the system are fewer to avoid extended locks."
    1. Can you explain this to me please?! fewer than before? fewer than? What if users kept increasing during the years! then this "fewer" may not happen until the company collapse!
    2. Why do we need to use unused columns? When should we use unused columns?

    Great! .... I got more questions, i just do not want to open a new same thread. Thus, i will just post the questions in here and i hope i will get help from experts...Please bare with me guys...The questions are numbered, unnumbered parts are information that helps you understand my question.
    Note: just answer what you are willing to, one question or whatever you want. I'm not expecting to get all the answers from one member :)
    Thanks for understanding
    Page 2-7:
    Certain columns can never be dropped such as columns that form part of the partitioning
    key for a partitioned table or columns that form part of the primary key of an index- organized table.
    Questions:
    "columns that form part of the partitioning key for a partitioned table"
    *1. Do they mean one table can be split into two different storage? What is the thing that*
    link these both tables to make Oracle Server realize these two tables are actually one  table? Is is tablespace_name?
    "columns that form part of the primary key of an index-organized table."
    *2. Can you clarify the above sentence please*
    *3. If i have set of columns that has large amount of data, i rather set them unused then*
    drop them because the response time is going to be faster! I do not get it, can you
    explain please? What i know is drop drops the column and release the disk space whilst
    unused column make the columns useless and does not release disk space yet until we drop them, so
    drop column does it in one step unlike taking the unused column process. In brief, i would like to know
    why dropping unused columns that has large set of data is faster then dropping the column
    directly...
    Page 2-12
    4. ALTER TABLE emp2 ADD CONSTRAINT emp_dt_fk
    FOREIGN KEY (Department_id)
    REFERENCES departments ON DELETE CASCADE);
    The above query is written in text book. I think it should be written as
    ALTER TABLE emp2 ADD CONSTRAINT emp_dt_fk
    FOREIGN KEY (Department_id)
    REFERENCES departments(dept_id) ON DELETE CASCADE;
    Am i correct?
    *5. Can you tell me what deferring constraints is in one sentence please? Why do we need it? When do we need it in real-life?*
    *7. You can defer checking constraints for validity until the end of the transaction. A*
    constraint is deferred if the system checks that it is satisfied only on commit. If a
    deferred constraint is violated, then commit causes the transaction to roll back.
    I do not understand the above paragraph, please explain. What i know is "end of
    transaction" ends with ; or commit
    Page 2-18
    create table test1 (
    pk NUMBER PRIMARY KEY,
    fk NUMBER,
    col1 NUMBER,
    col2 NUMBER,
    CONSTRAINT fk_constraint FOREIGN KEY (fk) REFERENCES test1,
    CONSTRAINT ck1 CHECK (pk > 0 and col1 > 0),
    CONSTRAINT ck2 CHECK (col2 > 0) );
    -- "CONSTRAINT fk_constraint FOREIGN KEY (fk) REFERENCES test1"
    *8. This is wrong isn't it? It references to test1 but no column specified.*
    An error is returned for the following statements:
    ALTER TABLE test1 DROP (pk); -- pk is a parent key.
    *9. We can not drop it because we did not mention ON DELETE CASCADE. Am i right?*
    ALTER TABLE test1 DROP (col1) -- col1 is referenced by multicolumn constraint ck1.
    *10. I do not get it, can you explain please. col1 is not referenced, i see CHECK constraint is applied*
    but no references made. Secondly, is ck1 considered multicolumn because it check two columns?
    Or multicolumn here represents something else?
    ALTER TABLE emp2
    DROP COLUMN employee_id CASCADE CONSTRAINTS;
    *11. This drop employee_id column and all its child. Correct?*
    ALTER TABLE test1
    DROP (pk, fk, col1) CASCADE CONSTRAINTS;
    *12. This drops three columns and all its child if there are any. Correct?*
    *13. Then what's the difference between ON DELETE CASCADE and CASCADE CONSTRAINTS?*
    For example, What if employee_id in emp2 table definition does not have ON DELETE CASCADE,
    will CASCADE CONSTRAINTS work? Please explain...
    Page 2-22
    When you are expecting a large data load and want to speed the operation. You may want
    to disable the constraints while performing the load and then enable them, in which case
    having a unique index on the primary key will still cause the data to be verified during
    the load. So you can first create a nonunique index on the column designated as PRIMARY
    KEY, and then create the PRIMARY KEY column and specify that it should use the existing
    index.
    Example:
    1. create the table
    create table new_emp
    (employee_id number(6),
    first_name varchar2(10)
    2. create the index
    create index emp_id_idx2 on new_emp(employee_id);
    "You may want to disable the constraints while performing the load and then enable them"
    so i suggest to load all data i want into new_emp.
    3. create the primary key
    alter table new_emp ADD primary key (employee_id) USING index emp_id_idx2;
    What i understand is the following:
    If we want to load large data into the new_emp, its better to create the table without any
    constraints - in our case the constraint is primary key. After that, we create nonunique
    index points to employee_id and then load data into new_emp. Finally, specify employee_id
    as primary key using the nonunique index.
    *14. Is my explanation correct?*
    "in which case having a unique index on the primary key will still cause the data to be
    verified during the load."
    *15. Data to be verified against what? Is it to be verified whether its NULL or NOT NULL? I*
    know primary key does not take NULL and every value must be unique.
    After loading all data we want, what if i did
    "alter table new_emp ADD primary key (employee_id);"
    *16. Will i face any problems or inefficient process?*
    I do not think we need step two, we could do the following:
    1. create the table
    create table new_emp
    (employee_id number(6),
    first_name varchar2(10)
    "You may want to disable the constraints while performing the load and then enable them"
    so i suggest to load all data i want itno new_emp.
    2. create the primary key
    alter table new_emp ADD primary key (employee_id);
    *17. The above steps are as efficient as the three steps i mentioned above. The only difference*
    is we let index be created implicitly. Right? If no, why?
    Page 2-23
    CREATE INDEX upper_dept_name_idx ON dept2(UPPER(department_name));
    The following statement may use the index, but without the WHERE clause the
    Oracle server may perform a full table scan:
    select *
    from employees
    where UPPER(last_name) IS NOT NULL
    ORDER BY UPPER (last_name);
    "but without the WHERE clause the Oracle server may perform a full table scan"
    *18. The above query let oracle server perform full table scan anyway! Right? It has to go*
    through every field and check is it not null or not. I know we are using function-based
    index but there are alot of not null last_name! so oracle server must scan one by one. If
    we only had one not null field, then i would say Oracle server can point to that field
    immediately by the aid of function-based index we created above. Can you clarify please...
    Another related topic statement that i do not get it yet:
    "The oracle server treats indexes with columns marked DESC as function-based indexes."
    *19. The bove statements is so general. What if we have a column ordered by DESC order and we*
    did not create any function-based indexes, will statement be true?!
    Lets go back the above query:
    ORDER BY UPPER (last_name);
    *20. Its not DESC. To me, the above query does not flow with this statement "The oracle server treats*
    *indexes with columns marked DESC as function-based indexes."?*
    Page 2-27
    Regarding FLASHBACK TABLE, you can invoke a flashback table operation on one or more
    tables, even on tables in different schema. You specify the point in time to which you
    want to revert by providing a valid timestamp. By default, database triggers are disabled
    for all tables involved. You can override this default behavior by specifying the ENABLE
    TRIGGERS clause.
    "By default, database triggers are disabled for all tables involved. You can override this
    default behavior by specifying the ENABLE TRIGGERS clause."
    *21. What are database triggers?*
    *22. About External Tables. What are external tables? When is it used in real-life? Why do*
    we want External Tables?
    Page 2-30
    Oracle server provides two major access drivers for external tables. They are
    ORACLE_LOADER access driver and ORACLE_DATAPUMP access driver. ORACLE_DATAPUMP used to
    both import and export data using a platform-independent format.
    "platform-independent format."
    *23. What is the format? Is it .dat?*
    Page 2-35
    CREATE TABLE oldemp ( fname char(25), lname char(25) )
    ORGANIZATION EXTERNAL
    (TYPE ORACLE_LOADER
    DEFAULT DIRECTORY emp_dir
    ACCESS PARAMETERS
    (RECORDS DELIMINATED BT NEWLINE
    NOBADFILE
    NOLOGFILE
    FIELDS TERMINATED BY ',' (fname POSITION (1:20) CHAR, lname POSITION (22:41) CHAR)
    LOCATION ('emp.dat') )
    PARALLEL 5
    REJECT LIMIT 200;
    *24. Can you please explain the below part:*
    ACCESS PARAMETERS
    (RECORDS DELIMINATED BT NEWLINE
    NOBADFILE
    NOLOGFILE
    FIELDS TERMINATED BY ',' (fname POSITION (1:20) CHAR, lname POSITION (22:41) CHAR)
    *25. Can you please explain what is PARALLEL 5? and Why do we need it?*
    Again, any help is appreciated...
    Edited by: user11164565 on Jul 21, 2009 4:41 AM

  • How to find out the date when an oracle database is upgraded

    Hi,
    I would like to know the date when an oracle database is upgraded (for example 10.2.0.4 to 11.2.0.3).
    Can you help me to find out these details.
    Thanks,
    Sarayu

    user13312943 wrote:
    Hi Ed and SB,
    Thanks for your replies. How about this option?
    Let us assume I am interested in checking when my database is upgraded to any 11g version.
    Will this query help?
    select min(first_usage_date)  from  dba_feature_usage_statistics where  version like '11%';
    I understand this may not be a generic solution , but with this idea I may be able to build up a query to get the result.
    Thanks,
    Sarayu
    How is it that you or nobody knows when the DB was upgraded?
    I would have expected a formal testing & upgrade plan.
    Does the organization practice safe software & utilize any source code repository?
    Does everyone suffer from amnesia?
    How could a MAJOR database upgrade slip by everyone who should care about such a detail?

  • Install Oracle Application Server on the same machine with Oracle Database

    Hello!
    I have already have installed on my laptop the oracle Database 10g, and i want to install on the same machine Oracle Application Server; can I do that? After i look on some threads on this forum I understand that all I have to do is to change the default port 1521 of the database to antoher ..let's say 1523...how can I change the port? what files do i have to modify? Oracle Application server can work in good conditions with Oracle XE or I will have the same problem?
    My SO is Windows XP Professional SP II, all updates, 512RAM, 2Ghz-CPU
    Thanks!

    Well, you'll have some problems to run simultaneously Database and AS with 512 Mb...
    Apart from that, you don't need to start two listeners, you can use just one (the highest version) for both DBs.
    If, for any reason, you want to use two, you can change the port within LISTENER.ORA file, normally in ORACLE_HOME\network\admin.

Maybe you are looking for

  • How to replace the hard drive in MacBook Pro 2008

    Is there an instruction manual or bulletin on replacing the hard drive in a MacBook Pro, 2008 late year model?

  • FM for Allocation check of quantity ?

    Hi experts, I have a requirement where in i need to check the allocation check of quantity based on the business partner(Dealer) and available quantity in the stock based on the product(material) . Can i know the FM's which are used for this? Thanks

  • Shipping Condition Type by Volume

    Hi all for business requirement I have defined 2 new condition types in LE-Transportation shipment costspricingpricing control--define condition types: 1 Following is config setting for condition type by Volume wise : Cond. class:   B Prices     Calc

  • Copy Disk Image to New Disk Image

    Hi. I have a disk image that is in sparsebundle form and has a total size of 9.61gb. When I mount the image, it results in a volume with 8.53gb used and 15.97gb capacity. Let's say that I wanted to move this entire volume to a new partition that is o

  • Before we buy, a few questions...

    Right now my organization currently uses Microsoft Producer and Articulate for our eLearning needs. Well, suffice to say, MS Producer just isn't cutting it anymore. We need the ability to do the same things Articulate does when we output for Video On