Where to find hr_main.sql?

Hi all,
I want to create sample schemas in 10g.
But i can not find the hr_main.sql in $ORACLE_HOME/demo/schema/human_resources
/u01/oracle/product/10.2.0/demo/schema/human_resources> ls -ltr
total 8
-rw-r----- 1 oracle dba 2733 Aug 29 2002 hr_code.sql
Q: where else to find this sql?
thanks

Hello all,
I have the same problem in an Oracle 10g R2 environment:
the book "Sample Schemas" says:
All scripts necessary to create Human Resource (HR) schema reside in $ORACLE_HOME/demo/schema/human_resources.
You need to call only one script, hr_main.sql, to create all the objects and load the data. Running hr_main.sql accomplishes the following tasks
But there is only "hr_code.sql" as already written by SZ.
Also the solution described here can't work: there is no file "hr.jar" on the companion-CD. I searched for all "*.jar" files on the disc...a lot of files, but no "hr.jar"...
The "Samples Schema" book says here in chapter 1: The scripts are included in the companion directory on the installation medium..
It's the first time for me that it seems that the documentation is not telling the truth... ;-)
Does anyone know what's up with the scripts as they are described in the "Samples schema" book??
(or is it completely different on LINUX?? Do they not exist on Linux?? That's the OS I use...)
Thanks for your help in advance!
Regards
FireFighter
Message was edited by:
FireFighter

Similar Messages

  • Where to find the SQL text in v$ views?

    Hi All,
    Oracle 11.2.0.3 on RedHat.
    I am trying to find out SQL activity on my database for a very narrow time window. Please see the SQLs I did
    SQL> select distinct user_id, sql_id
      2  from v$active_session_history
      3  where sample_time between to_date('20120704012000','yyyymmddhh24miss') and
      4            to_date('20120704012200','yyyymmddhh24miss')
      5  and user_id = 111 ;
       USER_ID SQL_ID
           111
           111 gjg25k7stx9ba
           111 a8m049aj31b1y
           111 asjw7b7h99w4m
           111 fvffk1aqrb55n
           111 9gskv9b1u7mau
           111 03tsb9pp3h1uj
           111 dm0jppss5z0ay
           111 44n0svyuc000x
           111 16t1tpr7mdqnf
           111 bzpu510tng689
           111 dsqzhqdvzamys
    12 rows selected.
    SQL> select * from v$sqltext where sql_id='16t1tpr7mdqnf' order by piece ;
    no rows selected
    SQL> select * from table( dbms_xplan.display_awr('16t1tpr7mdqnf') ) ;
    no rows selectedI can see the text for all SQLs in v$sqltext, except 16t1tpr7mdqnf. User id 111 is the user used to run our batch processes.
    Where can I find the text for this SQL id 16t1tpr7mdqnf ?
    This SQL has run about 8 hours ago.
    Thanks in advance

    When you say, ASH captures active sessions, does that mean, it only captures "session" information, which may not include details about SQL ?Exactly, it's a snapshot of session level information for active sessions.
    So, session X can be executing sql statement abc123 and be captured by ASH which takes a snapshot of all active sessions every 1 second in V$ACTIVE_SESSION_HISTORY.
    1 in 10 of these active sessions is stored in the repository - DBA_HIST_ACTIVE_SESS_HISTORY (in practice, this 1 in 10 sample is literally as simple as store the active sessions from every 10th second).
    Independently of this, obviously you have the shared pool and V$SQL. If your statements are in here then great.
    Otherwise you have AWR which captures the top N sql from each interval.
    So, as mentioned, perfectly normal to have references to sql ids and sql plan hash values captured in ASH but not AWR.
    One interesting thing here is, sql_exec_id is blank. What does that say? It depends.
    It's likely to be one of two things:
    1. some sort of bug or limitation - there are certain operations and time limits were some of the ASH values get cleared out or don't get cleared out.
    2. occasionally I've seen the ASH information be misleading when it comes to certain recursive operations - one specific example I can think of related to the recursive merge of sql plan baseline metric tracking operations.

  • Where to find oracle.sql Java definitions

    Where do I find the definitions
    for the oracle.sql Java methods?
    I'm looking for something like the
    Sun Java web guide
    (i.e. http://java.sun.com/j2se/1.3/docs/api/)
    Mike Sullivan
    null

    Thanks, Steven. That is what I thought, and I have included that in my CLASSPATH too. Hmmm ...
    Thanks,
    Victoria.

  • Where to find PAY11i sql

    Hi:
    I have been looking and reading this whole Morning and tried to find a place to download PAY11i.sql Diagnostics for Payroll. I got this note "Oracle Human Resources (HRMS) PAY11i.sql Diagnostics for Payroll [ID 208964.1]" (can't figure it out which responsibility from step #2) ) and Note 358831.1 but still can't figure it out where to download it and run it. Would you please kindly help me here so I can complete an user's request? We have R12.1.3 db: 11.1.0.7 on linux.
    Thank you very much in advance.

    870765 wrote:
    Hi:
    I have been looking and reading this whole Morning and tried to find a place to download PAY11i.sql Diagnostics for Payroll. I got this note "Oracle Human Resources (HRMS) PAY11i.sql Diagnostics for Payroll [ID 208964.1]" (can't figure it out which responsibility from step #2) ) and Note 358831.1 but still can't figure it out where to download it and run it. Would you please kindly help me here so I can complete an user's request? We have R12.1.3 db: 11.1.0.7 on linux.
    Thank you very much in advance.Please refer to "Installation on E-Business Suite Release 12" section in (E-Business Suite Diagnostics Installation Guide [ID 167000.1]).
    Thanks,
    Hussein

  • Where to find the SQL log by crystal reports

    i want to watch the sql log by crystal report loading,but i don't know how to find it , somebody knows it? thanks advanced!

    Hi Wang,
    If you mean to look at the SQL query CR generates, then open the report in the CR Designer > Go to the Database option on the top > Click Show SQL.
    -Abhilash

  • Where can I find a sql server 2000 driver which supports JDBC 2.0?

    Where can I find a sql server 2000 driver which supports JDBC 2.0?
    Thanks!
    Paul.

    Here is another.
    http://www.datadirect-technologies.com/download/downloadindex.asp
    The JDBC 3.0 driver will work in a JDBC 2.0 environment (i.e with J2SE 1.2 or 1.3)
    provided you use only JDBC 2.0 features of the driver
    "Sree Bodapati" <[email protected]> wrote:
    >
    >
    http://msdn.microsoft.com/downloads/default.asp?URL=/downloads/sample.asp?ur
    l=/msdn-files/027/001/779/msdncompositedoc.xml&FinishURL=%2Fdownloads%2Frele
    ase%2Easp%3FReleaseID%3D38312%26area%3Dsearch%26ordinal%3D1%26redirect%3Dno
    Microsoft.com downloads :)
    http://www.inetsoftware.de/English/Produkte/JDBC_Overview/ms.htm
    www.inetsoftware.de
    are a couple.
    sree
    "pronane" <[email protected]> wrote in message
    news:[email protected]..
    Where can I find a sql server 2000 driver which supports JDBC 2.0?
    Thanks!
    Paul.

  • Where to find the blob viewer in sql developer

    Hi,
    i tried to find the blob viewer in sql developer to see blob column data , but failed. The manual introduce blob vievers but not mention where it is in sql developer
    can any gurus guide me to find blob viewers
    Thanks

    user10833860 wrote:
    double click the result cell of blob. the blob viewer will pop up
    This quote is from the 2nd link
    http://sqldeveloper.solyp.com/download/SQLDeveloperUserManual_en.pdfThis is not the same SQL Developer as the Oracle supplied SQL Developer.
    It shows the raw binary data unless it is a JPEG, GIF or PNG where you can see a picture.
    >
    http://download.oracle.com/docs/cd/E18464_01/doc.30/e17472/dialogs.htm
    This is better, this is the documentation for Oracle SQL Developer
    >
    Use the external editor associated with the MIME type and file extension (see the preferences for External Editor)
    >
    http://download.oracle.com/docs/cd/E18464_01/doc.30/e17472/intro.htm#CHDDJFGE
    >
    The External Editor pane determines which external editor is called by SQL Developer when you try to edit binary large object (BLOB) data, such as image files, video files, and other files created by certain applications. For each combination of MIME type and file extension, you can specify the executable application to be used to open and edit associated files.
    >
    Did you set up an application that can open the binary files of the type you want to view?

  • Where to find the user groups in SQL Server

    Hello All,
    where to find the user groups created in Shared Services in SQL Server tables?

    Yes thats correct its stored in Openldap
    Native Directory (OpenLDAP), an open source Lightweight Directory Access Protocol (LDAP)-enabled user directory, is bundled and configured with Shared Services.
    Native Directory functions:
    **Used to maintain and manage the default Shared Services user accounts required by Hyperion products*
    **Is the central storage for all Hyperion provisioning information because it stores the relationships between users, groups, and roles.*
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Can't find oe_main.sql and HR_main.sql

    I have download and installed latest oracle database successfully (version 11g). When I followed instruction to install sample schema, I couldn't find hr.main.sql and oe_main.sql.
    I only found hr_code.sql in demo/schema/human_resources directory.
    There are a few sql files under order_entry directory like oe_views.sql. But I can't find oe_main.sql.
    I have been struggle with it for a few days. I couldn't find the script file on Internet either. Please help me identify this problem. Thank you very much.

    It's been some time ago but I encounter terrible problems with companion cd now. I have downloaded the zip file with examples already couple times and always there are crc errors in the archive that corrupt the instalation. I hate it... but I need the examples...
    What should I do?
    Download Companion CD from Oracle 10g. This is gonna take another 2 hours with my connection, but let me see...
    Edited by: prdola on Jul 4, 2009 7:26 AM

  • SQL Fundamentals I : oe_main.sql , hr_main.sql, ...

    Hi forum,
    I just bought "SQL Fundamentals I" from McGraw Hill. This book mentions several schemas and creation scripts like hr_main.sql,
    oe_main.sql, ... ! Unfortunately I cannot find these scripts for download and it is not on the accompanying CD. In the meantime
    I sestablished a 10G Express Database on my notebook for training purposes. The hr schema and the tables in question could
    be found there. Does anyone know where to find the scripts necessary for studying this book ?
    Kind regards
    oeggert2706

    user11128142 wrote:
    Hi forum,
    I just bought "SQL Fundamentals I" from McGraw Hill. This book mentions several schemas and creation scripts like hr_main.sql,
    oe_main.sql, ... ! Unfortunately I cannot find these scripts for download and it is not on the accompanying CD. In the meantime
    I sestablished a 10G Express Database on my notebook for training purposes. The hr schema and the tables in question could
    be found there. Does anyone know where to find the scripts necessary for studying this book ?
    Kind regards
    oeggert2706HR and OE etc. are standard schemas that come as part of the Database installation. Not sure about the express edition, but as Oracle provide them as example schemas, I don't see why they wouldn't be included with that version.
    http://download.oracle.com/docs/cd/B12037_01/server.101/b10771/scripts003.htm
    http://download.oracle.com/docs/cd/B13789_01/server.101/b10771/installation002.htm

  • How to find better SQL log in OBI Answers?

    While I have an error in making an OBI request in Answers page, the error message in the result tab is usually not very helpful, like:
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27005] Unresolved column: "Sales Facts Current Month"."Amount Sold (000) Current Month". (HY000)
    SQL Issued: {call NQSGetQueryColumnInfo('SELECT "Sales Facts Current Month"."Amount Sold (000) Current Month", "Sales Facts"."Amount Sold", Calendar."Calendar Month Desc", Calendar."Calendar Month Name", Products."Prod Category" FROM SH')}
    SQL Issued: SELECT "Sales Facts Current Month"."Amount Sold (000) Current Month", "Sales Facts"."Amount Sold", Calendar."Calendar Month Desc", Calendar."Calendar Month Name", Products."Prod Category" FROM SHI then go to Session Monitor, and click the View Log link. By doing so, sometimes, I got the full sql statement. That is good and I can figure out the problems. Sometimes, I have things like:
    -------------------- SQL Request:
    SET VARIABLE QUERY_SRC_CD='Report',SAW_SRC_PATH='/shared/sh/Learn';SELECT Times."Calendar Month Name" saw_0, Times."Calendar Month Desc" saw_1, Products."Prod Category" saw_2, Salesfacts."Amount Sold" saw_3, REPORT_SUM(saw_3 BY saw_0, saw_1), REPORT_SUM(saw_3 BY ) FROM SH WHERE (TOPN(Times."Calendar Month Id",40) <= 40) AND (Channels."Channel Desc" = 'Direct Sales') ORDER BY saw_1, saw_0, saw_2
    +++Administrator:13290000:1329000f:----2009/09/29 09:18:33
    -------------------- General Query Info:
    Repository: Star, Subject Area: SH, Presentation: SH
    +++Administrator:13290000:1329000f:----2009/09/29 09:18:33
    -------------------- Cache Hit on query:
    Matching Query:     SET VARIABLE QUERY_SRC_CD='Report';SELECT Times."Calendar Month Name" saw_0, Times."Calendar Month Desc" saw_1, Products."Prod Category" saw_2, Salesfacts."Amount Sold" saw_3 FROM SH WHERE (TOPN(Times."Calendar Month Id",40) <= 40) AND (Channels."Channel Desc" = 'Direct Sales') ORDER BY saw_0, saw_1, saw_2
    Created by:     AdministratorThis does not help as the selected tables are not fully spell out. It appear like that OBI find the sql in cache and did process the request fully.
    Is there a way I can force OBI resend the request? Is there a way to get OBI log the full sql statement? That way I can copy the sql to SQL*Plus and find exactly the problem
    Thanks.

    Physical SQL is not visible as it hits the cache.
    you can :
    1) clear the physical cache from rpd and re-run the request.
    or
    2) copy the logical SQL, go to web Admin - issue SQL--paste the logical SQL there, then just change one parameter or two, so it does not hit the cache. E.g. change a filter to Feb from Jan...or just add a dummy column at the beginning as select 1 or select 'a' ....rest of the sql same.
    this way you can avoid hitting the cache and see the sql (at the bottom of the results - view log)
    make sure you have checked the presentation server cache option and set the log level to 4 or more to see details.
    HTH

  • How do I modify the WHERE clause in my SQL query?

    This seems like such a straight-forward part of the report design, but I'm fairly new to Crystal Reports and I only have experience with modifying reports someone else has already written.  In this particular case, I just need to modify the WHERE clause of the SQL query.  I can select Show SQL Query and see what statement is being used to select data, but I can't find where to modify it since it's grayed out.  I see how to change the selection criteria, parameters, grouping, etc...just not the WHERE clause.  The report is linked to a database used for reporting with a table created and populated by a stored procedure.  I don't need to modify the stored procedure because the data I want to filter by is currently in the table--I just don't know how to filter by what I need.  Here's part of the query:
    SELECT "rpt_dist"."startdate", "rpt_dist"."transtype", "rpt_dist"."laborcode", "rpt_dist"."crewid", "rpt_dist"."regularhrs" FROM   "Reporting"."dbo"."rpt_dist" "rpt_dist"
    WHERE  (rpt_dist."transtype" <> 'WORK' AND rpt_dist."transtype" <> 'WMATL') AND rpt_dist."laborcode" LIKE 'S%' AND (rpt_dist."crewid" = 'HOUS' OR rpt_dist."crewid" = 'HOUS2' ...
    I would like to add another crewid to the WHERE clause.  Thanks for any input.

    1.Open the report in the crystal designer
    2.Go to the field explorer(if hidden go to view menu->field explorer)
    3.Rt. click on the database fields->choose database expert
    4.Now you will see 2 columns-Available DataSource  and Selected Tables
    5.Rt. click on the object(ex.command) available in the Selected Tables column->Choose Edit command
    6.A new Modify Command window will appear,here you can edit your SQL Query
    I get to step 4 and I see the two columns including my database and the report table, but there is no command object available.  If I right-click on my table, I can just view the Properties. ??
    As for the other tip to modify the record selection:  I don't see anywhere the other crewid values are set and if I add the one I'm missing, it doesn't modify the existing SQL Query and when I preview the report it throws off the results so that no data displays??
    I'm using Crystal Reports 11.5 if that makes a difference.  Thanks again.

  • Where to download the SQL Server 2000 plug-in for Migration Workbench

    Dear All,
    I am new to Migration WorkBench, I want to migrate the SQL Server 2000 database to Oracle 9i. When i start the Migration WorkBench, it requires me to select the plug-in (SQL Server) for the migration source. Before i have download and install the Access plug-in for testing. Can anybody tell me where i can find the SQL Server 2000 Plug-in for migration workbench.
    thx.
    Alan,

    here on OTN; on the same page like all the other plugins:
    http://otn.oracle.com/software/tech/migration/workbench/htdocs/utilsoft.html

  • Where to find the value of last_update_login

    Hi All,
    I have create a pl/sql procedure which I used to insert row in custom table and I also have WHO columns in it.
    I want to know how can I insert value in last_update_login.
    Regards,
    Ajay

    Hi,
    last_update_login contains some id like 11954509
    My question is where to find it. Like fnd_profile.value('USER_ID') get us the created_by.
    Regards,
    Ajay

  • Where to see the SQL statement that CMP Entity bean excuted?

    hi, I'm wondering where I can find the SQL that a CMP entity bean executed in a transaction?
    thank you!

    You can do it in many ways. If you are using eclipse then using eclipse
    plugins for weblogic you van do it. I have heard that in weblogic workshop
    also you can do it. If the above do doesn;t solves your problem then check
    this out.
    http://www.p6spy.com/documentation/install.htm
    Hope that helps.
    <Xin Zhuang> wrote in message news:[email protected]..
    hi, I'm wondering where I can find the SQL that a CMP entity bean executed
    in a transaction?
    thank you!

Maybe you are looking for

  • Unable to shut Standalone OC4J 10.1.3.1.0

    Hi, I want to shut down the standalone OC4J 10.1.3.1.0 I issued following command (We are using the port 23792) to stop this => java -jar admin.jar ormi://localhost:23792 oc4jadmin password -shutdown force But it does not responds. Also now I am not

  • OS X Improvents and issues

    I installed the latest Java update for OS X today (recent release) and I now notice some significant improvements with speed, window drawing and a neat blue spinning ball when Creator is busy. I am having a problem (not because of the update) with de

  • Package for a procedure or a function.

    Hello expert, I want to find out the package where a procedure or function is included. Appreciate very much!

  • IQ512sc doesn�t work in Internet Explorer, Google Chrome and some parts in Safari.

    Hello. Our Toucshsmart IQ512 has stopped working in Internet Explorer and Google Chrome. Cannot get the writing-fields active. Some functions are also missing in Safari. Do you have a solution? I will really keep the PC, it is perfect in the kitchen.

  • Toshiba error popup after booting?

    I just got malware on my Toshiba and fixed it(I assume). I however now get this error message upon starting up the laptop: "XFERRECV_RecvMain() : bind() error 675, 10050" It's window name is "SUMMIT" What is this? It doesn't seem to do anything and h