Sample Schemas and Their Setup

Hi,
When I installed Oracle on my PC, the person guiding
me along said I should set up the usernames as shown
in the following table [sorry about the compression]:
Usernames               LockAccount          Password
sys                    No               xxxxxxx
system                    No               xxxxxxx
dbsnmp                    No               xxxxxxx
aurora$jis$utility$          No               xxxxxxx
aurora$orb$authenticated     No               xxxxxxx
scott                    No               tiger
ose$http$admin               No               xxxxxxx
outln                    YES
wksys                    YES     
qs_cbadm               YES     
qs_os                    YES     
qs_es                    YES     
sh                    YES     
pm                    YES     
oe                    YES     
hr                    YES     
qs_ws                    YES     
qs                    YES     
qs_adm                    YES     
qs_cs                    YES     
qs_cb                    YES     
rman                    YES     
olapdba                    YES     
ctxsys                    YES     
olapsvr                    YES     
olapsys                    YES     
mdsys                    YES     
ordplugins               YES     
ordsys                    YES     
outln                    YES     
outln                    YES     
outln                    YES     
==========END=OF=DISPLAY=========================
Whenever I try to login as HR and use the HR schema
I have the following problem:
Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production
With the Partitioning option
JServer Release 9.0.1.1.1 - Production
SQL> connect hr/hr
ERROR:
ORA-01017: invalid username/password; logon denied
Warning: You are no longer connected to ORACLE.
=========END=OF=DISPLAY===========================
Could anyone suggest a solution to this problem ?
I would like to access all the demos, but I don't
see the Sample Schema Guide on tahiti.oracle.com,
as referenced in another question.
Thank you,
Robert Freeman

Justin,
Thanks for your suggestion I found this advice
in another thread:
If you have a newly installed the database you
should unlock the HR schema and reset its password
since the password will be expired.
Login as SYS user
alter user hr account unlock;
alter user hr identified by hr;
Now you should be able to login to hr schema
When I executed the first alter I got the
following message:
SQL> connect sys/password as sysdba
Connected.
SQL> alter user hr account unlock;
alter user hr account unlock
ERROR at line 1:
ORA-01918: user 'HR' does not exist
So maybe I have two issues to resolve ?
Re-create the HR user and Re-Create the
HR's schema ?

Similar Messages

  • All Oracle Sample Schemas and all Oracle Built-in Packages in XE?

    Hi,
    I am trying to install Oracle 10g on my home system to improve my knowledge of PL/SQL. Because I'm doing it at home, I have to solve DBA issues I'm somewhat clueless about.
    I would like to install Oracle 10g Express Edition and include the built-in packages (DBMS_OUTPUT, UTL_FILE, DBMS_UTILITY, DBMS_JOB, DBMS_JAVA, DBMS_RANDOM, etc.) as well as the Oracle sample schemas (HR, OE, PM, SH, and IX). None of these, except HR, is included in the express edition.
    If necessary, I'd like to be able to install these things after installing the express edition. How can I do this?
    Thanks,
    Mike

    Hi Mike,
    checking the documentation is always helpful:
    http://www.oracle.com/pls/xe102/homepage
    http://download-uk.oracle.com/docs/cd/B25329_01/doc/appdev.102/b25108/xedev_programs.htm#i2432
    You can always do a quick search on the documentation homepage, e.g. for utl_file:
    http://www.oracle.com/pls/xe102/search?remark=advanced_search&word=utl_file&format=ranked&book=&preference=
    There shouldn't be a need to install any packages. They should come preinstalled already.
    If not, you can find them here:
    C:\oraclexe\app\oracle\product\10.2.0\server\RDBMS\ADMIN
    Just be very careful before trying to install something into the data dictionary. If you are not experienced, you might mess up your database.
    For example, utl_file is installed but invisible to most users, e.g. HR.
    Look at this example:
    SQL> conn hr/oracle1
    Connect durchgef³hrt.
    SQL> desc utl_file;
    ERROR:
    ORA-04043: Objekt "SYS"."UTL_FILE" ist nicht vorhanden
    SQL> conn sys@XE as sysdba
    Kennwort eingeben:
    Connect durchgef³hrt.
    SQL> desc utl_file;
    PROCEDURE FCLOSE
    Argument Name                  Typ                     In/Out Defaultwert?
    FILE                           RECORD                  IN/OUT
       ID                           BINARY_INTEGER          IN/OUT
       DATATYPE                     BINARY_INTEGER          IN/OUT
       BYTE_MODE                    BOOLEAN                 IN/OUT
    PROCEDURE FCLOSE_ALL
    SQL> grant execute  on utl_file to HR;
    Benutzerzugriff (Grant) wurde erteilt.
    SQL> conn hr/oracle1
    Connect durchgef³hrt.
    SQL> desc utl_file;
    PROCEDURE FCLOSE
    Argument Name                  Typ                     In/Out Defaultwert?
    FILE                           RECORD                  IN/OUT
       ID                           BINARY_INTEGER          IN/OUT
       DATATYPE                     BINARY_INTEGER          IN/OUT
       BYTE_MODE                    BOOLEAN                 IN/OUT
    PROCEDURE FCLOSE_ALL
    PROCEDURE FCOPY
    ...So, after granting execute privileges on utl_file to HR, the user HR can now access utl_file. No need to install it.
    The default packages are installed in the schema SYS.
    Regards,
    ~Dietmar.

  • Sampling schemas and Procedures

    hello guys,
    I am trying to understand the following things with an simple example.
    what option to use for quantitative (variables ) in sampling schema..I tried using variable by s-method but it is asking for a K-factor which I have no idea about it.
    And in sampling schema...if i use fixed sample it ask for a valuation mode and control chart type..
    Pls explain the valuation mode and control chart with combination of sampling type..no idea wht to use on what situtation.
    As I need this info asap..pls help
    Regards,
    Akash.

    Dear Prakash
    please go thru the following link. Then let me know if you have doubts
    1) Link: [Valuation mode|Valuation mode of the sampling procedure]
    2) Link: [Sampling|Sampling Procedure]
    3)Link: [Sampling2|Sampling type scenario - sampling procedure]
    4) Link: [K factor|K-Factor in Sampling Proecdure]
    5) Link: [sampling detials|help.sap.com/printdocu/core/print46c/en/data/pdf/QMPTBD/QMPTBD.pdf]
    Regards
    Gajesh

  • Sample schema and data downloads?

    I have installed oracle and I wish to test it with a substantial schema installed, with enough data to simulate a production level database.
    I was wondering if online there were any large sample schemas, with large amounts of data (in sql loader .dat files?) that could be downloaded. My search so far has not been successful.
    If possible I would like to get a schema with very large number of tables and many thousands of lines of data.

    First thing: you'd be better generating a dataset to match your particular requirements.
    However, If you're thinking about a data warehouse, you could do worse than borrow the Mondrian 'Foodmart' test dataset. That contains 328k rows of data (so pretty small, but not trivial). See http://mondrian.sourceforge.net/.
    Alternatively, lots of people start with datasets based on Northwind - the well known Access/SQL Server dataset. There's an article here http://www.oracle.com/technology/pub/articles/gagne_access.html on how to extract the necessary DDL using the mdbtools utilities.
    HTH
    Regards Nigel

  • BAPI for Sampling scheme and Quality Info Record in QM Module.

    Hi techies,
    I have a two object(Sampling Scheme,Quality info record)  for which i need a BAPI for uploading the data.
    Please tell me if any one knows.
    Richard.

    Vineeth,
    Usually, I wouldn't think the follow-up action would be an issue with system performance.  You say 7000 items, but do you mean 7000 UD's?  I.e. an inspection lot of 1000 units isn't unusual and that would be 7 inspection lots.  You've also now said that the program needs to look across plants for UD rejections and for notifications.  That is another level of complexity.
    While the UD follow-up action should still be able to handle that, I can't say it won't affect performance.  I was going to suggest you have it only run on certain UD codes, but since you now need to reveiw this across plants that might not work.
    What happens if my vendor/material is in a skip stage at plant A and Plant B opens a notification agains the vendor?  Since there is no UD, the follow-up action wouldn't run and change the DMR at plant A.
    If you need to look at a bunch of stuff, instead of the follow-up action, you may need to run a program in batch and have it run once an hour or every 10 minutes.  Depending on how you write it, it could be pretty efficient. 
    Craig

  • Download 9i sample schemas

    Hello,
    I have 11g installed on my machine and I want to add the HR.OE...etc sample schemas and data from Oracle 9i.
    Does anyone know where I can download these schemas as well as the data?
    Thanks,
    Steve K.

    http://www.oracle.com/technology/obe/obe1013jdev/common/obeconnection.htm#t1s1
    Greetings...
    Sim

  • Help - Sampling Scheme

    Hello SAP Gurus,
    I have defined a Dynamic Modification Rule a Sampling Scheme and a Sampling Procedure to use in inspection plan.
    Everything is working fine but the Sample Size is always 0. In Results Recording (QA32) the inspection lot quantity and number os the materials to inspect is correct... but the sample size is 0! The sample size shoud be equal to the number of the materials to inspect, right?
    Heres is a picture of the sampling scheme:
    [http://picasaweb.google.pt/lh/photo/5sVXnGLRTCHgHU4Koionzw?feat=directlink]
    Here is the link for the inspection lot:
    [http://picasaweb.google.pt/lh/photo/8veDwWC-lwE20o0w-qeTEQ?feat=directlink]
    The inspection lot is for 10 UN so, acording to the sampling scheme, the sample is 3 UN.... but the sample field is 0.
    In the results recording is OK, here is an image:
    [http://picasaweb.google.pt/lh/photo/zH-_DjwFlDbw7iXJZXwXEA?feat=directlink]
    Thanks in advance,
    Adelmo Silva
    Edited by: Adelmo Silva on Oct 19, 2009 5:45 PM

    Hello SujitSND,
    The characteristic is mandatory and I have maintained the relation between Sampling Procedure and Dynamic Mod. Rule and still not working...
    I dont undestand what you mean by "Also have you used seviarity & AQL level same in DMR & SP"
    Thanks,

  • Where to download scripts for HR sample schema

    Hi,
    i installed Oracle11g on linux without sample schemas.
    now i want to manually install the sample schemas.
    and when i checked the folders under "../human_resources"
    i am not able to view the scripts to install HR schema.
    i tried a lot of google search but i am not able to find and download the scripts needed to create HR objects.
    Can someone guide me where i can find scripts that i can download and install all the sample schema objects
    Thanks,
    Philip.

    It's part of the Companion install

  • How to export a user and their schema from one 10g database to another?

    Hi,
    I would like to export a user and their entire schema from one 10g database to another one. How do I do this?
    thx
    adam

    If you want to export a user and the schema owned to the user, and import to the same user in a different database, or a different user in the same database, you can use the exp and imp commands as described in the Utilities manual.
    These commands are very versatile and have a lot of options - well worth learning properly. To give you a simplistic shortcut, see below - I create a user 'test_move', create some objects in the schema, export, create a new user in the database 'new_move' and import.
    oracle@fuzzy:~> sqlplus system/?????
    SQL*Plus: Release 10.2.0.1.0 - Production on Sat Mar 11 21:46:54 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> create user test_move identified by test_move;
    User created.
    SQL> grant create session, resource to test_move;
    Grant succeeded.
    SQL> connect test_move/test_move
    Connected.
    SQL> create table test (x number);
    Table created.
    SQL> insert into test values (1);
    1 row created.
    SQL> exit
    Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    oracle@fuzzy:~> exp system/????? file=exp.dmp owner=test_move
    Export: Release 10.2.0.1.0 - Production on Sat Mar 11 21:48:34 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    Export done in AL32UTF8 character set and AL16UTF16 NCHAR character set
    About to export specified users ...
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user TEST_MOVE
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions for user TEST_MOVE
    About to export TEST_MOVE's objects ...
    . exporting database links
    . exporting sequence numbers
    . exporting cluster definitions
    . about to export TEST_MOVE's tables via Conventional Path ...
    . . exporting table                           TEST          1 rows exported
    . exporting synonyms
    . exporting views
    . exporting stored procedures
    . exporting operators
    . exporting referential integrity constraints
    . exporting triggers
    . exporting indextypes
    . exporting bitmap, functional and extensible indexes
    . exporting posttables actions
    . exporting materialized views
    . exporting snapshot logs
    . exporting job queues
    . exporting refresh groups and children
    . exporting dimensions
    . exporting post-schema procedural objects and actions
    . exporting statistics
    Export terminated successfully without warnings.
    oracle@fuzzy:~> sqlplus system/?????
    SQL*Plus: Release 10.2.0.1.0 - Production on Sat Mar 11 21:49:23 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> create user new_move identified by new_move;
    User created.
    SQL> grant create session, resource to new_move;
    Grant succeeded.
    SQL> exit
    Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    oracle@fuzzy:~> imp system/????? file=exp.dmp fromuser=test_move touser=new_move
    Import: Release 10.2.0.1.0 - Production on Sat Mar 11 21:50:12 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    Export file created by EXPORT:V10.02.01 via conventional path
    import done in AL32UTF8 character set and AL16UTF16 NCHAR character set
    . importing TEST_MOVE's objects into NEW_MOVE
    . . importing table                         "TEST"          1 rows imported
    Import terminated successfully without warnings.
    oracle@fuzzy:~>                                                       If moving between databases, remember to set the SID properly before the import. If keeping the same userid, skip the from/to stuff in the import.
    There are many variations on the theme ...
    You can simplify this. You can select tables individually. You can use a parameter file. You can transport all the constraints and data. You can skip the data and only move the definitions. You can get some help (imp/exp help=yes).
    And, if it's all 10g, there is a new and improved facility called expdp/impdp (dp = data pump) which has a lot more capability as well, including direct transfer (no intermediate file) together with suspend/restart. Also documented in the Utilities manual.

  • Thru OEM get list of queries and their schemas that accessed my objects

    Hi,
    I have a list of objects on my schema and i need to track the list of sql queries by different users that accessed by object during this time period.
    i haven't enabled any auditing yet.
    is there any way i can get that list of queries and their schemas that accessed those particular objects during a particular time period through OEM.
    Can someone guide me please.
    Thanks in advance.
    Philip.

    create a name property in your class and assign a name property to your instances (either in the contructor) and/or using getters/setters.  (you'll need a getter anyway.)

  • Would any iphone 5 come with out a setup on it ? i got a new iphone and their wasnt a setup and there was a message from an unknown number.

    Would any iphone 5 come with out a setup on it ? i got a new iphone and their wasnt a setup and there was a message from an unknown number.

    frm a local dealer.. but he said me that the phone is a brandnew one. he said me that european phone's come without a setup.

  • Sample Oracle database Schema and sample training SQL

    Hi,
    I am running a windows 7, 64 bit machine. I am looking for sample oracle database schema with sample SQL queries and exercises(tutorial). Can you please point me in the right direction where I can download both.
    Thanks for your time and help.

    sb92075 wrote:
    ssk1974 wrote:
    Hi,
    I am running a windows 7, 64 bit machine. I am looking for sample oracle database schema with sample SQL queries and exercises(tutorial). Can you please point me in the right direction where I can download both.
    Thanks for your time and help.
    http://www.lmgtfy.com/?q=oracle+sample+schema
    LOL!!!!

  • Determine Physical Samples using a Sample Scheme

    Dear QM friends,
    currently I am struggling with a QM issue that maybe you can help me with.
    Within the one of our factory sites we have rolled-out QM for quality inspection at GR, for this we use Physical Samples (just like we do in other factory sites). Only thing is that in this specific site they want to draw their physical samples based on a sample scheme. The other site use formulas to draw samples.
    So we have setup a sample-drawing procedure to determine the samples based on a specific sample scheme that has been setup for this factory.
    What I expected SAP to do when doing a goods receipt of for example 3 items is that SAP will draw 3 Physical Samples with a quantity of 1. However strangely SAP creates 1 Physical Sample with a size of 3 items.
    With kind regards,
    Kenny Galle

    Thanks for both of your responses
    In relation to you questions I checked the following:
    1. I am using Primary Samples alone and they are to be taken from a Sample Scheme linked in the Sample-Drawing Procedure;
    2. Increasing the sampel size does not work, I am still left with one physical sample and multiple items. Where I want a physical sample PER item.
    When we use a formula in the Sample-Drawing procedure (e.g., "P1" or "TRUNC(P1/10)+1") it works fine and we get a Physical Sample per serialize item.
    Any guidance will be highly appreciated!

  • Queries on samples schemas (HR, OE, SH ...)

    Hi,
    I want to measure performance of database using Oracle sample schema. But I don't have many time to create queries which take some time on CPU and so on. Is there any script (or webpage) which contain sample queries on this schemas? I will be appreciative if someone help me with it.
    Best.

    The sample schemas are intended to allow practicing and exercising specific features of the database. The purpose of each schema is described in the 'Oracle® Database Sample Schemas' manual for your database version at http://tahiti.oracle.com. (See 'Master Book list' or 'All books'.)
    Many of the examples of `how to use a feature`using these schemas will be found in the documentation (http://tahiti.oracle.com) related to the feature. For example, base queries will be found in the SQL Language Reference manual. Spatial features will be found in the Spatial Users Referrence manual. And so on.
    Other than that, many of the samples found at htp://otn.oracle.com > Sample Code assume that the samples are installed.
    Oracle university database language courses also assume the schemas are loaded. However, their sample code is not available for obvious reasons.
    In all cases the samples are not performance oriented examples, simply because Oracle's cost-based optimizer can not provide consistent performance if size or statistics change.

  • Compare 2 schemas and get the difference with .sql file.

    Hi,
    I am using ORACLE DATABASE 11g R2 and ORACLE Linux 5.
    I want to perform a very lengthy process and want to make it automated.
    I am having a software named as SVN. In which all the developers keep their updated scripts.
    We have 2 schema's one is used for developement and when all the development seems good we implement the scripts on the final schema which is used by testing people also.
    Now every day we need to check the modifications in the development schema, that we do by observing the updated scripts in the SVN software. Now we get the scripts which are modified.
    We will fire this scripts to a sample schema then we will compare the objects in this schema and the same objects in our final schema. If the objects in sample schema is different than the final schema it should give me the
    script to create the same type object in the final schema.
    Below is a proper example to explain :-
    Developement Schema :- 'DEV'
    SVN Script Schema :- 'SVNscript'
    Main Schema :- 'MAIN'
    1) On Monday developers modified/added 4 tables in the development schema names 'DEV' after working for a day they found that the changes are necessary and so checked-in in the SVN software.
    2) On tuesday morning we found 4 scripts which has been modified/added in the SVN.
    The Scripts were as follows :-
    1St table :- An extra column was added.
    2nd table :- An index was created on it.
    3rd table :- 2 Columns were dropped from it.
    4th table :- A new table is added in the schema.
    Now taking these 4 scripts i am going to execute it in a sample schema named :- SVNscript
    SVNscript schema will have now 4 tables with proper properties(columns,indexes,...). Now this is the final table structure as we want in our 'MAIN' schema .
    Coming to MAIN schema which is our most important schema and all the development work is finally posted here.Considering MAIN schema is having around 1000 tables,500 function/procedure/package and many more DB objects.
    I want to compare(one way compare) from SVNscript schema --> MAIN schema :- That the objects present in the SVNscripts schema is same or not in the MAIN schema. If its not same then this code should generate a .sql script for me which i should be able to fire on the MAIN schema.
    The output .sql scripts should be something like this :-
    1st Table :- Alter table add...
    2nd Table :- Create index on table...
    3rd Table :- Alter table drop...
    4th table :- Create table tablename...
    I found a link while trying this but it is not the perfect fit to my requirement
    http://www.dbspecialists.com/files/scripts/compare_schemas.sql
    Please let me know the best code to compare 2 schemas and get a .sql file as output of the difference.
    Thanks in advance.

    Yes I followed the tutorial properly this time. Still i have a few queries :-
    1) This is returning me the 'ALTER TABLE...' statement but how to make it more efficient to return all the DDL dependent on the table, Like index,trigger,view...
    2) I want to compare objects in a different schema on a different db. I have created an DBLINK but how to use it ... can i use it like
    DBMS_METADATA.OPEN('TABLE'," Network_link_name " );Can you please give me some clear about it.
    3) I created a table 'TAB1' with which i want to compare a 'TAB1' in other schema.I was not getting how to compare on remote dblink so,I created the same table with the following code in the same schema
    CREATE TABLE TAB1_OLD as select * from TAB1@DBLINK where 1=2;Now when i fire the below query to get the alter difference I get the following error :-
    SQL> SELECT get_table_alterddl('TAB1','TAB1_old') FROM dual;
    SELECT get_table_alterddl('TAB1','TAB1_old') FROM dual
    ORA-31603: object "TAB1_old" of type TABLE not found in schema "SVNCHECK"
    ORA-06512: at "SYS.DBMS_METADATA", line 5225
    ORA-06512: at "SYS.DBMS_METADATA", line 5189
    ORA-06512: at "SVNCHECK.GET_TABLE_SXML", line 17
    ORA-06512: at "SVNCHECK.COMPARE_TABLE_SXML", line 12
    ORA-06512: at "SVNCHECK.GET_TABLE_ALTERXML", line 11
    ORA-06512: at "SVNCHECK.GET_TABLE_ALTERDDL", line 11
    Can you please guide me why i am getting this error?
    I have made sure that TAB1_OLD table has been created and the entries are also present in the data dictionary tables.
    SQL> select * from tab1_old;
    EMPNO ENAME                  MGR DEPTNO
    ----- -------------------- ----- ------The only difference is that this table was created with CREATE TABLE AS SELECT statement ....
    Thanks.

Maybe you are looking for