How to get default database like emp, dept?
Hi,
I have just downloaded oracle 9i personel edition, and installed. it is working properly. but i can not find any defalut tables like emp, dept .....
I think i have to run some scripts to get them.
can anybody help me....
@?/rdbms/admin/utlsampl
will create scott user and dept and emp tables, like we use them here
Similar Messages
-
How can get a database like ****.SQL file for test in sqlplus in oracle8i
How can get a database like ****.SQL file for test in sqlplus in oracle8i,I am a beginner,thanks
I'll give it a guess as to what it is you want but I'm afraid you'll have to give some more information to go on. I appreciate it's difficult for people who are beginners or who don't have English as their first language.
Are you trying to run a SQL file? From SQL*plus you can do either of these:
SQL> start my_file
or
SQL> @my_file
N.B.: if th efile has a .sql extension you don't need to include it, but you do for any other file extension e.g.
SQL> @myfile.run
Here is the page Vijay referred to:
Re: Physical storage Checks & adding disk on server. I hope you find it useful.
You will more helpful links (including links to the Oracle on-line manuals at this page:
Re: How to attach a java bean in forms6i
good luck, APC -
i deleted most visited, latest headlines, getting started, yahoo, youtube, apple in mozilla's folder,how to get it back like the first time i installed? thx
if you hid the menu bar and the navigation bar simply press the alt button, this will bring back the menu bar and form there you can right click and select which bars you want shown
-
How to get a wallet (like in Nokia 6600) for Nokia...
Dear All,
Can you please tell me how to get a wallet (like in Nokia 6600) for my Nokia E63?
Narottam Das
Kolkata, IndiaUsing the data from your Excel spreadsheet, this is what I get from the curve-fit functions:
Seems like a pretty-good fit to me. I'm not sure what you're trying to do with the polynomial evaluation stuff, though.
Message Edited by smercurio_fc on 07-30-2008 09:21 AM
Attachments:
Example_VI.png 17 KB -
How to get default values while using the transaction "BP"
Hi Group,
I have a query on how to get default values while using the transaction <b>BP</b>?
The thing is:
when I enter into the transaction "BP", I need to see some default values to some of the input fields in the screen.
how can I achieve this?
So please kindly let me know the procedure to achieve this.
Thanks & Regards,
Vishnu.Hi,
The events of BDT can be used to default some fields on creating a partner.
For this create a function module for ISDAT. attach that event in BUS7.
In the ISDAT funtion modulethe following code should be used.
For example to set the nationality:
I_BUSDEFAULT-NATIO = 'DE.
CALL FUNCTION 'BUP_BUPA_FIELDVALUES_SET'
EXPORTING
i_busdefault = I_BUSDEFAULT
Regards, Smita. -
How to get the Database type from weblogic Db connection
I want to use database version control in my application . that means different database type use different Sql Statement. Such as in weblogic7.0 if I create SqlServer JDBC pool then I will use some special Sqlserver sql Statement . such as some join statement. If I create Oralce JDBC pool then I have to use different Sql statement . because these two database support different Sql statement.
What my question is how to get the database type from the connection.For a normal jdbc driver you can use
Connection.getMetaData()
To get the meta data, in particular the getDatabase...() methods.
That might or might not work.
However, at the very least in the server you have access to the weblogic properties so you can parse the pool property to figure it out. -
How to get a layout like the jpg image in the below url
https://profiles.google.com/1002692743277336179061- use panel splitter (horizontal)
2- in the first facet (the picture)
2- in the second facets (panel tapped) -
SqlServer 2008 Database Status Showing(Recovery pending)
How to get this database in online?
This is SharePoint Content database.
BadriSqlServer 2008 Database Status Showing(Recovery pending)
How to get this database in online?
This is SharePoint Content database.
Badri
Hi,
Please try running below in master database
restore database db_name with recovery
Chances are that this command would not succeed because I guess there was corruption in database and you restarted SQL Server service. Or can you please tell how your database went into recovery pending state.
Please check SQL Server errorlog you would find information regarding this change. Please post relevant log information here. Please check event viewer as well
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
My TechNet Wiki Articles -
how to get Facebook icon like twitter on safari as I am missing this when I installed mountain lion?
Welcome to Apple Communities
Facebook will be added in an update -
On the back of the ipod is the information can anyone tell me how to get a cases like that
on the back of the ipod is the information can anyone tell me how to get a cases like that?
ansd wat is the best ipod touch 4g cases made and does apple amke some?https://expresslane.apple.com/GetSASO.action?caller=sfaq&PRKEYS=PF3&locale=en_US
-
How to get the default data in emp,dept tables
Hi all
i inserted some date into emp,dept tables.
after that i want to default records what is containing at the
time of instaling in oracle.
what script can i run to get that data.
Regards
GB raoThe script $ORACLE_HOME/sqlplus/demo/demobld.sql creates and
populates all the demonstration tables. You can extract the
actual INSERT statements from there. -
How to get default lay out set in my ALV out put.
I need to have default layout in my ALV output.
My functional consultant idea was to make sure they have an ALV variant selected.
When he first run the program, how will need to get a "/DEFAULT" variant created.
How can I do that ?
Initialization - For ALV variant
INITIALIZATION.
ws_repid = sy-repid.
g_save = 'A'.
CLEAR g_variant.
g_variant-report = ws_repid.
Get default variant.
gx_variant = g_variant.
gx_variant = g_variant.
CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
EXPORTING
i_save = g_save
CHANGING
cs_variant = gx_variant
EXCEPTIONS
not_found = 2.
IF sy-subrc = 0.
p_vari = gx_variant-variant.
ENDIF.
&--F4 HELP - FOR ALV VARIANT GET--
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_vari.
CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
EXPORTING
is_variant = g_variant
i_save = g_save
IMPORTING
e_exit = g_exit
es_variant = gx_variant
EXCEPTIONS
not_found = 2.
IF sy-subrc = 2.
MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
IF g_exit = space.
p_vari = gx_variant-variant.
ENDIF.
ENDIF.
&--AT SELECTION-SCREEN.- For ALV Variant--
AT SELECTION-SCREEN.
*Getting variant Existence
PERFORM get_exist_variant.
*& Form GET_EXIST_VARIANT *
text *
FORM get_exist_variant .
IF NOT p_vari IS INITIAL.
MOVE g_variant TO gx_variant.
MOVE p_vari TO gx_variant-variant.
CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'
EXPORTING
i_save = g_save
CHANGING
cs_variant = gx_variant.
g_variant = gx_variant.
ELSE.
CLEAR g_variant.
g_variant-report = ws_repid.
ENDIF.
ENDFORM. " GET_EXIST_VARIANT
*& Form alv_display *
This subroutine is to display the out put in ALV. *
FORM alv_display .
Local data
DATA: y_x LIKE boole VALUE 'X'.
DATA: lh_index LIKE lf_fieldcat-col_pos.
For variant
DATA: ws_repid LIKE sy-repid,
g_save TYPE c VALUE 'A',
g_exit TYPE c,
g_variant LIKE disvariant,
gx_variant LIKE disvariant.
For 1st field.( RPT_LOC )
CLEAR lf_fieldcat.
lf_fieldcat-fieldname = 'RPT_LOC'.
lf_fieldcat-tabname = 'GT_ZGXMIT_L'.
lf_fieldcat-ref_tabname = 'ZGXMIT'.
lf_fieldcat-ref_fieldname = 'RPT_LOC'.
lh_index = lh_index + 1.
lf_fieldcat-col_pos = lh_index.
lf_fieldcat-key = y_x.
lf_fieldcat-no_sum = y_x.
APPEND lf_fieldcat TO lt_fieldcat.
For 2nd field.( BAL_XMIT )
CLEAR lf_fieldcat.
lf_fieldcat-fieldname = 'BAL_XMIT'.
lf_fieldcat-tabname = 'GT_ZGXMIT_L'.
lf_fieldcat-ref_tabname = 'ZGXMIT'.
lf_fieldcat-ref_fieldname = 'BAL_XMIT'.
lh_index = lh_index + 1.
lf_fieldcat-col_pos = lh_index.
lf_fieldcat-key = y_x.
lf_fieldcat-no_sum = y_x.
APPEND lf_fieldcat TO lt_fieldcat.
4,5,....fields appening
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = ws_repid
I_CALLBACK_PF_STATUS_SET = ' '
i_callback_user_command = 'USER_COMMAND'
I_CALLBACK_TOP_OF_PAGE = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE =
I_GRID_SETTINGS =
IS_LAYOUT = v_alv_layout
it_fieldcat = lt_fieldcat
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
i_save = 'A'
IS_VARIANT =
it_events = events[]
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
TABLES
t_outtab = gt_zgxmit_l
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " alv_displayHello SAm,
U have to set like DATA: IT_VARIANT LIKE DISVARIANT,
G_S_SORT LIKE LINE OF IT_SORT.
DATA : G_R_DISP_VARIANT TYPE DISVARIANT.
SORT G_T_OUTTAB BY PSPID POSID.
CLEAR: G_R_DISP_VARIANT.
For storing the variant layout
IT_VARIANT-REPORT = SY-REPID.
IF NOT P_VARIAN IS INITIAL.
G_R_DISP_VARIANT-VARIANT = P_VARIAN.
ELSE.
IT_VARIANT-VARIANT = '/Z48M'.
ENDIF.
CLEAR G_T_OUTTAB.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = IT_VARIANT-REPORT
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
IT_FIELDCAT = IT_FIELDCAT
I_SAVE = 'A'
IS_VARIANT = IT_VARIANT
IS_LAYOUT = IT_LAYOUT
IT_SORT = IT_SORT[]
TABLES
T_OUTTAB = G_T_OUTTAB
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
If u want F4 help in the selection screen then do like this.
SELECTION-SCREEN BEGIN OF BLOCK VARIANT WITH FRAME TITLE TEXT-013.
PARAMETERS: P_VARIAN LIKE DISVARIANT-VARIANT DEFAULT '/STANDARD'.
SELECTION-SCREEN END OF BLOCK VARIANT.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_VARIAN.
PERFORM SHOW_EXISTING_DISPLAY_VARIANTS.
FORM SHOW_EXISTING_DISPLAY_VARIANTS.
DATA: G_R_DISP_VARIANT TYPE DISVARIANT.
G_R_DISP_VARIANT-REPORT = SY-REPID.
CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
EXPORTING
IS_VARIANT = G_R_DISP_VARIANT
I_SAVE = 'A'
IMPORTING
ES_VARIANT = G_R_DISP_VARIANT
EXCEPTIONS
NOT_FOUND = 1
PROGRAM_ERROR = 2
OTHERS = 3.
IF SY-SUBRC = 0.
P_VARIAN = G_R_DISP_VARIANT-VARIANT.
ENDIF.
ENDFORM. " SHOW_EXISTING_DISPLAY_VARIANTS
If useful reward.
Vasanth -
How to get default color of a selected row in a JLIst
I have a JList that I am changing the font color for based on a certian situation so I created my own MyCellRenderer to do this. However, when I select an item in the list the row is no longer highlighted. I used the isSelected method to determine if a row was selected and then change the background color of that row. However, I would like the color to be the default color that you get when you select a row in a default JList. I can't seem to figure out how to get that color. How do I obtain what that color is? I found an example where you can get the default color for the background of a button and use that color so I would guess it is something similar to that. My code is below so I hope someone can tell me how to get that color that I want.
Thanks...Chris
class MyCellRenderer extends JLabel implements ListCellRenderer {
public MyCellRenderer() {
setOpaque(true);
public Component getListCellRendererComponent(
JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
int index1 = value.toString().indexOf("-");
String errors = value.toString().substring(index1 + 1, index1 + 6).trim();
int numErrors = Integer.parseInt(errors);
if (numErrors > 0)
setForeground(Color.red);
setBackground(Color.white);
else
setBackground(Color.white);
setForeground(Color.black);
if(isSelected)
//ColorUIResource col = (ColorUIResource)UIManager.getDefaults().get("JButton.background");
ColorUIResource col = (ColorUIResource)UIManager.getDefaults().get("Button.background");
setBackground(col);
setText(value.toString());
return this;
}Swing related questions should be posted in the Swing forum.
I would like the color to be the default color that you get when you select a row in a default JList. I can't seem to figure out how to get that colorlist.getSelectionBackground(); -
URGENT: how to get the database error message into application?
Hi, pls give some idea:
For example, the database is MS Access. When insertion failed, the getMessage() method of SQLException will print "General error", while the log file created by ODBC will be "[MICROSOFT][ODBC DRIVER]column ID no found in student table"(...just a example).
So, how to get this message in our application?instead of using the getMessage method, have you tried something like this:
try {
} catch (Throwable t1) {
System.out.println(t1.toString());
}If that still doesn't work, you can always redirect the log entries into a textarea but then everything that appears in the log file will be redirected!
;o)
V.V. -
How to get the information like IP address,Host name of connected clients v
Hi Every one,
I want to get the information like (IP Address,Hostname,Active sessions , Database Server .etc) of the connected clients
via V$Views(ORACLE).
And then I like to load these infromation into a table Client_Table.
Could some one give me suggestion that which V$ views/method I use in order to get the above information and then
how to load these information into a table Client_table?
Your suggestions will be highly appreciated.
With Regards
BILALYou could use a LOGON TRIGGER so every session insert its own environment into your client_info table.
You could use the following view and choose whatever attribute you need:
create or replace view my_userenv (
AUDITED_CURSORID ,
AUTHENTICATION_DATA ,
AUTHENTICATION_TYPE ,
BG_JOB_ID ,
CLIENT_IDENTIFIER ,
CLIENT_INFO ,
CURRENT_SCHEMA ,
CURRENT_SCHEMAID ,
CURRENT_SQL ,
CURRENT_USER ,
CURRENT_USERID ,
DB_DOMAIN ,
DB_NAME ,
ENTRYID ,
EXTERNAL_NAME ,
FG_JOB_ID ,
GLOBAL_CONTEXT_MEMORY ,
HOST ,
INSTANCE ,
IP_ADDRESS ,
ISDBA ,
LANG ,
LANGUAGE ,
NETWORK_PROTOCOL ,
NLS_CALENDAR ,
NLS_CURRENCY ,
NLS_DATE_FORMAT ,
NLS_DATE_LANGUAGE ,
NLS_SORT ,
NLS_TERRITORY ,
OS_USER ,
PROXY_USER ,
PROXY_USERID ,
SESSION_USER ,
SESSION_USERID ,
SESSIONID ,
TERMINAL
) AS SELECT
SYS_CONTEXT ('USERENV', 'AUDITED_CURSORID') ,
SYS_CONTEXT ('USERENV', 'AUTHENTICATION_DATA') ,
SYS_CONTEXT ('USERENV', 'AUTHENTICATION_TYPE') ,
SYS_CONTEXT ('USERENV', 'BG_JOB_ID') ,
SYS_CONTEXT ('USERENV', 'CLIENT_IDENTIFIER') ,
SYS_CONTEXT ('USERENV', 'CLIENT_INFO') ,
SYS_CONTEXT ('USERENV', 'CURRENT_SCHEMA') ,
SYS_CONTEXT ('USERENV', 'CURRENT_SCHEMAID') ,
SYS_CONTEXT ('USERENV', 'CURRENT_SQL') ,
SYS_CONTEXT ('USERENV', 'CURRENT_USER') ,
SYS_CONTEXT ('USERENV', 'CURRENT_USERID') ,
SYS_CONTEXT ('USERENV', 'DB_DOMAIN') ,
SYS_CONTEXT ('USERENV', 'DB_NAME') ,
SYS_CONTEXT ('USERENV', 'ENTRYID') ,
SYS_CONTEXT ('USERENV', 'EXTERNAL_NAME') ,
SYS_CONTEXT ('USERENV', 'FG_JOB_ID') ,
SYS_CONTEXT ('USERENV', 'GLOBAL_CONTEXT_MEMORY') ,
SYS_CONTEXT ('USERENV', 'HOST') ,
SYS_CONTEXT ('USERENV', 'INSTANCE') ,
SYS_CONTEXT ('USERENV', 'IP_ADDRESS') ,
SYS_CONTEXT ('USERENV', 'ISDBA') ,
SYS_CONTEXT ('USERENV', 'LANG') ,
SYS_CONTEXT ('USERENV', 'LANGUAGE') ,
SYS_CONTEXT ('USERENV', 'NETWORK_PROTOCOL') ,
SYS_CONTEXT ('USERENV', 'NLS_CALENDAR') ,
SYS_CONTEXT ('USERENV', 'NLS_CURRENCY') ,
SYS_CONTEXT ('USERENV', 'NLS_DATE_FORMAT') ,
SYS_CONTEXT ('USERENV', 'NLS_DATE_LANGUAGE') ,
SYS_CONTEXT ('USERENV', 'NLS_SORT') ,
SYS_CONTEXT ('USERENV', 'NLS_TERRITORY') ,
SYS_CONTEXT ('USERENV', 'OS_USER') ,
SYS_CONTEXT ('USERENV', 'PROXY_USER') ,
SYS_CONTEXT ('USERENV', 'PROXY_USERID') ,
SYS_CONTEXT ('USERENV', 'SESSION_USER') ,
SYS_CONTEXT ('USERENV', 'SESSION_USERID') ,
SYS_CONTEXT ('USERENV', 'SESSIONID') ,
SYS_CONTEXT ('USERENV', 'TERMINAL')
from dual;
Maybe you are looking for
-
Iphoto not working after updating to Maverick
iPhoto says it cannot work with this operating system npw that I have installed Maverick. What do I do?
-
How to kill process/Actavity in SAP ?
How to kill process/Actavity in SAP ?
-
please can some one help me to restore my photos from my thumbnails due to my son deleting my photo file where i used to keep them
-
I have noticed for some reason when I click on a video file regardless of the format, the preview doesn't show, the rotating clock shows non-stop and never shows the preview of the file. Has anyone experienced this and is there a solution for this. t
-
Mirroring does not appear on AirPlay menu on ipad
The mirroring function does not show up on the airplay menu when I try to use it. Ipad3 and AppleTV.