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,
Similar Messages
-
Hello. I am reading a self teaching guide called databases demystified by andy oppel. In the book it says that a sample hr schema is used to demonstrate sql. It then leads the reader to download a free trial version of oracle personal edition from otn.oracle.com. In the sample the release that is being used is 9.2.0.10 it says that once opend to go to orahome92............I am a novice user and tried to download this and it did not work. I have tried to install this many times. Is there something that I am misssing. I read something about metalink. I do not have access to that so how can I use the sample download. Im sure that he would not put that download in the book if it was not readily availible to all to use. Could someone please help me with this. Do I need something special on my computer to make it work properly? Im using a reg household computer to study with and it is running one xp. Thanks
First of all, metalink is a paid oracle support site. Unless you dont have support from oracle, you can't access it.
Secondly, you can simply download the oracle software either 9i or 10g from the following link.
http://www.oracle.com/technology/software/products/database/oracle10g/index.html
Once you install oracle software and then create database (if you are creating database through wizard, using database configuration assistant, you will have all example schemas, like HR and other). You can also find scripts to create sample schema on the following directory structure:
oracle\ora92\demo\schema
Jaffar -
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. -
Problems creating a db in 11g with Sample Schemas
For a demo I'm doing I need the sample schemas.
I have tried to add it to my existing database using dbca, as well as creating a new database with the sample schemas. In both cases I run into a problem with insuficient priveleges. If I do not include the sample schemas I can create the db just nice with dbca, however since it is the sample schemas I need that does not help me a lot.
below the fist part of sampleSchema.log showing up til and including the first ORA-01031: insufficient privileges just ignoring it will lead to a lot more of them showing up.
Any suggestion how to fix this?
TEMP
specify password for SYSTEM as parameter 1:
specify password for SYS as parameter 2:
specify password for HR as parameter 3:
specify password for OE as parameter 4:
specify password for PM as parameter 5:
specify password for IX as parameter 6:
specify password for SH as parameter 7:
specify password for BI as parameter 8:
specify default tablespace as parameter 9:
specify temporary tablespace as parameter 10:
specify log file directory (including trailing delimiter) as parameter 11:
Sample Schemas are being created ...
DROP USER hr CASCADE
ERROR at line 1:
ORA-01918: user 'HR' does not exist
DROP USER oe CASCADE
ERROR at line 1:
ORA-01918: user 'OE' does not exist
DROP USER pm CASCADE
ERROR at line 1:
ORA-01918: user 'PM' does not exist
DROP USER ix CASCADE
ERROR at line 1:
ORA-01918: user 'IX' does not exist
DROP USER sh CASCADE
ERROR at line 1:
ORA-01918: user 'SH' does not exist
DROP USER bi CASCADE
ERROR at line 1:
ORA-01918: user 'BI' does not exist
specify password for HR as parameter 1:
specify default tablespeace for HR as parameter 2:
specify temporary tablespace for HR as parameter 3:
specify password for SYS as parameter 4:
specify log path as parameter 5:
DROP USER hr CASCADE
ERROR at line 1:
ORA-01918: user 'HR' does not exist
old 1: CREATE USER hr IDENTIFIED BY &pass
new 1: CREATE USER hr IDENTIFIED BY password
User created.
old 1: ALTER USER hr DEFAULT TABLESPACE &tbs
new 1: ALTER USER hr DEFAULT TABLESPACE EXAMPLE
old 2: QUOTA UNLIMITED ON &tbs
new 2: QUOTA UNLIMITED ON EXAMPLE
User altered.
old 1: ALTER USER hr TEMPORARY TABLESPACE &ttbs
new 1: ALTER USER hr TEMPORARY TABLESPACE TEMP
User altered.
Grant succeeded.
Grant succeeded.
ERROR:
ORA-01031: insufficient privileges
Warning: You are no longer connected to ORACLE.
SP2-0640: Not connectedHi;
please check Note:Is It Possible To Recreate The Example Schemas Hr And Oe? [ID 752140.1]
Hope it helps
Regard
Helios -
JDeveloper 11g Sample Schema FOD installation failure
Do not have any previous experience about JDeveloper. Downloaded 11g version. Try to follow this link:http://www.oracle.com/technology/obe/obe11jdev/11/common/connection11g.htm to install a sample schema FOD for a tutorial. However at the following step:
5. In the Application Navigator, right-click the build.xml file and choose Run Ant Target-->buildAll.
I got:
BUILD FAILED
C:\FOD\Infrastructure\Ant\build.xml:52: The following error occurred while executing this line:
C:\FOD\Infrastructure\DBSchema\build.xml:91: The following error occurred while executing this line:
C:\FOD\Infrastructure\DBSchema\build.xml:56: The following error occurred while executing this line:
C:\FOD\Infrastructure\DBSchema\build.xml:28: C:\FOD\Infrastructure\Ant\wlserver_10.3\server\lib not found.
Appreciate someone can help me out.
- DenisHi, Arun,
Thanks for your reply. I double-checked, looks there is no settign WLS home in the build.xml. My current setting is as follows, does it look right+
# Base Directory for library lookup
jdeveloper.home=C:\Oracle\Middleware\jdeveloper
src.home=..//..
# JDBC info used to create Schema
jdbc.driver=oracle.jdbc.OracleDriver
jdbc.urlBase=jdbc:oracle:thin:@113.130.218.168
jdbc.port=1521
jdbc.sid=dbwrkev1
# Information about the default setup for the demo user.
db.adminUser=zxxxx4
db.demoUser=FOD
db.demoUser.password=fusion
db.demoUser.tablespace=USERS
db.demoUser.tempTablespace=TEMP
- Denis -
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 GalleThanks 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! -
Missing Type Definitions on the SAmple Schema Script
Hi Gurus,
The following is the script taken from Oracle 9i Sample schemas page. Here the scripts for some types ORDSYS.ORDImage, ORDSYS.ORDImageSignature,ORDSYS.ORDVideo,ORDSYS.ORDAudio,ORDSYS.ORDDoc are not given.
Can you help me in getting those.
CREATE TABLE online_media
( product_id NUMBER(6)
, product_photo ORDSYS.ORDImage
, product_photo_signature ORDSYS.ORDImageSignature
, product_thumbnail ORDSYS.ORDImage
, product_video ORDSYS.ORDVideo
, product_audio ORDSYS.ORDAudio
, product_text CLOB
, product_testimonials ORDSYS.ORDDoc
) ;Does your database have Oracle Intermedia installed?
The other thing to check is whether your DBA has revoked execute on those objects from public. A couple of them served as vectors for DoS attacks against the database,
Cheers, APC
Blog : http://radiofreetooting.blogspot.com/ -
Script to create Sample Schemas
Hi,
I'd like to create sample schemas in my Oracle 11g DB.
1) I tried to use the DBCA, but it didn't give me any option to create them for my existing db.
2) I tried to see the scripts under \demo folder, but HR folder contained hr_code.sql script. No script for creating the tables and data.
3) I searched the companion CD (in 10g), and couldn't know how to obtain the script from there.
Any help is appreciated.Pavan,
This script mksample.sql is not in 11g(atleast in my system).
D:\oracle\product\11.1.0\db_1\demo\schema>dir mk*
Volume in drive D is VAIO
Volume Serial Number is 7476-8930
Directory of D:\oracle\product\11.1.0\db_1\demo\schema
06/30/2007 10:35 PM 28,262 mkplug.sql
02/09/2008 05:34 PM 1,775 mk_dir.sql
02/09/2008 05:34 PM 1,775 mk_dir.sql.ouibak
08/16/2006 10:10 AM 1,648 mk_dir.sql.sbs
4 File(s) 33,460 bytes
0 Dir(s) 12,980,768,768 bytes freeI have seen it in 10g but Ahmed is using 11g.
Cheers
Aman.... -
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,
MikeHi 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 -
I have installed 10g application server and jdeveloper - but cannot find any of the scripts to create the sample schema. From searching the OTN forums it seams that the onl way of obtaing these scripts is to install the database or companion disk and run from the demo folder.
This seems a bit over the top - i had intended to use the infrastructure database, (my system dosn't have enough resources to install a seperate database), can any helpful person email the scripts, perhaps someone from oracle might be able to make this easier there seems to be a fair bit of interest in this on the forums.
Many thanks Terry BennettHi Terry,
When you installed Oracle 10g, the demo tables should have been installed under the scott schema. Try select * from scott.emp and see if you get any results. Incase you are looking for the script for the demo tables, its in $ORACLE_HOME/rdbms/admin/utlsampl.sql (in my case its in C:\oracle\product\10.1.0\Db_1\RDBMS\ADMIN).
Hope that helps.
-Raj -
Sample schema manual installation
I installed the oracle 11g release2 and unchecked to install the sample schema when installation process, after installation completed, I want to install the sample schema manually, as document said all scripts will be in $ORACLE_HOME/demo/schema directory but I cannot find all installation scripts, Anyone could help why? and where I can get the scripts to create the sample schema (HR,OE,SH etc).
Thank you very much!user12063985 wrote:
I have read the document but not find those scripts, I am using windows xp sp3 32bit.
Thanks a lot!In Chapter 2 of the Install Guide linked above, under the section titled "Manually Installing Sample Schemas" there is a link to http://download.oracle.com/docs/cd/E11882_01/install.112/e17861/toc.htm and if you scroll down to "Download Oracle Database Examples" section, you will find the instructions :-)
HTH
Srini -
Oracle 11g Rel2 Sample Schemas Missing
I installed Oracle 11g Release 2 and created a database using DBCA. In one screen there is an option to create sample schema but it was greyed out so I could not select it.
I searched the dbhome\demo\schema\human_resources directory but there is only one file in it -hr_code.sql(It created triggers in hr schema).
There is no sql to create hr schema or populate schema tables. I searched the net to download the scripts but no idea where to get them. Can you help mejosephj1989 wrote:
I installed Oracle 11g Release 2 and created a database using DBCA. In one screen there is an option to create sample schema but it was greyed out so I could not select it.
I searched the dbhome\demo\schema\human_resources directory but there is only one file in it -hr_code.sql(It created triggers in hr schema).
There is no sql to create hr schema or populate schema tables. I searched the net to download the scripts but no idea where to get them. Can you help meHi,
There are some earlier threads on this topic, see Re: MISSING ORACLE DATAUSER "HR"
HtH
Johan -
hello everyone and merry christmas!
I HAVE DOWNLOADED THE 8.I PERSONAL EDITION INTO NT AND I WANT TO KNOW IF
I CAN INSTALL THE ORACLE 9I SAMPLE SCHEMAS?
OR DO I HAVE TO HAVE A 9I DATABASE DOWNLOADED FIRST?
PLEASE, HELP.
THANKS IN ADVANCEThe users both "OE" and "HR" have the connect, resourse and dba permisions... Both use the USERS tablespace and the TEMP temporary tablespace.
Thanks for the help. -
Hi, Everyone,
I would like to know how to install a sample schema in oracle 11g database.
I have already installed oracle 11.1.0.6 on my server without the sample schema. Now i want to install the sample schemas in my database. Can anyone provide me with the steps on how to install it.
i am following this document
http://download.oracle.com/docs/cd/B28359_01/server.111/b28328/installation.htm#I6806
but the files it is mentioning .sql files for example in the hr folder i dont have this file...
'hr_main.sql'
i have only 'hr_code.sql'
so i feel that something is missing somewhere.. so could you people help me in this?
Thanks & RegardsCan't find oe_main.sql and HR_main.sql
HTH...
Maybe you are looking for
-
Save as dialog window for excel file save ....
hi! i have a jsp that displays all the report names to the clients and when clicked on the report downloads an excel file and saves to the client machine.this is accomplished by calling a servlet that sets the content type as "application/octet-strea
-
How much memory can Premiere Pro use on a new Mac Pro?
I'm ready to upgrade memory on my Mac Pro Late 2013 6-core. Does PP CC 2014 have a limit on how much RAM it can use? Some apps never use more than a certain amount, so I don't want to buy a lot of memory if PP will never put it to work. (I made th
-
Char NUMC(5) - need to store value at database level without leading Zeros.
Hi All We have 0Mat_Item like infoobjects in SAP BI, which have data type Char NUMC(5). Here if u load value '1', it would show us '1' at front end (BI or reporting level) but at database level stores as u201800001u2019. My requirement is to store th
-
We're working on a document and having some issues because of fonts. The designer is on InDesign on a mac and I'm on InCopy on PC. Unfotunately, one of the fonts she chose isn't cross-platform and we don't want to spend the money to get a cross platf
-
Gave up and bought Missing Sync for Palm OS
I finally gave up on Leopard ever being able to sync directly with my Palm Treo 650 and bought Mark/Space's Missing Sync for Palm OS ($39.95). After an hour or so of experimenting with Missing Sync, I'm happy that my Treo and Leopard-loaded Mac are i