SQL Inseting a Set Of Data To Run SQL Queries and Produce a Data Table

Hello,
I am an absolute newbie to SQL.
I have purchased the book "Oracle 10g The Complete Reference" by Kevin Loney.
I have read through the introductory chapters regarding relational databases and am attempting to copy and paste the following data and run an SQL search from the preset data.
However when I attempt to start my database and enter the data by using copy and paste into the following:
C:\Windows\system32 - "Cut Copy & Paste" rem **************** onwards
I receive the following message: drop table Newspaper;
'drop' is not recognised as an external or internal command, operable programme or batch file.
Any idea how one would overcome this initial proble?
Many thanks for any solutions to this problem.
rem *******************
rem The NEWSPAPER Table
rem *******************
drop table NEWSPAPER;
create table NEWSPAPER (
Feature VARCHAR2(15) not null,
Section CHAR(1),
Page NUMBER
insert into NEWSPAPER values ('National News', 'A', 1);
insert into NEWSPAPER values ('Sports', 'D', 1);
insert into NEWSPAPER values ('Editorials', 'A', 12);
insert into NEWSPAPER values ('Business', 'E', 1);
insert into NEWSPAPER values ('Weather', 'C', 2);
insert into NEWSPAPER values ('Television', 'B', 7);
insert into NEWSPAPER values ('Births', 'F', 7);
insert into NEWSPAPER values ('Classified', 'F', 8);
insert into NEWSPAPER values ('Modern Life', 'B', 1);
insert into NEWSPAPER values ('Comics', 'C', 4);
insert into NEWSPAPER values ('Movies', 'B', 4);
insert into NEWSPAPER values ('Bridge', 'B', 2);
insert into NEWSPAPER values ('Obituaries', 'F', 6);
insert into NEWSPAPER values ('Doctor Is In', 'F', 6);
rem *******************
rem The NEWSPAPER Table
rem *******************
drop table NEWSPAPER;
create table NEWSPAPER (
Feature VARCHAR2(15) not null,
Section CHAR(1),
Page NUMBER
insert into NEWSPAPER values ('National News', 'A', 1);
insert into NEWSPAPER values ('Sports', 'D', 1);
insert into NEWSPAPER values ('Editorials', 'A', 12);
insert into NEWSPAPER values ('Business', 'E', 1);
insert into NEWSPAPER values ('Weather', 'C', 2);
insert into NEWSPAPER values ('Television', 'B', 7);
insert into NEWSPAPER values ('Births', 'F', 7);
insert into NEWSPAPER values ('Classified', 'F', 8);
insert into NEWSPAPER values ('Modern Life', 'B', 1);
insert into NEWSPAPER values ('Comics', 'C', 4);
insert into NEWSPAPER values ('Movies', 'B', 4);
insert into NEWSPAPER values ('Bridge', 'B', 2);
insert into NEWSPAPER values ('Obituaries', 'F', 6);
insert into NEWSPAPER values ('Doctor Is In', 'F', 6);

You need to be in SQL*Plus logged in as a user.
This page which I created for my Oracle students may be of some help:
http://www.morganslibrary.org/reference/setup.html
But to logon using "/ as sysdba" you must be in SQL*Plus (sqlplus.exe).

Similar Messages

  • My iPhone 5s on ios 8.1.2 is stuck at Apple logo or recovery mode.. To fix this issue, i need to update it to ios 8.2 through itunes.. I want to ask that my data i.e. Photos and other personal data would be removed after updating it or not..?

    My iPhone 5s on ios 8.1.2 is stuck at Apple logo or recovery mode.. To fix this issue, i need to update it to ios 8.2 through itunes.. I want to ask that my data i.e. Photos and other personal data would be removed after updating it or not..?
    if yes then how can i save my data or get out of recovery mode.. Is there any safe mode or something like that on which i could access my data..
    P.S. I have not taken any backup of my iPhone on itunes..
    Please help me sort out this issue..

    Recovery mode doesn't mean that all your data is already lost. You only lose your data if you restore it.
    When you plug the phone is into iTunes hold down the home button. iTunes may then give you the option JUST to update the software first. This should not get rid of any data.
    However, if iTunes is only giving you the option to RESTORE and update, then you will lose your data I'm afraid.
    Hope that helps!

  • HT201269 Can i set up a new iphone 5 on my mac running 10.5 and transfer my data to the new phone

    Can i set up a new iphone 5 on my mac running version 5.0.6 and transfer my data to the new phone from my iphone 3

    No, you need 10.6.8 for an iPhone 5.
    You can purchase Snow Leopard by contacting Customer Service: Contacting Apple for support and service - this includes international calling numbers. The price is $19.99 plus tax. You will receive physical media - DVD - by mail.
    After you install Snow Leopard you will have to download and install the Mac OS X 10.6.8 Update Combo v1.1 to update Snow Leopard to 10.6.8 and give you access to the App Store.
    Snow Leopard General requirements
      1. Mac computer with an Intel processor
      2. 1GB of memory
      3. 5GB of available disk space
      4. DVD drive for installation
      5. Some features require a compatible Internet service provider; fees may apply.
      6. Some features require Apple’s MobileMe service; fees and terms apply.

  • I can't sync/back up iPhone data to my computer b/c iPhone screen is shattered and i cant unlock it to enter in my passcode. How can I sync my broken iPhone with my computer and back up my data so I can sync and transfer the data to my replacement iPhone?

    I can't sync my iPhone and back up my data with my computer because iTunes says to enter the passcode into my iPhone to unlock it, but I am unable to unlock and enter in my passcode on my iPhone because the screen is shattered. I have my replacement iPhone with me and I'm not going to activate it until I can sync/get the data from my broken iPhone. I have the envelope to send my broken iPhone back to the Verizon store or whatever so that's not a problem. I just can't sync my old iPhone with my computer.
    Thanks.

    No I haven't synced my iPhone with the computer I'm currently using. The computer that I normally sync my iPhone with is being repaired.
    I read a nearly identical question to mine (in which you answered) and I found my the answer. Thanks!
    Now I have a few more questions: If I mail my broken iPhone to Asurion, will I be able to get my data off of my iPhone once Asurion has it? And what will happen to my old iPhone and the data on it if I activate my replacement iPhone? Will my broken iPhone just become de-activated and will the data be erased or lost or something? Could I still sync it (with the computer ir originally synced with) and back up the data?
    Thanks.

  • DTP loading to master data is running long due to lock on SID table

    Hi All,
    We have DTP loading directly from infoobject to master data infobject. DTP usually takes less than 30min to update but at times its observed the DTP runs for hours to update. No dump was found on ST22. and no locks on sm12 apart from this DTP. On analysing the log in sm37, we found exclusive locks on the SID tables. 
    18.03.2014 02:06:53 All records forwarded                                                                             RSM2          730
    18.03.2014 02:22:32 EXTRACTION OF DATAPACKAGE 000014                                                                  RSAR          051
    18.03.2014 02:22:33 All records forwarded                                                                             RSM2          730
    18.03.2014 02:38:36 EXTRACTION OF DATAPACKAGE 000015                                                                  RSAR          051
    18.03.2014 02:38:37 All records forwarded                                                                             RSM2          730
    18.03.2014 02:55:25 EXTRACTION OF DATAPACKAGE 000016                                                                  RSAR          051
    18.03.2014 02:55:25 All records forwarded                                                                             RSM2          730
    18.03.2014 03:13:56 SQL: 18.03.2014 03:13:56 ALEREMOTE                                                                DBMAN         099
    18.03.2014 03:13:56 TRUNCATE TABLE "/BI0/0600000066"                                                                  DBMAN         099
    18.03.2014 03:13:56 SQL-END: 18.03.2014 03:13:56 00:00:00                                                             DBMAN         099
    18.03.2014 03:13:56 SQL: 18.03.2014 03:13:56 ALEREMOTE                                                                DBMAN         099
    18.03.2014 03:13:56  LOCK TABLE "/BI0/0600000066" IN EXCLUSIVE MODE                                                   DBMAN         099
    18.03.2014 03:13:56 NOWAI                                                                                             DBMAN         099
    18.03.2014 03:13:56 SQL-END: 18.03.2014 03:13:56 00:00:00                                                             DBMAN         099
    18.03.2014 03:13:58 EXTRACTION OF DATAPACKAGE 000017                                                                  RSAR          051
    18.03.2014 03:13:59 All records forwarded                                                                             RSM2          730
    18.03.2014 03:34:24 EXTRACTION OF DATAPACKAGE 000018                                                                  RSAR          051
    18.03.2014 03:34:25 All records forwarded                                                                             RSM2          730
    18.03.2014 03:56:03 EXTRACTION OF DATAPACKAGE 000019                                                                  RSAR          051
    18.03.2014 03:56:03 All records forwarded                                                                             RSM2          730
    18.03.2014 04:19:55 EXTRACTION OF DATAPACKAGE 000020                                                                  RSAR          051
    18.03.2014 04:19:56 All records forwarded                                                                             RSM2          730
    18.03.2014 04:44:07 SQL: 18.03.2014 04:44:07 ALEREMOTE                                                                DBMAN         099
    18.03.2014 04:44:07 TRUNCATE TABLE "/BI0/0600000068"                                                                  DBMAN         099
    18.03.2014 04:44:09 SQL-END: 18.03.2014 04:44:09 00:00:02                                                             DBMAN         099
    18.03.2014 04:44:09 SQL: 18.03.2014 04:44:09 ALEREMOTE                                                                DBMAN         099
    18.03.2014 04:44:09  LOCK TABLE "/BI0/0600000068" IN EXCLUSIVE MODE                                                   DBMAN         099
    18.03.2014 04:44:09 NOWAI                                                                                             DBMAN         099
    Is the lock on the SID table reason for the delay?? if so how to avoid this delay?
    if not, What are the other possibilties to avoid this issue ??
    Thanks in advance.

    Hello Yogesh,
    priority of the Job is 'A' . Is this related to lock on SID table as when i observe system logs for successful runs i don see the lock on SID table.
    please refer the below log for successful run.
    19.03.2014 07:16:21 EXTRACTION OF DATAPACKAGE 000051
    19.03.2014 07:16:22 All records forwarded
    19.03.2014 07:16:34 EXTRACTION OF DATAPACKAGE 000052
    19.03.2014 07:16:34 All records forwarded
    19.03.2014 07:16:47 EXTRACTION OF DATAPACKAGE 000053
    19.03.2014 07:16:48 All records forwarded
    19.03.2014 07:17:02 EXTRACTION OF DATAPACKAGE 000054
    19.03.2014 07:17:03 All records forwarded
    19.03.2014 07:17:17 EXTRACTION OF DATAPACKAGE 000055
    19.03.2014 07:17:17 All records forwarded
    19.03.2014 07:17:31 EXTRACTION OF DATAPACKAGE 000056
    19.03.2014 07:17:32 All records forwarded
    19.03.2014 07:17:45 EXTRACTION OF DATAPACKAGE 000057
    19.03.2014 07:17:45 All records forwarded
    19.03.2014 07:17:58 EXTRACTION OF DATAPACKAGE 000058
    19.03.2014 07:17:59 All records forwarded
    19.03.2014 07:18:11 EXTRACTION OF DATAPACKAGE 000059
    19.03.2014 07:18:11 All records forwarded
    19.03.2014 07:18:24 EXTRACTION OF DATAPACKAGE 000060
    19.03.2014 07:18:24 All records forwarded
    19.03.2014 07:18:37 EXTRACTION OF DATAPACKAGE 000061
    19.03.2014 07:18:37 All records forwarded
    19.03.2014 07:18:50 EXTRACTION OF DATAPACKAGE 000062
    19.03.2014 07:18:51 All records forwarded
    19.03.2014 07:19:04 EXTRACTION OF DATAPACKAGE 000063
    19.03.2014 07:19:06 All records forwarded
    19.03.2014 07:19:19 EXTRACTION OF DATAPACKAGE 000064
    19.03.2014 07:19:20 All records forwarded
    19.03.2014 07:19:32 EXTRACTION OF DATAPACKAGE 000065
    19.03.2014 07:19:33 All records forwarded
    19.03.2014 07:19:47 EXTRACTION OF DATAPACKAGE 000066
    19.03.2014 07:19:47 All records forwarded
    19.03.2014 07:19:53 EXTRACTION OF DATAPACKAGE 000067
    19.03.2014 07:19:53 Start of Serial Processing Processing is Executed in the Same LUW
    19.03.2014 07:19:53 Processing started for batch ID DTPR_1739894_1 process 3
    19.03.2014 07:19:53 Processing completed for batch ID DTPR_1739894_1 process         3
    19.03.2014 07:19:53 End of Serial Processing Executed in the Same LUW
    19.03.2014 07:19:54 Technical status 'Green' (user ALEREMOTE)
    19.03.2014 07:19:57 Set overall status to 'Green' (user ALEREMOTE)
    19.03.2014 07:20:41 Processing completed for batch ID DTPR_1739894_1 process         2
    19.03.2014 07:20:41 Job finished
    Thanks

  • How compare data from 2 different ODS and then load data to Cube

    Hello, everybody,
    I  have 2 ODS ZINFO_1 and  ZINFO_2. These ODS contain data:
    ZINFO_1
    document number; item number; amount
    10004;1;200
    10004;3;330
    10004;4;650
    10005;1;110
    ZINFO_2
    document number; item number; amount
    10004;1;700
    10004;4;430
    After comparison ODS ZINFO_1 with ZINFO_2, into InfoCube ZICINFO_3 I have get data from ODS ZINFO_1 that document number and item number is not equal to ZINFO_2 ODS’s document number and item number.
    Data in InfoCube ZICINFO_3 should be:
    ZICINFO_3
    document number; item number; amount
    10004;3;330
    10005;1;110
    Could you give me suggestions how do this?
    Thanks in advance.
    Best Regards,
    Arunas Stonys

    Most of the time you write a routine in the update rule and you want to read a table or ODS to look up for that particular field you are intersted in, if you are doing reading the table or DSO in the update rule, it will execute for each and every record, but you do reading the table in the start routine which will get executed for each data package and in your update rule, you read the internal table to put your logic.     
    The Start rouline can be as follows
    Please do modify this routline for ur requirement
    Another situation where I am loading DATA from DSO 1 to DSO 2 and looking for Records from DSO3 and DSO4.
    DSO1---->DSO2(looking up data from DSO3 and DSO4 to update to DSO2).
    NOw in the start routine I define 2 internal tables for DSO3 and DSO4 having sturctures like DSO3 and DSO4(with only useful fields and key fields,becoz u may not need all the fields from dSO3 and DSO4 afterall)
    Now I am loading data in those interanal tables by using SELECT Query in START routine.
    Now In various transformatino rule for populating different target fields I am reading those internal tables(itab_dso3 and itab_dso4) putting the read and where condition like
    Code for field Z(of DSO2)
    Read fieldX fieldY fields Z from itab_dso3 into wa_dso3 with key fieldsX=source_fields-fieldsx fieldY=source_fields-fieldsy.
    if sy-subrc eq 0.
    result = wa_dso3-fieldz
    endif.
    (here i am reading the itab loaded in start routine and reading it with the help of two source fields(dso1 fields fieldX and fieldY ) and comparing them with DSO3 .If there is a match then I am udpating fieldz of DSO2 with fieldZ from DSO3.)
    Please do assign points if it is needful.
    Thanks in advance.
    Best WIshes,
    VVenkat.

  • I want to store data in fifo in host and read this data in target

    i have implemented aconvolutional encoder using fifo but fifo doesn’t read data in target

    Spoiler (Highlight to read)
    Attachments:
    host.PNG ‏13 KB
    target.PNG ‏25 KB

  • Using forms6i and reading data from MS SQL server 7

    Hi!
    I have been given a new task to connect to Microsoft SQL SERVER 7 with Oracle 6/6i development with ODBC and extract specific data.
    I am realy stuck with this I hope some one will help me with this as soon as possible.
    thanka

    I did a similar thing with developer 2000 (Form 4.5) and SQL server6.5.
    There are lots of things involved and there will be issues that need to be resolved in you application but you can take one thing at a time and you should be able to do it.
    -First make sure that your SQL server is up and running.
    -Then make a client machine that connects to SQL server.
    -On the client install your Form6 or 6i.
    -Install ODBC manager on your Client Machine.
    -Get the Oracle ODBC driver for SQL server.
    -There is a document available with developer 2000 for open data source. It should be with your Form6/6i documentation. It has got a section for connection with SQL server.
    Start with this and where ever you get stuck ask away question on the forum.
    Hope this help

  • Best Practice to fetch SQL Server data and Insert into Oracle Tables

    Hello,
    I want to read sqlserver data everry half an hour and write into oracle tables ( in two different databases). What is the best practice for doing this?
    We do not have any database dblinks from oracle to sqlserver and vice versa.
    Any help is highly appreciable?
    Thanks

    Well, that's easy:
    use a TimerTask to do the following every half an hour:
    - open a connection to sql server
    - open two connections to the oracle databases
    - for each row you read from the sql server, do the inserts into the oracle databases
    - commit
    - close all connections

  • How to extract data from multiple flat files to load into corresponding tables in SQL Server 2008 R2 ?

    Hi,
              I have to implement the following scenario in SSIS but don't know how to do since I never worked with SSIS before. Please help me.
              I have 20 different text files in a single folder and 20 different tables corresponding to each text file in SQL Server 2008 R2 Database. I need to extract the data from each text file and
    load the data into corresponding table in Sql Server Database. Please guide me in how many ways I can do this and which is the best way to implement this job.  Actually I have to automate this job. Few files are in same format(with same column names
    and datatypes) where others are not.
    1. Do I need to create 20 different projects ?
                   or
        Can I implement this in only one project by having 20 packages?
                 or
        Can I do this in one project with only one package?
    Thanks in advance.

    As I said I don't know how to use object data type, I just given a shot as below. I know the following code has errors can you please correct it for me.
    Public
    Sub Main()
    ' Add your code here 
    Dim f1
    As FileStream
    Dim s1
    As StreamReader
    Dim date1
    As
    Object
    Dim rline
    As
    String
    Dim Filelist(1)
    As
    String
    Dim FileName
    As
    String
    Dim i
    As
    Integer
    i = 1
    date1 =
    Filelist(0) =
    "XYZ"
    Filelist(1) =
    "123"
    For
    Each FileName
    In Filelist
    f1 = File.OpenRead(FileName)
    s1 = File.OpenText(FileName)
    rline = s1.ReadLine
    While
    Not rline
    Is
    Nothing
    If Left(rline, 4) =
    "DATE"
    Then
    date1 (i)= Mid(rline, 7, 8)
     i = i + 1
    Exit
    While
    End
    If
    rline = s1.ReadLine
    End
    While
    Next
    Dts.Variables(
    "date").Value = date1(1)
    Dts.Variables(
    "date1").Value = date1(2)
    Dts.TaskResult = ScriptResults.Success
    End
    Sub

  • Reading/Writing Data from a SQL Database

    Hi,
    I have a data structure called 'Quote' which contains a number of different variables and controls ranging from text boxes, check boxes and radio buttons, i need to be able to read and write this from a database.
    First I think a description of my overall project is needed:
    Project Description
    I have been given a brief that basically says: i have to create a programmed solution in VB to solve a problem. This problem can be anything we like, and I personally have chosen to create a program that manages quotes for building Log Cabins (this is very contrived and far from anything someone would do in the real world).
    My solution will allow a generic user to create a quote (using a form with controls such as text boxes, check boxes, radio buttons) , and then save this to file. These users may then wish to load/edit this quote at a later date, from another form.
    Whilst completing this project, i'll only have up to about 5 records (quotes) within the system, so i dont need the ability to store hundreds of records. And each record will be relatively short, with only about 10-15 data items within the data structure.
    Also the Admin (or business owner in this case) need to be able to view all saved quotes in a presentable format, and edit them if needs be, from within this same program.
    This solution does not need to be absolutely perfect and 100% efficiently coded, or have all the bells and whistles a real-world program would have. This is for an A level computing project by the way.
    So basically, i need to be able to read from the database (to populate a Data Grid (i imagine this is best way?)) and so Admin can access any quote and edit it (editing is not vital, but viewing/printing is. Maybe i should stop at just viewing any quote?). Also i need generic users to be able to fill in the Edit Quote form and then save this data into the database.
    And is a data structure really required for me to use a database?
    I've never used databases in VB before (but have used them elsewhere, mainly Access) and so am completely new to this. Any help will be much appreciated.
    Thanks

    this is just a dataset i created using the dataset designer.
    OK, so i have the dataset called "MyDataSet".
    I also have the following variables:
    Code Snippet
    Dim FloorSpace As Int32
    Dim NoOfBedrooms As Int32
    Dim NoOfBathrooms As Int32
    Dim EnSuites As Int32
    Dim LuxKitchen As Boolean
    Dim LuxCabin As Boolean
    Dim Flooring As Boolean
    Dim VoiceLighting As Boolean
    Dim SolarPanels As Boolean
    Dim IntegralSound As Boolean
    Dim WindowFrames As String
    Each of which relates directly to a column in the dataset (data type matches too).
    What i need to do now, is to save these variables as an additional record in MyDataSet. And then save MyDataSet to file, so it can be loaded again next time the program is run and more additional records added. (all files are local by the way).
    how would i go about this?

  • Creating Data Source to SQL Server 2008 in SharePoint Designer 2013

    Hello,
     I have been trying to create a Data Source connection to a SQL Server 2008 Database. I use a custom string and I choose the table to display and hit ok. When I try to click on the connection to edit it I get the following error.

    Hi Derek,
    According to your description, my understanding is that the error occurred when you edited the Data Source connected to SQL Server.
    How did you create the Data Source connected to SQL server using custom string?
    I recommend to connect to the database by saving the user name and password to see if the issue still occurs.
    More information are provided in the link below:
    http://office.microsoft.com/en-us/sharepoint-designer-help/add-a-database-as-a-data-source-HA010355745.aspx
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Free Oracle Tool to Simplify Commonly Run Dictionary Queries

    (orastat has a very good 'Hot Blocks' query)
    Hi,
    My co-workers and I at Agilent Technologies have developed a
    useful tool to simplify running common dictionary queries. It
    runs on UX and requires that you be the "oracle" user. You can
    download it from
    http://dbamon.com/orastat
    For example, if you wanted info about a certain table, you could
    query DBA_TABLE, DBA_INDEXES. With our tool "orastat", you would
    just run 'orastat -ti <OWNER>.<TABLE>. Example:
    2002/01/13-09:09:17 orastat | oraver=8.1.6 oraver3=8.1 sqlcmd=sv
    2002/01/13-09:09:17 orastat | ORACLE_SID=DBA ORACLE_HOME=/opt/oracle/product/8.1.6
    2002/01/13-09:09:17 orastat | Version=2.23 Host=bigdog Company=agilent
    2002/01/13-09:09:17 orastat | Table Info for DBAMON.EVENTS
    Table Data (from dba_tables)
    Tablespace: DBAMON
    RowCount: (Null) (From ANALYZE)
    LastAnalyzed: (Null) (From ANALYZE)
    Blocks: (Null) (From ANALYZE)
    InitialExtents: 20971520
    NextExtents: 8146944
    MinExtents: 1
    MaxExtents: 2147483645
    PercentIncr: 1
    BufferPool: DEFAULT
    Index Data (from dba_indexes and dba_ind_columns)
    Index: DBAMON.EVENTS_X1
    Tablespace: DBAMON
    LastAnalyzed: (Null) (From ANALYZE)
    LeafBlocks: (Null) (From ANALYZE)
    InitialExtents: 10485760
    NextExtents: 2764800
    MinExtents: 1
    MaxExtents: 2147483645
    PercentIncr: 1
    BufferPool: DEFAULT
    Index Column - Number: 1 Name: INSTANCE Length: 32 Descending: ASC
    Index: DBAMON.EVENTS_X2
    Tablespace: USERS
    LastAnalyzed: (Null) (From ANALYZE)
    LeafBlocks: (Null) (From ANALYZE)
    InitialExtents: 131072
    NextExtents: 983040
    MinExtents: 2
    MaxExtents: 2147483645
    PercentIncr: 1
    BufferPool: DEFAULT
    Index Column - Number: 1 Name: TS Length: 7 Descending: ASC
    Here is a list of all available orastat commands:
    2002/01/13-09:07:48 orastat | oraver=8.1.6 oraver3=8.1 sqlcmd=sv
    2002/01/13-09:07:48 orastat | ORACLE_SID=DBA ORACLE_HOME=/opt/oracle/product/8.1.6
    2002/01/13-09:07:48 orastat | Version=2.23 Host=bigdog Company=agilent
    orastat | Usage:
    -- View This Help File
    - Check for PMON Running, Show Oracle Version, Instance Status
    -ad List Archive Destinations (v)
    -al Show All Archived Logs
    -an Analyze Table COMPUTE STATISTICS - 'orastat -an TABLE-OWNER.TABLE-NAME'
    -ar Show Current DB Activity Rate
    -au Show DB Audit Status
    -az Show Current DB Activity Rate - Log to /opt/oracle/adm/cronlog/db_activity_rate_<SID>.txt
    -ba List Contents of dbamon.backup_age Table
    -bi List RMAN backup inventory -- ALL
    -bp List running RMAN backup sessions (if any)
    -br Backups: List all media written to since the last RMAN LVL0 backup
    -c Configuration: View init.ora File
    -ce Configuration: Edit 'vi' init.ora File
    -cf List Control Files
    -ck List Time of Last Checkpoint (from v$datafile_headers)
    -cp Configuration: View Contents of v$parameter
    -ct Coalesce TEMP tablespace
    -de List All Datafiles, Online Redo Logs and Control Files (For Destroying a DB)
    -df List Datafiles - Optional NOFSCHECK 2nd parm to prevent bdf'ing filesystem
    -dc List Datafiles in 'cp' commands to copy all datafiles elsewhere
    -ec Configuration: Edit 'vi' config.ora File
    -er Display contents of DBA_ERRORS
    -ex Select from plan_table
    -fs Free Space in Each Datafile
    -in List Indexes
    -iv List INVALID Objects
    -l List Archive Log Status
    -lf List Redo Log Files
    -li List Resource Limits (v$resource_limit)
    -lk Locks - Current TX (Non-Row) Locks
    -lh Lock Holders/Waiter
    -lo List Current Table Locks
    -ls Listener Status
    -lv List LVOL's / Usage
    -m View Last 20 Lines Of Alert Log
    -ma Cat entire Alert Log
    -mv 'vi' (read-only mode) Of Alert Log
    -op OPS: View V$PING - Lock Conversions
    -pi Performance: View Histogram of Datafile I/O
    -pd Performance: View Data Block Buffer Hit Ratio
    -pf Performance: View Total Cumulative Free List Waits
    -ph Performance: Hot Blocks - Block With Latch Sleeps
    -ps OPS (Parallel Server) Status
    -pw Performance: Show segment names for tables with buffer waits
    -ra List Rollback Segment Activity
    -rb List Rollback Segments
    -rc List And SHRINK All Rollback Segments
    -rd List And ALTER MAXEXTENTS UNLIMITED All Rollback Segments
    -ro List Roles
    -rh List REDO Logs - History
    -rl List REDO Logs - Files
    -rp RMAN Long Operation Progress
    -rs List REDO Logs - Status
    -sb Standby DB - Show log gaps
    -sc Sessions - By Session CPU Time
    -sd Sessions - Details - Sessions, Running SQL and Waits
    -se Sessions
    -sg List SGA Usage
    -sl SELECT * from table - name supplied as 2nd parameter
    -sn SNAPSHOT - Run systemstate trace 3 times (for Oracle diagnostics)
    -so List sorts by user
    -sp List StatsPack Snapshot Data
    -sq Run SQL - Pass SQL as argument in single quotes
    -sr View Running SQL - 'orastat -sr SESSION_NUMBER'
    -ss List default storage clause for all TABLESPACES
    -st System Statistics
    -su List Active Sessions - From Users Table (Under Construction)
    -sw Session Wait Statistics
    -ta List All Tables - From DBA_SEGMENTS (Name, TS, Size, Extents, Maxextents)
    -tb Count Tables - By Schema
    -tc Create Backup Schedule Template from List Of Tablespaces
    -td describe table - name of table supplied as 2nd parameter
    -ti Table Info - 'orastat -ti TABLE-OWNER.TABLE-NAME'
    -ts List Tablespaces
    -tt List 8i+ TEMPORARY Locally Managed Tablespaces
    -tu Temp space usage by user
    -tz List Tables - From DBA_TABLES
    -ub List the byte count of data, by User
    -ud List Users With ORADBA
    -ug List Users Table Grants (Much Output) - 2nd Parm is optional grantee name
    -us List All Users
    -ut List the byte count of data, by User and Tablespace
    -v List Oracle version and whether it is 32-bit or 64-bit
    -vs List All Views
    -vw Count Views - By Schema
    -ws Wait stats - from v
    2002/01/13-09:09:18 orastat | Found 2 Indexes
    2002/01/13-09:10:45 orastat | oraver=8.1.6 oraver3=8.1 sqlcmd=sv
    2002/01/13-09:10:45 orastat | ORACLE_SID=DBA ORACLE_HOME=/opt/oracle/product/8.1.6
    2002/01/13-09:10:45 orastat | Version=2.23 Host=bigdog Company=agilent
    orastat | Rollback Segments Statistics
    RSSize : Current rollback segment size in bytes
    A Xn's : Number of current transactions using the rollback segment
    HWMSize : High Water Mark size in bytes
    Wraps : Cumulative # of times a X'n continues writing from one
    extents to another existing extent
    Avg Actv: Avg # of bytes in active extents in the rbs measured over time
    Name Extents Extends RSSize A Xn's Gets HWMSize Wraps Avg Actv Status Waits
    SYSTEM 2 0 118784 0 2093 118784 0 0 ONLINE 0
    R01 19 0 2719744 1 261027 2719744 505 143362 ONLINE 122
    R02 20 0 2863104 1 263385 2863104 517 144526 ONLINE 164
    R03 19 0 2719744 1 264369 2719744 517 143207 ONLINE 155
    R04 19 0 2719744 0 267518 2719744 530 156265 ONLINE 139

    If the application uses a single database session, you can also generate a SQLTrace file to analyse with tkprof by using either Oracle Enterprise Manager to turn on SQL Trace for the session, or use DBMS_MONITOR SESSION_TRACE_ENABLE(session_id, serial_num) - you then have to find the trace file on the datbaas eserver USER_DUMP_DEST and either read manually (the queries are easily visible) or use tkprof to analyze it Using Application Tracing Tools  Among other things tkprof can tell you the top resource consuming SQL statements.

  • Finish Date of Predecessor is the same as Start date of Successor

    Has anyone run into this situation where the finish date of the predecessor is the same as start date of successor? Also, an activity with 1 day duration has a start date of 8/15/13 and a finish date of 8/16/13. This boggles my mind. Help!
    Edited by: 1007706 on May 23, 2013 11:52 AM

    No I haven't seen either of these here, but perhaps this is influenced somehow by Time Zone settings?  Is this a schedule imported from other resource (P6?) or created in Unifier?
      from oracle knowledgebase:
    The Time Zone setting affects the date stamp that appears on the actions that you perform in Unifier, such as
    saving or uploading files, and also affects due dates for tasks that are assigned to you. Within an Audit Log the
    date and time stamp of each event reflect users’ current time zone as set in their User Preferences.
    For user-defined reports, the time zone shown is used for date fields in the report. The default time zone is
    defined when the report is designed. It can reflect the time zone from your user preferences or be fixed to a
    particular time zone, such as the project location or company headquarters.
    Time Zone can also come into play when you create a "bidder" account so that vendors can log into Unifier and
    submit bids. Set the Time Zone field to match that of the bid requestor’s (either your company’s time zone, or
    the zone from which the bid invitation is sent). If your bidders are in a different time zone from yours, this will
    protect them from mistakenly submitting bids after the bidding process is closed.
    Refer to the Unifier User Guide and Unifier Administration Guide for additional details.

  • How to remove and add plotted data?

    In my code below I would like to add two buttons and by clicking on a button("Remove") it will remove one by one plotted data,and plot it back by clicking on the button("Add") such as the examples:
    Full data plotted by running the class
    Now by a single click on a Remove button last data point disappear
    another click and again last data point disappear, and so on
    The inverse operation would be performed by clicking on "Add" button: each click will add back a data point
    import javafx.application.Application;
    import javafx.beans.property.SimpleDoubleProperty;
    import javafx.event.EventHandler; 
    import javafx.scene.chart.NumberAxis;
    import javafx.scene.chart.XYChart;
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.chart.LineChart;
    import javafx.scene.control.Button;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.BorderPane;
    public class XYMove extends Application {
    BorderPane pane;
    XYChart.Series series1 = new XYChart.Series();
    SimpleDoubleProperty rectinitX = new SimpleDoubleProperty();
    SimpleDoubleProperty rectX = new SimpleDoubleProperty();
    SimpleDoubleProperty rectY = new SimpleDoubleProperty();
    @Override
    public void start(Stage stage) {
    final NumberAxis xAxis = new NumberAxis(12, 20, 1);
    double max = 12;
    double min = 3;
    max *= (1+((double)3/100));
    min *= (1-((double)3/100));
    final NumberAxis yAxis = new NumberAxis(min, max, 1);
    xAxis.setAnimated(false);
    yAxis.setAnimated(false);
    yAxis.setTickLabelFormatter(new NumberAxis.DefaultFormatter(yAxis) {
        @Override
        public String toString(Number object) {
            return String.format("%2.0f", object);
    final LineChart<Number, Number> lineChart = new LineChart<Number, Number>(xAxis, yAxis);
    lineChart.setCreateSymbols(false);
    lineChart.setAlternativeRowFillVisible(false);
    lineChart.setAnimated(false);
    lineChart.setLegendVisible(false);
    series1.getData().add(new XYChart.Data(1, 3));
    series1.getData().add(new XYChart.Data(2, 8));
    series1.getData().add(new XYChart.Data(3, 6));
    series1.getData().add(new XYChart.Data(4, 7));
    series1.getData().add(new XYChart.Data(5, 5));
    series1.getData().add(new XYChart.Data(6, 6));
    series1.getData().add(new XYChart.Data(7, 4));
    series1.getData().add(new XYChart.Data(8, 7));
    series1.getData().add(new XYChart.Data(9, 6));
    series1.getData().add(new XYChart.Data(10, 7));
    series1.getData().add(new XYChart.Data(11, 6));
    series1.getData().add(new XYChart.Data(12, 7));
    series1.getData().add(new XYChart.Data(13, 6));
    series1.getData().add(new XYChart.Data(14, 12));
    series1.getData().add(new XYChart.Data(15, 10));
    series1.getData().add(new XYChart.Data(16, 11));
    series1.getData().add(new XYChart.Data(17, 9));
    series1.getData().add(new XYChart.Data(18, 10));
    pane = new BorderPane();
    pane.setCenter(lineChart);
    Scene scene = new Scene(pane, 800, 600);
    lineChart.getData().addAll(series1);
    stage.setScene(scene);        
    scene.setOnMouseClicked(mouseHandler);
    scene.setOnMouseDragged(mouseHandler);
    scene.setOnMouseEntered(mouseHandler);
    scene.setOnMouseExited(mouseHandler);
    scene.setOnMouseMoved(mouseHandler);
    scene.setOnMousePressed(mouseHandler);
    scene.setOnMouseReleased(mouseHandler);
    stage.show();
    EventHandler<MouseEvent> mouseHandler = new EventHandler<MouseEvent>() {
    @Override
    public void handle(MouseEvent mouseEvent) {
        if (mouseEvent.getEventType() == MouseEvent.MOUSE_PRESSED) {            
            rectinitX.set(mouseEvent.getX());
        else if (mouseEvent.getEventType() == MouseEvent.MOUSE_DRAGGED || mouseEvent.getEventType() == MouseEvent.MOUSE_MOVED) {
            LineChart<Number, Number> lineChart = (LineChart<Number, Number>) pane.getCenter();
            NumberAxis xAxis = (NumberAxis) lineChart.getXAxis();
            double Tgap = xAxis.getWidth()/(xAxis.getUpperBound() - xAxis.getLowerBound());
            double newXlower=xAxis.getLowerBound(), newXupper=xAxis.getUpperBound();            
            double Delta=0.3;
            if(mouseEvent.getEventType() == MouseEvent.MOUSE_DRAGGED){
            if(rectinitX.get() < mouseEvent.getX()&& newXlower >= 0){   
                newXlower=xAxis.getLowerBound()-Delta;
                newXupper=xAxis.getUpperBound()-Delta;
        else if(rectinitX.get() > mouseEvent.getX()&& newXupper <= 22){   
                newXlower=xAxis.getLowerBound()+Delta;
                newXupper=xAxis.getUpperBound()+Delta;
            xAxis.setLowerBound( newXlower );
            xAxis.setUpperBound( newXupper );                       
            rectinitX.set(mouseEvent.getX());                                
        public static void main(String[] args) {
            launch(args);
    }Thanks!

    I would use an ObservableList (probably backed by a LinkedList) of XYChart.Data to store the collection of "deleted" data points. Create the buttons as usual; your "Remove" button's event handler should remove the last element of the series and add it to the first element of the deleted items data points. The "Add" button should remove the first element of the deleted data points and add it to the end of the series. You can bind the "disable" property of the remove and add button to Bindings.isEmpty(series1.getData()) and Bindings.isEmpty(deletedDataPoints), respectively.
    Something like
    ObservableList<XYChart.Data<Number, Number>> deletedDataPoints = FXCollections.observableList(new LinkedList<XYChart.Data<Number, Number>>());
    removeButton.setOnAction(new EventHandler<ActionEvent>() {
      @Override
      public void handle(ActionEvent event) {
        deletedDataPoints.add(0, series1.getData().remove(series1.getData().size()-1));
    addButton.setOnAction(new EventHandler<ActionEvent>() {
      @Override
      public void handle(ActionEvent event) {
        series1.getData().add(deletedDataPoints.remove(0));
    removeButton.disableProperty().bind(Bindings.isEmpty(series1.getData()));
    addButton.disableProperty().bind(Bindings.isEmpty(deletedDataPoints));The other approach would be to use a separate List for all the data points, and keep an integer variable storing the number of data points displayed. Your "remove" button would decrement the number displayed, and your "add" button would increment the number displayed. Both would also call
    series1.getData().setAll(allDataPoints.sublist(0, numberOfDisplayedPoints));You might even be able to make the numberOfDisplayedPoints an IntegerProperty and bind the data property of the series to it in a nice way. This approach probably doesn't perform as well as the previous approach (using a stack of deleted points), because you are not directly giving the chart as much detailed information about what has changed.
    Both approaches get problematic (in the sense that you need to carefully define your application logic, and then implement it) if the underlying data has the potential to change.

Maybe you are looking for