SQL vs. Enterprise Manager

Please forgive me if I insult anyone with this question. I have just begun my endeavor with Oracle 9i and I have gotten a couple books that show both SQL and Enterprise manager as methods for working with the database. It seems to me on this version (9i) most of the basic tasks can be preformed in Enterprise Manager. I can create users/tables/views/objects etc...even edit data. Is there any reason for using SQL to perform these types of tasks? If anyone can answer that Enterprise Manager is better, please point me in the direction of a good book?
Thanks.
Brian (new user)

The best reason to use sql would have to be to better and more fully understand what is hapening when you do these tasks.
Originally, the gui tools like OEM were only available on Windows, so the philosophy was to learn everything at the "prompt" so you could work in any environment. More and more now though, they're in Java and can run on just about any platform.
Personally, I have never been a fan of using the gui tools such as OEM simply because I want to to know the syntax and I want stub my toes once in a while to learn and really understand whats going on in the database when I issue commands. For instance, I'm not happy having Oracle Expert tell me to increase the size of my shared pool, I want to run utlbstat and see the numbers.
You may also find that use of the gui is fine but may not expose you to all of the options available when you do things.
I guess it depends on how deep you want to get in learning the stuff.
Hope that helps.

Similar Messages

  • Shrink database is not active in SQL SERVER Enterpriser manager

    Dear guru
    Shrink database is not active in SQL SERVER Enterpriser manager what to do
    Rupesh
    SAP BASIS Consultant

    Hi,
    >Thank you very much for not supporting i have solved the problem by reading some other documents
    That's exactly what I wanted you to do : With a little personal work, you can actually learn to do your own work ! "Don't give fish to hungry people. Teach them how to go fishing !"
    Regards,
    Olivier

  • How to Connect SQL Server enterprises Manager Version 8.0 with Form 6i

    Dear experts
    I want to know that How can I connect SQL server Enterprise Manager Version 8.0 with Forms/reprots 6i.
    currently I have oracle 9i database at server windows 2003 and I also connected with client (my PC) I work on server.
    I also have SQL server in that server 2003 machine and this SQL Server also work with other clients that have VB program.
    I want to know that can I connect with this SQL server with Form 6i?

    You can't. The closest thing would be to create links in an oracle database to the SQL Server database using Heteregeneous Services and connect forms to the that.
    This forum is for the SQLDeveloper tool. You will get more complete answers in the "Database General", or "Heterogeneous Services" forums

  • How to detect whether a database was created by Restoring (from SQL Server Enterprise Manager) or by Attaching (from SQL Server Enterprise Manager)

    Ours is a SQL Server Express Edition 2008-R2 - Windows Forms based application. We have a backup/restore utility provided with our software which performs some logical checks before restoring a backup to ensure that the backup is functionally valid.
    However, our clients often use the SQL Server Enterprise Manager utility to 1) Restore backups or 2) Attach data files (kept aside before formatting) directly. This type of action bypasses all our functional checks and allows the user to restore an invalid
    backup.
    We want to detect that a database was restored/attached and may be we will stop the software from loading if such a thing happened. We think that this information (attach/restore) should be available within some table of SQL Server itself but don't know the
    right location/query.
    If any change is required in our software to achieve the above, we are ready to do the same too, e.g. may be we need to store some data at some point of time to make the detection happen, please advise.
    So, how can we detect that
    A database backup was restored using SQL Server Management Utility
    (Note: MSDB.Restorehistory may not be a good option as we have often found this table blank for unknown reasons even after backup was restored and just in case user restores the MSDB from MSDB backup or MSDB template due to a data corruption, may be due to
    abnormal shutdown of system, then the RestoreHistory table data is gone)
    A database was created by attaching a data/log file using SQL Server Management Utility
    Any help in this regard is highly appreciated.
    Rajarshi
    ProjectServer 2007 Beginner

    Hi,
    For Enterprise edition, we can enable Auditing to audit BACKUP_RESTORE_GROUP in a server audit specification. However, SQL Server audit (fine-grained auditing) feature is not available for the SQL Server Express.
    Features Supported by the Editions of SQL Server 2008 R2
    http://msdn.microsoft.com/en-us/library/cc645993(v=sql.105).aspx
    When a database is attached, SQL Server ERRORLOG will record “Starting up database 'DBNAME'.”
    Using ALTER DATABASE OFFLINE and ONLINE will re-open the database files under the SQL Server, the SQL Server error log also contains the following informational message: “Setting database option ONLINE to ON for database 'DBNAME'.”
    Additional information:
    SQL Server Audit (Database Engine)
    http://msdn.microsoft.com/en-us/library/cc280386.aspx
    Tracy Cai
    TechNet Community Support

  • Cannot send email using PL/SQL through Enterprise Manager 10g

    Hi
    I need to schedule a job that sends email periodically. I am using the scheduler in Oracle Enterprise Manager 10g for this. For sending the email, I am creating a PL/SQL job. The code is as follows:
    PROCEDURE send_test_message
    IS
    mailhost := 'iwblrcormsg001.sci.local';
    sender := '[email protected]';
    recipient := '[email protected]';
    mail_conn utl_smtp.connection;
    BEGIN
    mail_conn := utl_smtp.open_connection(mailhost, 25);
    utl_smtp.helo(mail_conn, mailhost);
    utl_smtp.mail(mail_conn, sender);
    utl_smtp.rcpt(mail_conn, recipient);
    utl_smtp.open_data(mail_conn);
    utl_smtp.write_data(mail_conn, 'This is a test message.' || chr(13));
    utl_smtp.write_data(mail_conn, 'This is line 2.' || chr(13));
    utl_smtp.close_data(mail_conn);
    utl_smtp.quit(mail_conn);
    END;
    I have setup the smtp server and received a test email from the EM notifying me of successful configuration. When the above job is run, the scheduler shows status as successful. If I go to the command step, it displays the following output:
    Output Log
    SQL*Plus: Release 10.1.0.2.0 - Production on Thu Feb 19 19:04:29 2009
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    SQL> SQL> SQL> SQL> Connected.
    SQL> SQL> 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 Disconnected from Personal Oracle Database 10g Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Now, the only issue is that I do not receive any email at the address specified! I would be very grateful if someone could point out the error here.

    I would use APEX4.0 for this.
    Create an interactive report based on your data. Add a chart to that report and use the NOTIFY feature to send you the email.

  • How to check the datfiles from oracle SQL Developer(enterprise Manager)

    hi,
    Iam using Oracle SQL Developer as enterprise manager in my local pc.I want to check the size of datafiles using this enterprise manager.could u pls help me out..
    Thanks in advance ,
    R.Ratheesh

    What?
    Sql developer is not enterprise manager.
    Size of datafiles? Read the documention, and read the concepts and administration manuals for your release.
    I am not going to provide links, because you have not given your database version number and secondly if you found this forum you can find the docs.
    But I will give you a clue....DBA_DATA_FILES...
    Message was edited by:
    bazzza

  • Pl/sql using enterprise manager or toad

    A basic question : When it comes to writing PL/SQL code, testing, debugging and performance tuning(the pl/sql code itself), which of the tools are better (The OEM or would it be toad). I am looking for advantages that either or both of them have. Any documentation or tip on this would be great...
    Note: I am not looking forward in just monitoring and tuning the sql statements that the pl/sql code has(which I would, anyways), but wanted to explore a possibility if either of the above tools can tell me something at a pl/sql level... like... this pl/sql code performs well, whereas the other one doesn't... This is the idea I have...
    Thanks

    The best tool for writing PL/SQL is that gray stuff between your ears.
    A s/w tool can not take poorly designed and written PL/SQL code and make it "better".
    As for determining how well the code performs - that also need gray matter and using tools like DBMS_PROFILE, execution plans, SQL Trace/TKProf.
    I write lot of code. In Linux Vi (aka vim). Using SQL*Plus. This code, as code, is no worse (or better) than code written in TOAD, SQL*Developer, or whatever else.
    It is not about the tool. It is how about one uses that tool. It was Van Gogh that created master pieces. Not his paint and brushes.

  • SQL Server Configuration Manager snap in not getting created by Microsoft Manager Console

    I just installed SQL Server 2008 Express with Advanced Services.  I want to enable FILESTREAM so I can install the AdventureWorks sample database.  The instructions at this page:  http://msdn.microsoft.com/en-us/library/cc645923.aspx say:
    On the Start menu, point to All Programs, point to Microsoft SQL Server 2008, point to Configuration Tools, and then click SQL Server Configuration Manager.
    When I open SQL Server Configuration Manager I get an error message:  "MMC could not create the snap in, the snap in might not have been installed correctly.  Name:  SQL Server Configuration Manager."  Then it gives me a CLSID.
    On this page:  http://msdn.microsoft.com/en-us/library/ms174212.aspx it says:  "Microsoft Management Console (mmc.exe) uses the SQLServerManager10.msc file in the Windows System32 folder to open SQL Server Configuration Manager."
    I looked in the System32 folder and, sure enough, the file SQLServerManager10.msc is in there.  It's XML inside the file.
    Please help.  I really need to get this SQL Server Configuration Manager working so I can enable FILESTREAM data and install the database.  I appreciate any help you can give.
    --goldenthroat

    I'd try this first; 
    Go to the Run from the Start menu and type mmc and press enter to open an empty console. Under the File menu select "Add/Remove Snap-in". Click "Add" under Console Root and select the "Microsoft SQL Enterprise Manager" snap-in. Close windows until you are back to the mmc, and you can rename the "console1.msc" to default name which is "SQL Server Enterprise Manager.MSC" and save it under C:\Program Files\Microsoft SQL Server\80\Tools\Binn (Default location of SQL Server 2000) - Obviously you want your 2008 installation folder and unfortunately I don't have it so I couldn't point you to it... http://weblogs.sqlteam.com/

  • How to Install SQL Enterprise Manager ?

    The standard installation file which sap gives sql4sap.vbs doesnt install the Enterprise manager.
    How to install SQL Enterprise Manager (ECC6+Win2003).
    regards,
    dev

    Hi,
    Server type is normally "Database Engine". You can use the Dev. Studio to connect to various other types (e.g. Reporting Services, Analysis Service etc.)
    The Servername is the instance name you want to connect to. For a default instance it is your machinename, for a named instance it is Machinename\Instancename.
    Authentication can be Windows Authentication if you are logged on as a local Admin. For an ABAP System only Windows Authentication is possible, for a JAVA System the SQL authentication is necessary, so that you can logon as 'sa' with the password you provided in the setup.
    Regards
      Clas

  • SQL Tuning using Enterprise manager in oracle 10g

    Hi,
    In oracle 10g you have the enterprise manager which can be used to tune sql statements using the SQL Tuning ADvisor and SQL access advisor.
    I believe in oracle 10g the process of SQL Tuning is slightly easier using the Enterprise Manager ...so if some one could explain me that process...
    Again thanking you in advance
    regds
    Manoj Gokhale

    Hi Manoj,
    Didn't you already start two other threads about this same question the SQL forum?
    How do i do the SQL Statement tuning
    Enterprise Manager - sql tuning advisor , Access advisor for SQL Tuning

  • Running an Oracle Enterprise Manager job in Oracle SQL Developer

    Oracle9i Enterprise Edition Release 9.2.0.5.0 - Production
    Is it possible to run an Oracle Enterprise Manager job in Oracle SQL Developer? I have looked through the Oracle help documents for 9i and it does not seem to cover this topic.

    1007692 wrote:
    Oracle9i Enterprise Edition Release 9.2.0.5.0 - Production
    Is it possible to run an Oracle Enterprise Manager job in Oracle SQL Developer? I have looked through the Oracle help documents for 9i and it does not seem to cover this topic.DBA_JOBS resides in the database; not in any particular client.

  • Top sql in java enterprise manager 10G

    i,
    in the java enterprise manager 9i, I could use 'top sql', 'top sessions' from the java applications.
    I recently installed 10G enterprise manager client, and I now miss the top sql and top sessions apps.
    I know that they are available in the web interface for enterprise manager 10G, but I can't use the webinterface right now. I would like to use the standalone java enterprise manager. How can I get the top sql in there?
    Greetings,
    Ivo

    anybody?

  • Enterprise manager configuration failed but i*SQL Plus runs fine

    While Installing Oracle database 10g rel 2 on windows XP professional Service Pack 2 The Enterprise manager configuration failed.
    However I*SQL plus and
    Datbase configuration assistant and other tools run fine.
    I got the following error message
    Error instantiating em configuration files.
    Refer log E:\oracle\product\10.2.0\db_1\cfgtoollogs\dbca\orcl\emConfig.log for more details.
    On checking the contents of the log file I saw the following enteries
    Creating directories...
    Apr 14, 2007 2:24:45 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: Unable to copy E:\oracle\product\10.2.0\db_1/sysman/config/emomsintg.xml to E:\oracle\product\10.2.0\db_1\localhost_orcl/sysman/config/emomsintg.xml: No such file or directory at bin/EMDeploy.pm line 261.
    Apr 14, 2007 2:24:45 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
    WARNING: Error executing CMD /C E:\oracle\product\10.2.0\db_1\bin\emctl.bat deploy dbconsole E:\oracle\product\10.2.0\db_1\localhost_orcl localhost:3938 localhost orcl
    Apr 14, 2007 2:24:45 PM oracle.sysman.emcp.EMAgentConfig instantiateEMConfigFiles
    CONFIG: Failed to deploy state dirs
    Apr 14, 2007 2:24:45 PM oracle.sysman.emcp.EMConfig perform
    SEVERE: Error instantiating EM configuration files
    Refer to the log file at E:\oracle\product\10.2.0\db_1\cfgtoollogs\dbca\orcl\emConfig.log for more details.
    Apr 14, 2007 2:24:45 PM oracle.sysman.emcp.EMConfig perform
    CONFIG: Stack Trace:
    oracle.sysman.emcp.exception.EMConfigException: Error instantiating EM configuration files
    at oracle.sysman.emcp.EMAgentConfig.updateAgentConfigFiles(EMAgentConfig.java:2560)
    at oracle.sysman.emcp.EMAgentConfig.performConfiguration(EMAgentConfig.java:1166)
    at oracle.sysman.emcp.EMAgentConfig.invoke(EMAgentConfig.java:207)
    at oracle.sysman.emcp.EMAgentConfig.invoke(EMAgentConfig.java:185)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:146)
    at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:430)
    at java.lang.Thread.run(Thread.java:534)
    Can anybody suggest me a workaround.
    Is this an open bug?

    worth running emca -deconfig dbcontrol db and then running emca -configure dbcontrol db to let it have another try.

  • Where can i find the SQL page in the enterprise manager?

    Hi everybody
    i want to execute a number of indexes on my database, so i thought of 2 ways but each way has a problem:
    1) copy and paste the contents inside SQLPLUS, but this will cause an error that every line should ends with ";"
    2) execute the file contains the indexes "createindexes.sql" inside SQLPLUS by using the commnad "@ createindexes" and the SQLPLUS by default will know that it is ".sql", when i try this way it gives me the following error although i am sure that i connect correctly by the right schema and password:
    SQL> @D:\TPoX.v1.3\TPoX\Oracle\ddl\createindexes.sql;
    CREATE INDEX security_idx ON "security" (sdoc) INDEXTYPE IS XDB.XMLIndex
    ERROR at line 1:
    ORA-00942: table or view does not exist
    CREATE INDEX custacc_idx ON "custacc" (cadoc) INDEXTYPE IS XDB.XMLIndex
    ERROR at line 1:
    ORA-00942: table or view does not exist
    CREATE INDEX order_idx ON "order" (odoc) INDEXTYPE IS XDB.XMLIndex
    ERROR at line 1:
    ORA-00942: table or view does not exist
    lastely, someone told me to copy and paste them inside the SQL page exists in the enterprise manager, but i don't know where, i searched a lot for it but i didn't find it. please help
    thx
    Dina

    Are you sure that your table name is lower case
    Can you do the following commands in SQLPLUS
    desc security
    desc "security"
    desc SECURITY
    Also, can you tell us more about what your are doing with TpoX

  • Enterprise Manager - sql tuning advisor , Access advisor for SQL Tuning

    Hi,
    NO I mean in oracle 10g you have the enterprise manager which can be used to tune sql statements using the SQL ADvisor and SQL access advisor.
    I believe in oracle 10g the process of SQL Tuning is slightly easier using the Enterprise Manager ...so if some one could explain me that process...
    Again thanking you in advance
    regds
    Manoj Gokhale

    Hi Manoj,
    tune sql statements using the SQL ADvisor and SQL access advisor.Do you have the OEM extra cost "performance pack"?
    The OEM screens are fairly self-explainatory, but here are some references on the 10 SQL tuning advisors:
    http://www.oracle-base.com/articles/10g/AutomaticSQLTuning10g.php
    http://www.remote-dba.net/oracle_10g_tuning/t_oracle_sql_tuning_advisor_session_example.htm

Maybe you are looking for

  • Unable to authenticate with Ticket Toolkit

    I'm having trouble with the Ticketing Toolkit. (in a previous thread I was having trouble obtaining the MYSAPSSO2 cookie ... that is thankfully resolved) I am now able to see the cookie but for some reason the IsAuthenticated flag isn't set when I ru

  • Set count of column in database......

    hi All, i just wanna to ask, it is possible that i can set count of column depends on data/input. for example; in common, when 2 column, code sql like: String query3 = "INSERT INTO Sheet5(Rule, Weight)" + "VALUES ('"+ finalRule+"', '"+weight+"')";but

  • Mount device via USB in single user mode

    Hi. Help much needed. My macbook pro appeared to be crashed with harddisk problem at start time... unable to boot to normal login screen. When I run in single user mode, I dont seem to see my thumbdrive, or external device. I connected them via the U

  • Duplex printing with Reader XI?

    Adobe Reader XI (11.0.07) does not recognize duplex printing for my Brother HL-5370DW printer.  This occurs in OS X 10.6.8 and Mavericks (on different computers).  All other software, including Acrobat Reader 9 (and earlier versions of Reader) and Ac

  • Selection-screen block disappearing

    Hi All , Can any one tell me how can i make a block in the selection screen invisible . rt now i am using the below code for selection screen , SELECTION-SCREEN BEGIN OF BLOCK BLK1 WITH FRAME TITLE TEXT-001. PARAMETERS: P_SALE RADIOBUTTON GROUP GRP D