How to start or shut down database using sql developer in windows

Dear Sir/Madam,
how we start or shut down database using sql developer in windows
we are using oracle 11g release2, unix, java & oracle oracle weblogic administration
Thanks & Regards
Manish Kumar
Datbase Team
TCS Ltd.

HI, Welcome to OTN form,
SHUTDOWN is not a SQL statement but a SQL*Plus command . You cannot use SHUTDOWN in PL/SQL.
Check following link:
http://docs.oracle.com/cd/E11882_01/server.112/e16604/ch_twelve042.htm#i2699551
More Information please check OTN discussion: https://forums.oracle.com/thread/2349159
Thank you

Similar Messages

  • Cannot connect to database using SQL Developer

    Ok. Here are the facts:
    1) I can connect to the database using PL/SQL Developer.
    2) I wanted to try SQL Developer and I am unable to connect to the same database with SQL Developer. I provide username and password and select "network alias" and click test and I get "Network adaptor could not be established"
    3) TNS names.ora file resides on a mapped drive which clearly is accessible by PL/SQL developer but not by SQL developer.
    What am i missing?
    Thanks a lot

    If you can select a network alias, then sqldeveloper has found your tnsnames and the problem lies elsewhere.
    Is the network drive specified by a UNC? SQLDeveloper doesn't work well with unc names.

  • Trouble installing/using SQL Developer on Windows 2008 R2

    I need help installing sql developer.
    I am running Windows 2008 R2.
    I tried installing the 64 bit version, and when it asked for the path to the JDK, it complains that it doesn't exists. Can someone PLEASE point me to which JDK I need to install?
    I tried installing the 32 bit versionand it installs fine, but then gives me the error that it can't load AMD 64-bit dll on a IA 32 bit platform.
    PLEASE HELP. How can I run SQL Developer on Windows 2008 R2?
    Links to the exact versions of what to install would be very very helpful.
    Thank you!

    The versions required are in the release notes.
    If you install the 64-bit SQLDeveloper you need a 64-bit JDK.
    If you install the 32-bit SQLDeveloper you need a 32-bit JDK.
    If your operating is 32-bit, you need a 32-bit SQLDeveloper.
    Note that you need a JDK not a JRE
    Edited by: Jim Smith on Apr 4, 2011 9:04 PM to fix 32/64 bit errors.

  • How to create a database using SQL Developer

    Hallo,
    I am a user of OpenSUSE 11.4 and have Oracle database install in my system. I was reading this page regarding on creating a database. But I don't know how to launch DBCA in my system. May I know how can I launch DBCA in OpenSUSE 11.4?
    THanks @!

    user4994079 wrote:
    Hallo,
    I am a user of OpenSUSE 11.4 and have Oracle database install in my system. I was reading this page regarding on creating a database. But I don't know how to launch DBCA in my system. May I know how can I launch DBCA in OpenSUSE 11.4?
    THanks @!You'd launch it in exactly the manner in which your cited reference says:
    --- begin quote ---
    by entering the following on the UNIX command line:
    dbca
    --- end quote ---
    Of course the documentation assumes you've completed the first five minutes of Computer Admin 101 and so realize you should include the directory that has the executabale file. In this case, your PATH should include $ORACLE_HOME/bin
    So, what have you tried? What result did you get?
    And why are you citing a reference for a old, unsupported version of Oracle?
    And why the reference to SQL Developer in your subject line? This has nothing to do with SQL Developer.
    Edited by: EdStevens on Apr 16, 2011 9:15 PM

  • Issue in connection with database using SQL Developer.

    Hi,
    I am facing a problem in connecting to a remote oracle database, below are the configuration setting which i am trying to use in sql developer to make the connection
    TNS Configuration Details (SUDHIR)
    SUDHIR=
    (DESCRIPTION=
    (ADDRESS=
    (PROTOCOL=TCP)
    (HOST=52.12.xxx.xxx)
    (PORT=1526)
    (CONNECT_DATA=
    (SERVICE_NAME=sudhir)
    User : system
    Password : xxxxxxxxxxx
    Database : sudhir
    Connect as : Normal
    I got the above credential details from Onsite team I need to connect this in my local sytem SQL Developer I am proving the connection as below
    Hostname : 52.12.xxx.xxx
    Port : 1526
    Service Name : sudhir
    Username : xxxxxxxxxxxxxx
    password : xxxxxxxxxxxxx
    I get following error when say test connection in sql developer.
    "The Network Adapter could not establish the connection."
    Please suggest me using the above details how to make the connection success. Please let me know.
    Thanks
    Sudhir
    Edited by: BluShadow on 30-Mar-2012 11:56
    data anonymised by moderator

    (o_0)
    Hopefully for you, the machine is not reachable from internet !
    Your giving online everything needed to log in as system ! that is quite dangerous. I guess the "Onsite team" would be pretty mad discovering that.
    You should edit your previous post before too much people get to it.
    Regarding your problem, I guess you can't get to the machine itself (maybe in a different network).
    Can you try to ping it from your computer ?ping 51.17.130.121
    This is a made-up IP, you'll have to replace with yours

  • Inserting and retrieving data from a al32UTF8 database USING SQL Developer

    hi guys,
    Before i post my questions , i think its better for me to provide you guys with my understandings first so that it easier to understand where/if i have gone wrong..
    I am using Window XP and Oracle 10g
    Non-unicode client - a client program that need to use the OS code page for mapping of the retrieved unicode data from the database as well as the support of displaying/inserting the characters from that code page to the database.
    E.G sqlplusw.exe
    Therefore, when using a non-unicode client
    1) we have to set the OS code page (Control panel - regional and language setting - advance - language for non unicode program ) to the code page that contain the characters we are going to display/insert.
    2) we will also have to set the NLS_LANG characterset to the character set of the code page we are going to insert so that when we do a insert (for e.g in thai ) , oracle will know, and auto conversion to UNICODE can take place. This is also true when we retrieve unicode data from the database so that conversion to the correct character set can take place.
    INSERTING
    THAI ---> conversion ----> UNICODE
    RETRIEVING
    THAI <---- conversion <---- UNICODE
    I hope my basic understanding is correct up till this point.
    Unicode client - a client program that supports the displaying/inserting of unicode characters without the need of setting the OS code page (Control panel - regional and language setting - advance - language for non unicode program )
    E.G isqlplus http or SQL developer
    However,
    1) There is still a need to set the NLS_LANG so that correct conversion can take place between the client and the database.
    For e.g, when retrieving if we set the NLS_LANG character set to ZHS16GBK (chinese) and the data store in unicode in database is E.G (THAI) , then the conversion would be wrong .
    Since it is a unicode supported client, then the NLS_LANG character set should be set to UNICODE as well.
    Here come my questions
    *Important - please help if you are busy and have no other time to answer the rest of the questions
    *Q1) If i were to use a unicode client, what should i set my NLS_LANG character set to ?
    AMERICAN_AMERICA.UTF8 ?
    *Q2) Where do i set the NLS_LANG character set information in SQL Developer, i know there is a metalink for setting NLS_LANG using isqlplus but i cant seems to google any result for SQL developer.
    Q3) Is my basic understanding right until this point ? If not, please explain in a more generalised term as i am really not familiar with character sets, code page, unicode , glyphs and fonts..
    Q4) If a unicode client does not need to refer to the OS code page (set in regional and language) , is there a UNICODE code page for the client to refer to , or is there any Window API available ?
    Q5)
    There is still a need to set the NLS_LANG so that correct conversion can take place between the client and the >>database.
    For e.g, when retrieving if we set the NLS_LANG character set to ZHS16GBK (chinese) and the data store in >>unicode in database is E.G (THAI) , then the conversion would be wrong .am i right on this point for UNICODE supported client ?
    Thanks for spending time to read my questions and i hope to hear advices from you guys soon.
    Million thanks again for sharing.
    Best Regards,
    Noob but willing to learn

    The requirement to always set NLS_LANG is not true for JDBC, which ignores NLS_LANG altogether. Java programs fetch text data into String variables, which use Unicode UTF-16 by design. JDBC sets character set conversion so that data is converted between UTF-16 and the database or national character set.
    The requirement to set NLS_LANG is not generally true for OCI, either. The first call in an OCI problem can be OCIEnvNlsCreate(). This call has two parameters that allow the caller to define the character set to use for VARCHAR2/CHAR/LONG/CLOB/statement text and the character set to use for NVARCHAR2/NCHAR/NCLOB. Only if these character sets are specified as 0, NLS_LANG character set is used. Also, OCI programs can specify different character sets for each bind or define variable (i.e. input/output buffer). Note: OCI programs always use NLS_LANG to initialize the language and territory settings for the client program and the database session. Only the character set can be specified is OCIEnvNlsCreate().
    OCIEnvNlsCreate() can specify the client character set as UTF-16 (in platform endianess). This is not possible with NLS_LANG.
    Various interfaces building on OCI, such as Oracle ODBC and ODP .NET, explicitly initialize OCI with Unicode character set, and thus ignore the NLS_LANG character set as well.
    Thnx,
    Sergiusz

  • Unable to establish connection to oracle database using sql developer

    hi guys,
    i tried to connect to the oracle database using the sql developer, but it fails. it replies the following message:
    Status: Failure -Test failed: Io exception: The Network Adapter could not establish the connection
    what should i do? any help

    Please provide a little more information:
    1) SQLDeveloper version.
    2) Database Version.
    3) Database location (same machine or on the network).
    4) Connection method (basic,TNS).
    5) Connection type (Thin,Thick/OCI).
    Usually the first thing to check is if you have correctly entered the right information for your database connection, then if everything seems to be OK the database itself should be checked for potential problems.

  • Cannot debug procedure in 11g database using SQL Developer

    Hi,
    We have recently migrated our database from 10.2.0.4 to 11.2.0.2. We were able to debug procedures using PL/SQL Developer earlier but after 11g migration we are not able to debug the same procedure in 11g database.
    Is it that we require 11g PL/SQL developer with 11g client installed to debug?

    11g has a new privilege required to debug stored procedures, DEBUG CONNECT SESSION.
    Does your user have this priv?
    No client required to debug, but if you ARE using a client via OCI THICK preference, be sure that the client version matches the server version.

  • Generating hourly report from oracle database using sql developer .Help

    I am working on SQL Developer 1.5.1, i need to prepare hourly record of the activity on the database, for that i have a sql query that gives me the report as per selected columns on hourly basis.I need to prepare 24 reports a day.
    Each time i have to go to the query , change the date as per hours like form 22:06:2011 10:00:00 to 22:06:2011 11:00:00 and get the report and export it in excel.
    I want to automate the script so that whenever i run the script , it just asks me the date and runs the script 24 times and fetch me the hourly report of whole day.
    the query syntax is something like this
    Select
    from
    where
    And.......................
    And...................
    And......................
    And req date between to-date( 22:06:2011 10:00:00) And to-date(22:06:2011 11:00:00)
    Order by 7,1,2,3,4,5
    Is there any possibility that i can automate the script to automatically change the hour itself and generate a report in excel 24 times?please share if you have any idea on this.
    Looking forward for a response.

    This gives you data for the whole day and the first column tells you which hour data it is,
    SELECT 'HOUR' || TO_CHAR ( req_date, 'HH24') AS hour_num,
           col1,
           col2,
           col3
      FROM table_name
    WHERE TRUNC (req_date) = TO_DATE ( '22/06/2011', 'DD/MM/YYYY')G.

  • How to load jar file using SQL Developer

    Dear All,
    I need urgent help to load mytest.jar to the database using SQL Developer. I am able to load individual java classes to the database using SQL developers, but i could not load JAR files. Please help me any one know how to do this using SQL Developer.
    Thanks and Regards
    John p

    I don't think that's possible, so load it through the OS with the loadjava utility.
    Have fun,
    K.

  • Exporting procedures using sql developer

    Hi,
    I successfully migrated a mysql database to the oracle database using sql developer.All the data excluding procedures were moved to oracle.
    I dont know why but none of the procedures were moved to oracle.
    Now, i want to move those procedures to oracle database.Can you guys provide any help.

    11g.DBA wrote:
    Hi,
    I successfully migrated a mysql database to the oracle database using sql developer.All the data excluding procedures were moved to oracle.
    I dont know why but none of the procedures were moved to oracle.
    Now, i want to move those procedures to oracle database.Can you guys provide any help.If you want to do something, anything "with SQL Developer", the question would be best asked in the [url https://forums.oracle.com/forums/forum.jspa?forumID=260]SQL Developer forum

  • Reconnect opening an Oracle Table using SQL Developer 3.0 in Windows 7.

    Downloaded SQL Developer 3.1.07 and placed a copy on both Windows XP Pro. and Windows 7 Pro. No issues using SQL Developer under Windows XP, Oracle 10g client driver. However, under Windows 7 (32-bit or 64-bit PCs), Oracle 10g or 11g client driver, when I click a table name to display the 'Columns, Data, Constraints, ...' fields - I receive a Reconnect message: Your database connection has been reset. Any pending transactions or session state has been lost." I am able to view the Data, Contraints, Grants, ... fields, except for Columns field (no data). Also executing SQL statements to query any of the tables returns expected data. Right-click on database connection shows 'Connect' and 'Reconnect' greyed out, so appears connection exists. So why is the Reconnect message happening? And why can I not see my field definition under Table Columns?

    Thanks, I'll survive. Just my luck, the first item I try to anon. debug didn't work! :)
    thanks, hopefully this problem will be few and far between

  • I am so frustrated I could spit.. I have been experiencing issues for 1 week now and am unable to use my iphone. It started by shutting down every time I'd try to use it and now it won't turn on. When I plugged it in the charger apple flashes .

    i have been unable to use my iphone for going on a week. It started by shutting down when ever I'd try to use it. Now it has just a dead black screen. If i plug it in it doesn't charge And the flashing apple continues every 2seconds never charging or turning on. I'm frustrated because I can't even get in to troubleshoot. I bought an iphone cuz I thought it was the best phone at the time. My contract isn't up til Aug. and I'm stuck with a bill and no phone. I do not own a computer but I have an ipad4 which I love. HELP!

    Make an appointment at the genius bar are your nearest Apple store. At this point there is nothing you can do without a computer, so if you don't have one and don't know anyone who has one that you can use the Apple store is a good fallback.

  • Purchased the Sony Tablet in June 2012, started to shut down during regular use (blank screen, swirl

    I am a long time Sony customer… mostly TVs and other entertainment items.
    Purchased the Sony Tablet in June 2012, started to shut down during regular use (blank screen, swirly lights comes on, and soft reset required) in September 2012.
    December 2012, issue started to take place more frequent (to the point it was too annoying).
    Sent the tablet in for repair before X-Mas and just got it back from the TX repair center yesterday (1/14/13).
    They replaced the motherboard.
    1/15/13, 11:49AM, the same issue happened.
    I am asked to mail it in again, so they can fix the issue.
    I like Sony products, but this is something new for me.
    I like to know if this is common for the tablet, please share story.
    My concerns are:
    They replaced the motherboard (that is pretty much the core of the tablet!)
    What do I do when my warranty expires in June 2013 and the issue is still there?

    I and many others have the same issue. You can an find some links to reported issues in my thread.
    Sony has yet to acknowledge the issue and define whether it is software or hardware based. This lack of communication is very disheartening.

  • How frequent should I shut down my PC?

    Hello,
    I hope you don't mind asking this question. I just could not prevent but to know, using PC(laptop) is a part of daily life, sometimes it is more than 10 hrs need keep running a day. So lot of stress on it. Generally I am used to shut down my PC each day night before sleep and start fresh next day morning. As we all know I have some other options available like keep my PC in sleep or hibernation instead of shutdown. Now my question is what is the best way practice in order to keep my PC in good health? Should I everyday shout down and start fresh as said above or I can keep it in sleep for couple of days etc. Which is good to practice? My PC is HP 430.
    Thanks,
    Regards,
    Cyberkhan
    This question was solved.
    View Solution.

    Hi,
    People choices:
    How often do you shut down your computer?
    Whenever I'm not using it.  16.23%  (2,446 votes)
    Every night.  26.37%  (3,974 votes)
    On the weekends.  6.71%  (1,012 votes)
    Only when I'm out of town.  12.78%  (1,926 votes)
    Only if there are storms in the area.  5.02%  (757 votes)
    Never by choice.  26.34%  (3,970 votes)
    Other.  6.55%  (988 votes)
    Total Votes: 15,073
    Source: http://lifehacker.com/5990606/how-often-do-you-shut-down-your-computer
    No book, no rules.  I myself shut down machines before going to bed.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

Maybe you are looking for