Explain commands

hi,
1)wht is the effect on using following cmds:
alter system
alter session
alter database
how each one differ from each other.
2)when are the situation database shud be mounted.
3)how to identify db startup wth pfile or spfile.
4) what is the difference between initsid.ora & spfileinitsid.ora
plz giv me answer in a simple way.
i went thru the docs i am not able to get it.
so if pos explain the above wth simple example too.
thanks and regards
suresh

hi
1.alter database
Use the ALTER DATABASE statement to modify, maintain, or recover an existing database.
http://www.ss64.com/ora/database_a.html
2.alter system
Use the ALTER SYSTEM statement to dynamically alter your Oracle Database instance. The settings stay in effect as long as the database is mounted.
http://www.ss64.com/ora/system_a.html
http://www.adp-gmbh.ch/ora/sql/alter_system.html
3.alter session
Use the ALTER SESSION statement to set or modify any of the conditions or parameters that affect your connection to the database. The statement stays in effect until you disconnect from the database.
http://www.adp-gmbh.ch/ora/sql/alter_session.html
http://www.ss64.com/ora/session_a.html
4.how to identify db startup wth pfile or spfile.
sql>show parameter spfile
SQL> show parameter spfile;
NAME                                 TYPE        VALUE
spfile                               string      D:\ORACLE\PRODUCT\10.1.0\DB_2\
                                                 DATABASE\SPFILEORCL.ORAif above parameter show value then ur startup by spfile otherwise database using pfile.
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> create pfile from spfile;
File created.
SQL> startup pfile=d:\oracle\product\10.1.0\db_2\database\initorcl.ora
ORACLE instance started.
Total System Global Area  171966464 bytes
Fixed Size                   787988 bytes
Variable Size             145488364 bytes
Database Buffers           25165824 bytes
Redo Buffers                 524288 bytes
Database mounted.
Database opened.
SQL> show parameter spfile
NAME                                 TYPE        VALUE
spfile                               string
SQL>
6. what is the difference between initsid.ora & spfileinitsid.ora
initsid.ora file ----- text file
spfile file ------ binary file
for changes in spfile>>
1.alter system ... scope=spfile/both
2.first change in pfile then ///// create spfile ... from pfile /////
http://www.dba-oracle.com/concepts/pfile_spfile.htm
hope this helps.

Similar Messages

  • Convert table linked report into a Command version - Howto?

    How can I convert hundreds of reports from table linked into a Command version?
    One way to do is to take the SQL syntax off the report, add a Command with that Syntax and manually replace the database fields by the Command fields.
    I can not believe that is the right way to this. Is there no hidden (re-)mapping fields button or another undocumented feature?
    If this is the way to do it... when will there be a one-button-click solution. The underlaying data keeps the same, could not be that hard to build..?
    Without that basic functionality Crystal Reports is not option for us anymore.
    Backgroud: We do have hundreds of reports that are created by an ODBC (RDO) database (SQL Anywhere database), created by linking the tables and select the fields we like to use in the report. This works fine at least as we used the RDC method in our application. Because we are moving to .NET we could not use RDC anymore and have to use the .NET methods. However the .NET SDK is very limited. The only way to add more complex WHERE statements is to use the Command functionality of Crystal Reports.

    Hi Hans,
    Let me explain, Command Objects are sent directly to the DB server as is. CR does not alter the SQL at all. As you know in SQL there are minor differences between the various servers and the SQL syntax can vary from DB to DB. Because of this CR could not build in the logic to handle the vast number of potential mappings, and not jsut SQL types but also PC databases.
    To be able to map reports based on connections directly to the DB through a Command object the current versions of CR do not have the ability. Possibly the next version may have this feature though but we can't say for sure until it's released. Check our WEB site for new versions and there functionality.
    Next question about moving off of the RDC to .NET, you are correct. CR no longer allows you to modify the SQL statement directly. The RDC was actually supposed to stop you also but it did work.
    One possible solution is to use .NET and inProc RAS ( Report Application Server) and using record sets. Your app can get the SQL from the report, process the query and appending the info onto the WHERE clause as well as other filtering and then set the existing reports data source to the record set. As long as your data is less than 5000 rows then no performance issues, over 5K and you may start to see slow report processing. Depends on other info and report complexity etc.
    If this is an option for you please post your question to the Crystal .NET development forum. Also, you will need to use 12.x.2000.x versions of the CR .NET assemblies and not use the basic version 10.5 or 10.2 that comes with .NET 2008 and 2005.
    Thank you
    Don

  • Very slow dynamic sites

    Hello,
    We use a Dual 1.8 GHz PowerMac G5 Running OS X 10.4 Server as a file server, and I've set up a number of virtual hosts to test websites on.
    When I view normal HTML pages they load very quickly, but sites based on PHP and MySQL load really slowly. I've tried Wordpress sites, Joomla, sites and even PHPMyAdmin, and all take at least 8 seconds to load any new page, usually double that long.
    I'm using the default installs of PHP and MySQL, and wonder if they need to be upgraded (and if so, how?).
    The server is also running Filemaker Server, which I thought may be causing the problem, but shutting that down doesn't help.
    I'm new to servers and rather over my head, I've been looking for an answer for weeks with no luck. Hopefully I'm just missing something obvious.
    Hope someone can help!
    Steve

    There are many reasons why dynamic sites can be slow.
    The first thing to check would be whether it's always slow, or whether it's just slow to start up. Most systems employ some kind of caching to improve performance, but on startup the caches are empty and all the data needs to be loaded from the database. This can take some time, but once loaded the performance should improve.
    Since you're using some major packages we can assume for now it's not a code-level problem (which is the commonest cause of performance issues), so the next thing to check is the database itself - has MySQL got sufficient memory to load its tables? Are the database tables correctly indexed?
    MySQL's slow query log should give you some idea of queries that are taking a long time to execute and the EXPLAIN command can give some useful clues as to bottlenecks in the database.

  • Autoloader checkbox in dbmgui

    In dbmcli once I ran a explain command to tell in detail about options of u201Cmedium_putu201D command then for autoloader option it says u2013 This option has an effect only on Microsoft windows.
    So does it mean if autoloader tape device is connected to windows based m/c then auto changing tapes functionality will work ?
    AND if autoloader tape device is connected to Linux based m/c then auto changing tapes functionality  will not work ?

    Hi Markus ,
    in my system if I run mtx to change next tape from slot 1 to default drive 0 then it says this
    mtx -f /dev/st0 next 0
    mtx: Request Sense: Long Report=yes
    mtx: Request Sense: Valid Residual=no
    mtx: Request Sense: Error Code=70 (Current)
    mtx: Request Sense: Sense Key=Illegal Request
    mtx: Request Sense: FileMark=no
    mtx: Request Sense: EOM=no
    mtx: Request Sense: ILI=no
    mtx: Request Sense: Additional Sense Code = 20
    mtx: Request Sense: Additional Sense Qualifier = 00
    mtx: Request Sense: BPV=no
    mtx: Request Sense: Error in CDB=no
    mtx: Request Sense: SKSV=no
    READ ELEMENT STATUS Command Failed
    Its not working right ?
    status shows from mt not from mtx:
    mtx -f /dev/st0 status
    mtx: Request Sense: Long Report=yes
    mtx: Request Sense: Valid Residual=no
    mtx: Request Sense: Error Code=70 (Current)
    mtx: Request Sense: Sense Key=Illegal Request
    mtx: Request Sense: FileMark=no
    mtx: Request Sense: EOM=no
    mtx: Request Sense: ILI=no
    mtx: Request Sense: Additional Sense Code = 20
    mtx: Request Sense: Additional Sense Qualifier = 00
    mtx: Request Sense: BPV=no
    mtx: Request Sense: Error in CDB=no
    mtx: Request Sense: SKSV=no
    READ ELEMENT STATUS Command Failed
    mt -f /dev/st0 status
    drive type = Generic SCSI-2 tape
    drive status = 1140851200
    sense key error = 0
    residue count = 0
    file number = 0
    block number = 0
    Tape block size 512 bytes. Density code 0x44 (unknown).
    Soft error count since last status=0
    General status bits on (41010000):
    BOT ONLINE IM_REP_EN
    anything wrong or ?
    #cat /proc/scsi/scsi
    Attached devices:
    Host: scsi0 Channel: 00 Id: 00 Lun: 00
      Vendor: Intel    Model: Multi-Flex       Rev: 0291
      Type:   Direct-Access                    ANSI SCSI revision: 04
    Host: scsi0 Channel: 00 Id: 00 Lun: 01
      Vendor: Intel    Model: Multi-Flex       Rev: 0291
      Type:   Direct-Access                    ANSI SCSI revision: 04
    Host: scsi1 Channel: 00 Id: 00 Lun: 00
      Vendor:          Model: Virtual CDROM    Rev: 1.00
      Type:   CD-ROM                           ANSI SCSI revision: 02
    Host: scsi0 Channel: 00 Id: 10 Lun: 00
      Vendor: QUANTUM  Model: ULTRIUM 3        Rev: 2076
      Type:   Sequential-Access                ANSI SCSI revision: 04
    Host: scsi0 Channel: 00 Id: 10 Lun: 01
      Vendor: QUANTUM  Model: UHDL             Rev: 0061
      Type:   Medium Changer                   ANSI SCSI revision: 02
    and in /var/log/messages:-
    Aug 26 09:54:33 episapbaio kernel:   Vendor: QUANTUM   Model: ULTRIUM 3         Rev: 2076
    Aug 26 09:54:33 episapbaio kernel:   Type:   Sequential-Access                  ANSI SCSI revision: 04
    Aug 26 09:54:33 episapbaio kernel: st 0:0:1:0: Attached scsi tape st0
    Aug 26 09:54:33 episapbaio kernel: st 0:0:1:0: st0: try direct i/o: yes (alignment 512 B)
    Aug 26 09:54:33 episapbaio kernel: st 0:0:1:0: Attached scsi generic sg2 type 1
    Aug 26 09:54:33 episapbaio kernel:   Vendor: QUANTUM   Model: UHDL              Rev: 0061
    Aug 26 09:54:33 episapbaio kernel:   Type:   Medium Changer                     ANSI SCSI revision: 02
    Aug 26 09:54:33 episapbaio kernel:  0:0:1:1: Attached scsi generic sg4 type 8
    Aug 26 09:54:33 episapbaio kernel: st0: Block limits 1 - 16777215 bytes.

  • Rearranging Menu Icons

    How do you rearrange menu icons?   I found out this feature is available with the new firmware upgrade so I searched the web and saw on a Nokia blog a print screen that showed something like"Select icon" and then "tap on new location" to move...
    I have nothing like that.  I can't rearrange mine... unless I am doing something wrong (which I probably am)...??...
    Any help would be appreciated...
    Sandy

    I tried the "User manual" and just have no words.  "Words" that normally have meaning - don't - in the "User Manual."  Really, I was so upset I won't look at it again... ever.
    But for those who are up for it - go ahead and try... If you can "execute" anything after reading that misguided attempt at explaining commands you are a better individual than I (which you probably are - I am just trying to make a point here)...
    No W-O-R-D-S... still none.
    Sandy
    (and if you make me go there - I will find out what country you live in and beat you to death with my N900 - I'd brick that phone before I read that manual again)...

  • ORA-02402: PLAN_TABLE not found

    Hi,
    when I do this :
    explain plan for select * from scott.emp ;
    I have this :
    ERROR at line 1:
    ORA-02402: PLAN_TABLE not found
    Should I do something before ?
    DB version is 9.2.0
    Thank you very much.

    Hi,
    SQL> !oerr ora 02402
    02402, 00000, "PLAN_TABLE not found"
    // *Cause: The table used by EXPLAIN to store row source information does
    // not exist in the current schema.
    // *Action: Create a plan table in the current schema or use the INTO clause
    // of the statement to put the results of the explain command in an
    // existing plan table.
    SQL>
    I believe that you need to create the PLAN TABLE as following url:
    http://www.oracle-base.com/articles/8i/ExplainPlanUsage.php
    or
    http://www.idevelopment.info/data/Oracle/DBA_tips/Tuning/TUNING_13.shtml
    Cheers,
    Marcello M.

  • ERROR: insufficient privileges while using EXPLAIN PLAN command

    Hi,
    I have a table named TEST and i ran following command on this table.
    SQL> EXPLAIN PLAN FOR
    2 SELECT NAME FROM TEST;
    SELECT NAME FROM TEST
    ERROR at line 2:
    ORA-01031: insufficient privileges
    So which privilege do i need to give for using EXPLAIN PLAN command.
    Thank.

    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14211/ex_plan.htm#i19260
    SQL> @C:\oracle\product\10.2.0\db_1\RDBMS\ADMIN\utlxplan.sql
    Table created.
    SQL> select table_name from user_tables where table_name='PLAN_TABLE';
    TABLE_NAME
    PLAN_TABLE
    You might consider checking dba_tables to check the owner in your case and may be you don't privilege on that table.

  • Tell me the COMMAND to see the Explain Plain in Oracle SQL * Plus

    HI all,
    Tell me the COMMAND to see the Explain Plain in Oracle SQL * Plus?
    Regards,
    Balaji.C

    SET AUTOT TRACE EXPor EXPLAIN PLAN ... and @?/rdbms/admin/utlxpls
    SCOTT@lsc01> explain plan for select * from dept where deptno=10;
    Explained.
    SCOTT@lsc01> @?/rdbms/admin/utlxpls
    PLAN_TABLE_OUTPUT
    Plan hash value: 2852011669
    | Id  | Operation                   | Name    | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT            |         |     1 |    20 |     1   (0)| 00:00:01 |
    |   1 |  TABLE ACCESS BY INDEX ROWID| DEPT    |     1 |    20 |     1   (0)| 00:00:01 |
    |*  2 |   INDEX UNIQUE SCAN         | PK_DEPT |     1 |       |     0   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - access("DEPTNO"=10)

  • Can anyone explain what the field-get command in ABAP does

    Hi,
    I have just come across the command field-get in some code. I've never seen this command before and there doesn't seem to be any help or documentation on this.
    Can anyone advise how this command works?
    Thanks,
    Ruby

    Ignore question.

  • Explaination Of  "create wallet applet" apdu command in wallet.scr

    0x80 0xB8 0x00 0x00 0x14 0x0a 0xa0 0x0 0x0 0x0 0x62 0x3 0x1 0xc 0x6 0x1 0x08 0 0 0x05 0x01 0x02 0x03 0x04 0x05 0x7F;
    0x80 0xB8 0x00 0x00 0x14:=>p1=0,p2=0 and lc=20
    0x08 0 0 -What is the meaning of these codes ,Please explain.
    Please explain in detail.
    Thanks in advance.

    IMHO 0x08 - length of parameters field
    0x0 0x0 0x05 0x01 0x02 0x03 0x04 0x05 - parameters

  • Help explaining what command line means...

    Hi,
    tried everything to get past grey screen & prohibitory (no-smoking) sign when trying to boot my G4 on panther.
    Nothing worked...always the grey sign and nothing more. So decided to go the single-use mode to try fsck but cannot type in /sbin/fsck -fy...in fact, can't type anything because just get this one final line repeating every minute or so:
    "still waiting for root device"
    is my G4 kaput?

    Sorry to hear this. I'm out of ideas, but it sounds like a visit to an Apple engineer is called for. He might be able to put your SATA disk in another enclosure and access it this way to recover your data. Or you might have the necessary hardware skills to do this yourself?
    You could also try http://www.macgurus.com/forums where there are some knowledgeable hardware people (tell them I sent you ). They would certainly know how to put your disk in another enclosure.
    Might be worth waiting for any further suggestions, though.
    worth a try, but no cigar...Just as well since I'm trying to give them up

  • Open and Close a command line exec via OpenG.lib in seperate VIs

    Hi,
    I'm aiming to perform tests on my UUT - over a command line based executable which established a USB connection, so - sendings commands and checking the return string. 
    So far i'm reusing the pipeNight.vi which is shared in the following post.
    http://forums.ni.com/t5/LabVIEW/How-to-pass-input-to-a-DOS-executable-that-is-running-in/m-p/1763182...
    However i wish expand from LabVIEW and utilise NI-TestStand sequence files to ramp up the test coverage and perform the tests automatically.
    The issue i've encountered - every time i call the pipeNight.vi from a TestStand sequence Step, the USB connection is build up and torn down.
    Although i'm not encountering any performance issues to date, i would ultimately like to open a session (i.e.establish the usb connection) - at the beginning of a sequence file, send a bunch or commands and check return strings, before closing the session at the end of the sequence file. This is surely a more effecient and elegant solution.
    Is it somehow possible to split the pipeNight.vi into several VIs to realise this objective?
    - Open 
    - Write/Read
    - Close
    i'd appreciate and help or alternatice solutions on this!
    B.Regards
    Kech
    Solved!
    Go to Solution.

    I had tried to explain in my initial post, that if i call the pipeNight.vi from a TestStand sequence file step, then establishes a USB connection and tears it done - for every command that i send/ respectively every sequence step that i run in TestStand. As i envisage multiple (several hundred) test steps, i woul like to improve effeciency by establishing the ESB connection once instead of multiple times.

  • Facing error while exporting a table from command prompt.

    Hi Everyone,
    Please see the below error and suggest me what to do? My database is 11g.
    SQL> connect system/manager;
    Connected.
    SQL> expdp scott directory=test_dir dumpfile=scott.dmp tables=emp;
    SP2-0734: unknown command beginning "expdp scot..." - rest of line ignored.Regards,
    BS2012.
    Edited by: BS2012 on Apr 29, 2013 1:57 PM

    BS2012 wrote:
    Hi Jeneesh,
    Thanks for correcting me. I've never done import and export before. if I'll have to do that from sqlplus then what should I write?
    Regards,
    BS2012.Could you explain your business requirements?
    You cannot do export/import as it is from sqlplus...
    You may be able to write pl/sql code using DBMS_DATAPUMP package..
    Explain your requirements, people will be able to help..

  • Sort Table command no longer works in Numbers 3.2.2

    I am running OS X 10.9.4 and recently updated Numbers to 3.2.2 on my Macbook Pro. Since then I have been unable to sort a table which uses cells referenced from other tables. I have re-created a very simple set of tables to illustrate the problem. Table 1 and 1-1 below are the basic tables created to hold the data. The DATE column is formatted as Date with no Time format.
    The Summary Table selects the relevent data from each DATE field in the above 2 tables. I reference these fields by typing in "=" and then clicking on the appropriate field. Shown in Fig. 2.
    FIGURE 2.
    Everything looks fine in the table until I want to SORT the Summary Table by DATE field which I do by clicking on the down arrow at the top of the DATE column and selecting SORT ASCENDING - see Fig. 3 below.
    FIGURE 3.
    When I do this, the result is as shown in Fig. 4.
    FIGURE 4.
    When I click on the exclamation mark the text is as shown in Fig. 5.
    Figure 5.
    I used to be able to do this Sort really easily before updating to the latest version of Numbers. I have tried creating another worksheet and setting up completely fresh tables, I have created the same tables on my iMac running Numbers 3.2 and I keep getting the same result. Each time I run the Sort command I get varying results of more or less exclamation marks interspersed with blank cells. I may be being completely thick here but I would really appreciate someone helping me out as this is driving me NUTS!! I have searched on as many Forums as I could find and have been unable to find anyone with a similar problem. Any help here would be much appreciated.

    Thanks everyone for your replies. I have copied in the screenshots of the tables again by dragging & dropping this time so hopefully you can see them now.
    This shows the tables I have created.
    This shows the formula in the cell.
    The sort command on the column I want to sort on.
    The result after the sort command...
    And the error message.
    Anyway, if you can see all that now, could someone explain what is actually happening in the sort process as I don't really understand why the results appear as they do. I have now taken out all blank rows and columns of data in Table 1 and Table 1-1 and now when I run the sort I get the following result:-
    What I want to happen is that the Summary Table is arranged in Date order.  - surely that should be easy enough?? This used to be such a simple process before the update!!
    Could someone explain to me what is actually happening here and whether the safe sort suggestion made will work in this instance? I am off to experiment now and have another look at the links given as I still don't really understand what is happening. Thanks again for the suggestions and help - much appreciated!

  • File renaming in Sender file adapter usins OS command

    Hi Guys ,
    Can anyone explain on how to use the rename command in Sender file adapter using OS command parameter.
    Thanks,
    KC.

    Hey
    run the following OS command
    mv <originalFileName> <newFileName>
    This command will copy the <originalFileName> to a new file called <newFileName> and will delete the <originalFileName>
    There is no rename command in Unix,mv is used to rename the files
    Thanx
    Aamir

Maybe you are looking for

  • Iphoto never came installed in my new iMac bought in Dec. (newest version) WHY???

    iphoto never came installed in my new iMac bought in Dec. (newest version) WHY??? How do I get it?

  • Replace a character/string

    hi all, i have string like c:\data\product, i wanted to get c:\\data\\product as output( "\" is replaced as "\\").how to do this.i tried replace string function but iam not the required output. thanks ravi

  • JPGs created in Photoshop/Mac appear distorted on PCs

    We use Creative Suite CS6 on Macs. Recently some (but not all) of our clients using PCs started reporting that JPGs we created for them appeared heavily artifacted, as saved at extremely low quality. (Screen grabs from their PCs confirm this.) When f

  • II lost all my contacts when I updated

    I just updated my iphone as well as added icloud and I have LOST ALL MY CONTACTS.  Does anyone know how to restore?

  • R12 Applications Patch

    Hi, I need clarifications about R12 applied patches, we are in multi node, 1 node for applications and 1 node for database. we have successfully migrate R12 application to the new target server but since the new target server isn't fully ready we hol