How to get emp and dept tables of scott schema if they acdientally deleted
Hii I accedentally modifiled emp and dept tables in scott schema.... Can you please tell how to recreate fresh emp and dept tables ? is there any way to get emp and dept tables? please help regarding this
If you are on Oracle 10g version...
The demo tableds under scott schema can be created using oracle supplied script.
http://www.oracle.com/technology/sample_code/tech/sql_plus/htdocs/demobld.html
Alternatively, this script exists in $ORACLE_HOME/sqlplus/demo directory.
vr,
Sudhakar B.
Similar Messages
-
Emp and Dept table from JDeveloper tutorial
Hi all,
Under the tutorial for JDeveloper, I was going through the section 'Creating a Java Form Applet Using Wizard'. In one step, it asks to select 'Tables' - 'Emp' and 'Dept', but, the steps prior to that doesn't tell you how to add those tables in the database since I'm using my own database. Does anybody know where I can find the SQLScript to add these tables?
Regards,
ARThe samples are based on the EMP and DEPT tables, which are typically owned by Scott (password tiger). Check first to see if this user exists in the database (it is created automatically when you do a default database creation). Otherwise, you can find the script in ORACLE_HOME\rdbms\admin\scott.sql.
-- Brian -
Hi ,
I have mistakenly altered and dropped the Employee and Department Table.
Can anybody help me with the Structure and Data of these tables ?
Or provide me with a procedure to re-create the Emp and Dept table ?
Thanks,
NishaThank you very much !! That really helped.
You just have to execute that file.
For Eg in SQLPLUS : Just say ---> @D:\oracle\ora92\sqlplus\demo\demobld.sql -
Data needed from emp and dept tables
Wondering if somebody can querry the emp table and dept table that comes with some versions of oracle already built in.
I need the data produced from these two querries
select * from emp
select * from deptIf you look in ORACLE_HOME/sqlplus/demo you'll find demobld.sql which contains the script the build all the scott tables.
-
Hi,
I believe that when the database is installed, a few tables are created which all users have access to, i.e. emp and dept.
Can anyone explain to me a bit more about where they are stored and particually where I can locate the scripts for these tables.
Cheers,
Nickrun $ORACLE_HOME\sqlplus\demo\demobld.sql as the user in which you want to install these test tables. Historically, this has been in the SCOTT schema.
HTH-Kevin -
How to get max and min salary in a table
How to get max and min salary in a table
SQL> select max(sal),min(sal) from emp;
MAX(SAL) MIN(SAL)
5512 800
SQL> -
How to get all rows in table to red using alternate rows properties option
How to get all rows in table to red using alternate rows properties option
Hi Khrisna,
You can get all rows red by selecting the color red in the "Color" and "frequency" to 1 under the "Alternate Row/Column colors".
I tried doing it and the colors freaked me out (all red) :-D
Kindly tell me if im missing something.
Regards,
John Vincent -
How to get gui_download and gui_upload with popup filename?
how to get gui_download and gui_upload with popup filename?
Here is a short example.
report zrich_0003 .
data: ifiletab type filetable.
data: xfiletab like line of ifiletab.
data: xstring type string.
data: rc type i.
data: itab type table of string.
data: xtab type string.
start-of-selection.
call method cl_gui_frontend_services=>file_open_dialog
changing
file_table = ifiletab
rc = rc.
read table ifiletab into xfiletab index 1.
xstring = xfiletab-filename.
check not xstring is initial.
call method cl_gui_frontend_services=>gui_upload
exporting
filename = xstring
changing
data_tab = itab.
loop at itab into xtab.
write:/ xtab.
endloop.
Regards,
Rich Heilman -
How to get value on the table control in infotyp e0008
Dear Freinds
I have written a user exit ZXPADU02 for my requirement
as per the requirement in i have calculated wa-poo8-bet01 = wa_p0008-ansal/12 and i have passed on to the INNNN structure .
Nowe when do a Create or Copy for a rcord in infotype 0008 iam not
getting value on Q0008-betrg field on the SCREEN , since it is table control how to get data on the table Control Cell .
Please let me knlow
regardsHi Syamala,
The try to find the name of the table control and pass the values to it.
Of course you have to loop and endloop, the table control and mofidy it from the work area.
Message was edited by:
Sera -
How to access RT and CRT tables
Hi experts can any one guide me how to view RT and CRT Tables.
How to access RT and CRT tables.
Is there any Tcode existing to access these.
Thanks in advance
Regards
vamsi.Hi Vamsi,
1) You can use the function module : CU_READ_RGDIR
In this function module you can pass PERNR and you can get SEQNR(Sequence No) or you can take the sequence no from any transparent table also.
2)After getting the sequence NO Pass the employee NO and Sequence NO in the function module : PYXX_READ_PAYROLL_RESULT.
From this function module you can get the RT,BTand CRT Table results.
Thanks and Regards
Partha -
How to get nodes and its attributes of an XML file usiong DOM parsing?
how to get nodes and its attributes of an XML file usiong DOM parsing?
i am new to XML parsing.......
Thanking you........import org.w3c.dom.Document;
import org.w3c.dom.*;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.DocumentBuilder;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException; ...
//Setup the document
DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
Document doc = docBuilder.parse (new File("MY_XML_FILE.xml"));
//get elemets by name
String elementValue = doc.getElementsByTagName("MY_ELEMENT").item(0).getTextContent();
//This method can return multiple nodes, in this instance I get item(0) , first nodeRead the api for other methods of getting data. -
How to get vendor and company code based on logistic invoice document
how to get vendor and company code based on logistic invoice document in abap/4?
Hello Kumar
When you call BAPI_INCOMINGINVOICE_GETDETAIL using
INVOICENUMBER = <number of invoice>
FISCALYEAR = <fiscal year>
the returned HEADERDATA contains what you are looking for:
HEADERDATA-COMP_CODE
HEADERDATA-DIFF_INF
Regards
Uwe -
How to get tools and other bars back in view after deleting show-bar?
How to get tools and other bars back in view after deleting show-bar?
Hello Jouko.
You can go into View > Toolbars and select the ones you want to see. If you can't see the menu bar you can simply tab ALT on your keyboard (I think F10 works too) to show it. -
How to get instrument and plug in files to logic8?
How to get instrument and plug in files to logic8?
I lost mine in a hard drive crash.
I cant use my DVD jam pack
This is my spec
Modellnamn: iMac
Modellidentifierare: iMac8,1
Processornamn: Intel Core 2 Duo
Processorhastighet: 2,4 GHz
Antal processorer: 1
Totalt antal kärnor: 2
L2-cache: 6 MB
Minne: 3 GB
Busshastighet: 1,07 GHz
Boot ROM-version: IM81.00C1.B00
SMC-version (system): 1.29f1
iMac, OS X Mountain Lion (10.8.2)I think you want to get the latitude and longitude information of client accessing the web application. In the web application you cannot directly get the client location information as the nature of the web application is different from windows applications.
I advise you to develop a Silverlight component and in that Silverlight component use geolocation classes to get client location. Please refer this article for getting data in Silverlight http://www.c-sharpcorner.com/UploadFile/82b980/getting-geo-location-of-user-in-silverlight/
And once you get the location information you can send that data back to ASP.net webpage or call any javascript method as shown here http://ovaismehboob.wordpress.com/2013/06/22/bridging-data-between-asp-net-and-silverlight/
Hope this helps!
Ovais Mehboob Ahmed Khan http://ovaismehboob.wordpress.com -
How can I copy and paste table cells from Pages into InDesign with minimum reformating?
How can I copy and paste table cells from Pages into InDesign with minimum reformating?
Do you mean you want to retain the formatting from Pages, or retain formatting already applied in ID?
Maybe you are looking for
-
Cannot Update iPad 2 to iOS 5.0.1
Im getting a constant error message when I try to check for an update over wi-fi, I had an issue with my iPhone 4 initially also but was resolved after I found a thread that suggested I change my DNS settings, no such luck with the iPad though I don'
-
Is it possible to upgrade a macbook pro 15 late 2008 memory upgrade to 8 go
Hi from Belgium, Is it possible to upgrade a macbook pro 15 late 2008 memory from 4 to 8 go. And if yes would i have to replace both memory modules. I'm also experiencing problems with the battery. Could you tell me if the new replacement batteries a
-
ORA-01007 variables not in list
Hello all I am trying to run a full load n changed some mapping that is imported from another m/c Two mappping r giving this error ORA-01007 variables not in list. Severity Timestamp Node Thread Message Code Message ERROR 8/21
-
Add-On page will not display properly
Using Firefox 28.0 and when I go to the Get Add-On tabs the page does not render correctly. I basically get plain text and hyperlinks. The other tabs work fine. Same thing happens when I attempt to open https://addons.mozilla.org/en-US/firefox/ in th
-
Erratic battery indicator "time remaining"
This little Mac has always had battery problems. When it was hers, my daughter went through 2 batteries. Now that it's come home to me, I figured I'd lick the problem once and for all. So I bought a NewerTech battery. It lasts longer (previous batter