How to Install emacs, openssh and start oracle database and get a connect?

As suggested by another poster, I installed the prebuilt appliance at [http://www.oracle.com/technetwork/community/developer-vm/index.html] and [http://www.oracle.com/technetwork/server-storage/virtualbox/downloads/index.html] with the intent of running oracle database in a linux vm as a guest on windows 7 and connecting to it using JDBC from the windows host.
This is running but I don't know how to install other stuff. I tried "sudo yum install openssh" and "sudo yum install emacs" and "sudo service sshd status" and none of these worked (it could not find these packages). I could not get apt-get or app-get or aptget to work either. I was hoping that "uname -a" would tell me if this was fedora or debian or something else but no luck. What command do I use to learn the distro name?
How do I make ifconfig tell me what the ip address so I can use "scp" and "ssh" to get into the box? Ok, /sbin/ifconfig works and I see there is only a loopback address. Ack! How do I create a socket so I can ssh into this little beastie?
How do I disable the firewall or (better yet) punch holes in it so I get use JDBC and ssh, scp and samba from windows 7?
I tried firing up the SQL Developer 3.1 and getting a test connection with username and password of "oracle" with no luck. How do I get a test connection to work?
How do I determine if the database is running? If not, how do I start it and stop it and restart it?
Thanks
Siegfried
Edited by: user8816970 on Sep 15, 2012 6:29 PM
Edited by: user8816970 on Sep 15, 2012 6:33 PM

There is no "oracle" account native to the database itself. This is just the default account that owns the application. Log on as oracle/oracle to the OS. (OEL) You can change the passwords of the sys and system account by setting your $ORACLE_HOME and $ORACLE_SID. Default SID is orcl on a database install. Also set a path to the oracle binaries in the form of $ORACLE_HOME/bin.
Then sqlplus / as sysdba
Change passwords of sys and system using the following example.
ALTER USER SYS IDENTIFIED BY [password];
ALTER USER SYSTEM IDENTIFIED BY [password];
The supplied appliance runs oracle enterpirse linux. Not debain or fedora.
Why do you need "emacs"?
I haven't personally load this appliance with Virtual Box but there has to be a readme file somewhere that details all the passwords and etc.

Similar Messages

  • How to let SOA Suite automatically start Oracle Database services if necess

    It occurs from time to time that I forget to start Oracle database services
    before I start Soa Suite. Can I somehow let SOa Suite startup script check in advance
    if Oracle database services need to be started (and start them automatically if necessary)?
    Peter

    Hi,
    This is a familiar issue. I've come up with the following solutions.
    1) On my linux machine, I start the database (EE) and soa suite at boot time using /etc/oratab.
    2) On my windows machine, I start the database (XE) at boot time, as a service that automatically starts. The soa suite is started manually. I could start the suite automatically as a service also, but because it takes up so much memory and I do not always want to run the suite, I prefer to start manually. In any way, the database is started automatically before the soa suite.
    Hope this will help you.
    Kind regards,
    H

  • How-To install SOAP Client Stack in Oracle Database

    Hi,
    1. i wrote a java clientstub that accesses a webservice.
    2. all works fine if i run it from within java.
    3. i then tried to port it to oracle database.
    4. loading the java classes defined in the sample code works fine too.
    5. i then loaded my client (wrapper and client-stub) classes and made pl/sql procedure from the wrapper.
    6. i try to access the webservice
    the problem:
    1. if i made step 5 in SYS-SCHEMA all is ok
    2. if i made step 5 in an other SCHEMA i got an exception in step 6:
    java.lang.NoClassDefFoundError
    the code line is pointing to: m_httpConnection = new OracleSOAPHTTPConnection();
    this is located in the client-stub class constructor
    there exist synonyms of all classes in the public schema.
    is it a problem with priviledges, and if what priviledges are required?
    if this isn't the best way to access webservices from within oracle database, what other solutions are possible?
    if more information are required, please let me know
    thanks
    ralf

    Hi,
    Refer to this document for information on loading SOAP jar files to the database.
    The database schema you are using needs to be granted the following permission to access the external web service
    execute dbms_java.grant_permission('<dbuser>','SYS:java.net.SocketPermission','<host-name>:<port>','connect,resolve');
    where, <host-name> and <port> point to the location where the webservice is running. If you are behind a firewall, use the proxy host and port here.
    For more information on accessing external web service from the database refer to the samples on the Database Web Services Page
    HTH,
    Sujatha
    OTN Group.

  • How to fetch the image file from oracle database and display it.

    hi... i've inserted the image file into the oracle database... now i want to retreive it and want to display it... can anybody help me... pls

    not a big deal dude... i fetched the image from database and saved it into my local hard disk.. but when tried to open it,ends up with no preview... dont know what d prob is... any idea... i've inserted the image as bytes n trying to fetch it as binary stream.. is that the problem... here im giving my insertion and retireving code.. jus go through it...
    Insertion code:_
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package PMS;
    import java.io.File;
    import java.io.FileInputStream;
    import java.sql.Blob;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.SQLException;
    public class Browse_java
    static Connection con=null;
    public static void main(String args[])
    try{
    System.out.println("(browse.java) just entered in to the class");
    con = new PMS.DbConnection().getConnection();
    System.out.println("(browse.java) connection string is"+con);
    PreparedStatement ps = con.prepareStatement("INSERT INTO img_exp VALUES(?,?)");
    System.out.println("(browse.java) prepare statement object is"+ps);
    File file =new File("E:/vanabojanalu-/DSC02095.JPG");
    FileInputStream fs = new FileInputStream(file);
    System.out.println("lenth of file"+file.length());
    byte blob[]=new byte[(byte)file.length()];
    System.out.println("lenth of file"+blob.length);
    fs.read(blob);
    ps.setString(1,"E:/vanabojanalu-/DSC02095.JPG");
    ps.setBytes(2, blob);
    // ps.setBinaryStream(2, fs,(int)file.length());
    System.out.println("(browse.java)length of picture is"+fs.available());
    int i = ps.executeUpdate();
    System.out.println("image inserted successfully"+i);
    catch(Exception e)
    e.printStackTrace();
    finally
    try {
    con.close();
    } catch (SQLException ex) {
    ex.printStackTrace();
    and Retrieving code is:
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package PMS;
    import java.beans.Statement;
    import java.io.*;
    import java.net.*;
    import java.sql.*;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import oracle.jdbc.OracleResultSet;
    * @author Administrator
    public class view_image2 extends HttpServlet {
    * Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
    * @param request servlet request
    * @param response servlet response
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    response.setContentType("image/jpeg");
    //PrintWriter out = response.getWriter();
    try
    javax.servlet.http.HttpServletResponse res=null;;
    int returnValue = 0;
    Connection con = null;
    PreparedStatement stmt = null;
    ResultSet rs = null;
    InputStream in = null;
    OutputStream os = null;
    Blob blob = null;
    //String text;
    //text=request.getParameter("text");
    //Class.forName("com.mysql.jdbc.Driver");
    con=new PMS.DbConnection().getConnection();
    System.out.println("jus entered the class");
    //String query = "SELECT B_IMAGE FROM img_exp where VC_IMG_PATH=?";
    //conn.setAutoCommit(false);
    PreparedStatement pst = con.prepareStatement("select b_image from img_exp where vc_img_path=?");
    System.out.println("before executing the query");
    pst.setString(1,"C:/Documents and Settings/Administrator/Desktop/Leader.jpg");
    rs = pst.executeQuery();
    //System.out.println("status of result set is"+rs.next());
    System.out.println("finished writing the query");
    int i=1;
    if(rs.next())
    System.out.println("in rs") ;
    byte[] byte_image=rs.getBytes(1);
    // byte blob_byte[]= new byte[(byte)blob.length()];
    //System.out.println("length of byte is"+blob_byte);
    //String len1 = (Oracle.sql.blob)rs.getString(1);
    //System.out.println("value of string is"+len1);
    //int len = len1.length();
    //byte [] b = new byte[len];
    //in = rs.getBinaryStream(1);
    int index = in.read(byte_image, 0, byte_image.length);
    System.out.println("value of in and index are"+in+" "+index);
    FileOutputStream outImej = new FileOutputStream("C://"+i+".JPG");
    //FileOutputStream fos = new FileOutputStream (imgFileName);
    BufferedOutputStream bos = new BufferedOutputStream (outImej);
    //byte [] byte_array = new byte [blob_byte.length]; //assuming 512k size; you can vary
    //this size depending upon avlBytes
    //int bytes_read = in.read(blob_byte);
    bos.write(index);
    /*while (index != -1)
    outImej.write(blob_byte, 0, index);
    index = in.read(blob_byte, 0, blob_byte.length);
    //System.out.println("==========================");
    //System.out.println(index);
    //System.out.println(outImej);
    //System.out.println("==========================");
    /*ServletOutputStream sout = response.getOutputStream(outImej);
              for(int n = 0; n < blob_byte.length; n++) {
                   sout.write(blob_byte[n]);
              sout.flush();
              sout.close();*/
    outImej.close();
    //i++;
    else
    returnValue = 1;
    catch(Exception e)
    System.out.println("SQLEXCEPTION : " +e);
    finally {
    //out.close();
    // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
    * Handles the HTTP <code>GET</code> method.
    * @param request servlet request
    * @param response servlet response
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    * Handles the HTTP <code>POST</code> method.
    * @param request servlet request
    * @param response servlet response
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    * Returns a short description of the servlet.
    public String getServletInfo() {
    return "Short description";
    // </editor-fold>
    }

  • Where to download and how to install X Window System for Oracle Linux 5 ?

    Folks,
    Hello. I am using Oracle Linux 5 and Oracle Database 11g for PIA.
    Before install Oracle DB 11g into Oracle Linux 5, we need to install X Window System according to the document page 2 http://download.oracle.com/docs/cd/B28359_01/install.111/b32285.pdf
    But I don't know where to download and how to install X Window System for Oracle Linux 5.
    Can any folk provide a link to download X Window System and tutorial to install it for Oracle Linux 5 ?

    You can address the problem in a number of different ways.
    You can install X-windows from the installation DVD or setup access to the Oracle public software repository as described in http://public-yum.oracle.com. In which case, the command to install X-windows is: yum groupinstall "X Window System"
    Or, you login remotely and and use SSH with X-forwarding, in which case the software on the server will use the X-Windows server on your client system. This is probably the preferred way since you do not have X-windows installed on the server. For more details about SSH forwarding and howto, please see Install Oracle 11gR2 on Ubuntu Linux 11.04 (64-bit) Howto part 2 Oracle Universal Installer.

  • Installing Oracle Database and SQL Developer

    Hi, I was looking for some help/advice in regards to installing an Oracle Database and SQL Developer onto a Windows 7 32bit machine. I have been asked to create a database to store data that I create through reports in Excel so I am required to create a local database but not sure how to go about doing this. Also not sure if I install the Express Edition or Oracle Database 11g R2. If somebody could please advise on how I can get this started or even any links/tutorials that would guide me in how to get this installed with a localhost.
    Thanks in advanc.

    318f20b8-a3d0-4fb4-bb0f-73785250b7d4 wrote:
    Thanks guys, I have managed to install Oracle 11gR2 and I have setup a database using the dbca tool and I can connect to my new database. One thing that I have noticed is that when i look into my tables in sql developer i see loads of different tables i.e. def$_, logmnr_, etc and I am not sure why this is as I expected an empty tablespace.
    Thanks btw for all your help.
    One of the key principles of relational databases is that they use their own facilities to manage themselves.  That means the database management system uses the database to manage data about the database using exactly the same facilities (tablespaces, tables, user accounts, procedures, etc) that an application uses to keep data for the application. See "data dictionary"   So there is no such thing as a completely empty database.
    As said by others, you do NOT want to be creating your own tables under oracle's schemas (users) or in oracle's own tablespaces (esp. SYSTEM and SYSAUX).  Create your own user account/schema.  Create your own tablespace. Make that tablespace the default for that user.

  • How can I change the hostname after Oracle Database XE is installed?

    I currently have XE installed and working on my ubuntu machine.
    When I change the hostname of my machine, oracle database no longer connects and says "ORA-12505, TNS:listener does not currently know of SID given in connect descriptor".
    Can anyone tell me how I can change the hostname of my machine and keep oracle database working correctly?
    Thanks

    Stopping, reconfig, starting the instance is one way, although that is somewhat like using petrol to kill ants.
    The database instance pretty much does not care about the hostname setting. But the listener does- the installer finds the hostname and uses that in the setup bits.
    As posted somewhere here, when using the 1521 default listener port, the listener.ora config file can just be moved out of the way. Another potential fix is setting the HOST=0.0.0.0 for the IPv4 "any IP" address setting, or setting it to the correct hostname. Or HOST= can be set to IPv4 address. For IPv6, have to use HOST=<hostname> and it must resolve, can't HOST=... an IPv6 address.
    To move the listener file, stop the listener first. To change a HOST=... setting, also stop the listener first.
      lsnrctl stop
      mv $ORACLE_HOME/network/admin/listener.ora $ORACLE_HOME/network/admin/listener.bk0
      # or
      vi $ORACLE_HOME/network/admin/listener.ora
      # change HOST=<whatever> to the correct value, or 0.0.0.0
      lsnrctl start
      sqlplus /nolog
      conn system
      ... password ... Connected.
      alter system register;
      exit
      # start the lsnr
      lsnrctl start
      # check the status, services
      lsnrctl stat
      lsnrctl serv
    If the host has a wireless (or another NIC) that one does not want to offer up remote connections on, the 0.0.0.0 is not a good way to go either
    Message was edited by: clcarter
    typos

  • How to stop and start RAC Database

    Hi,
    Can anybody tell me How to stop and start RAC Database.
    Pls give me the exact procedure for OS - IBM Aix 5.3.
    Rajkumar

    Burleson,
    It so appears, as from the numerous times you have been published incorrect, untested information, and non-working scripts, you are not an Oracle guru,
    but only a self-proclaimed one.
    It also appears nothing on your 'CV' can be easily verified.
    You state you are an 'adjunct professor emeritus', however anyone who was kicked out after a few months can call himself a 'professor emeritus'.
    Looking at the enormous amount insults and slander you have posted directed to me and others on this forum, showing a highly unprofessional attitude toward your peers,violating this forums rules of conduct, don't you think you deserved to be banned completely?
    After all, you are always promoting your own publications here, which is also in violation of the rules for this forum.
    What makes you think that "Sybrand" is a man's name? How many male Sybrand's do you know? I don't know any, not one.
    That's your problem. I'm as much as male, as you are a fat, ugly, self-proclaimed Oracle-guru, which you are clearly not, you are only a fraud, and this glares from all of your publications.,
    Sybrand Bakker
    Senior Oracle DBA

  • How to install knowledge base file for oracle text

    how to install knowledge base file for oracle text?
    there are couple of files droldUS.dat,.. which are required to generate gists and themes, where can i find them or install them.
    please help!

    I checked the download page and it says:
    "All Release 2 download pages contain Oracle Companion, Client, Clusterware, Gateways, and Application Express standalone downloads"
    so you should already have it. Try searching for the filename that was in your error message.

  • How can i start oracle databases? i am using Oracle 8.1.6 for linux.

    when i run dbstart,it gives me following message:
    Database "ora4cweb" warm started.
    but when i use sqlplus,it says:
    ORA-01034: ORACLE not available
    i made a mistake ,i shutdown my linux before i shutdown oracle databases,how can i start oracle databases now?thanks in advance.

    try it without the scripts...
    login to linux as oracle
    start server manager
    svrmgrl
    connect internal
    startup
    select sysdate from dual;if that works
    exitcheck listener
    lsnrctl
    statif nothing running type
    start
    exitnull

  • How to install photoshop cc in several languages, Spanish and English

    How to install photoshop cc in several languages, Spanish and English, I've searched the forums, and I have not been able to make or find would be so kind as to explain how I can do, thank you very much

    In
    Re: Change language?
    PECourtejoie posted this Link:
    Installing Multiple Languages of a Desktop Application | CS6 & Creative Cloud Feature Tour for Design | Adobe TV

  • How to load PDF files into oracle database and display them in APEX

    Hi All,
    We have a requirement for loading the Loading PDF files (lots of PDf files) to the oracle database and then display the PDF files in the Oracel APEX report.
    So that User can view the PDF files. Our current APEX verison is 3.2..
    Please let me know how to implement it and where to find the sample application!
    Thanks in advanced!
    Jane

    Thanks Tony for your quick response!
    We need to load a lot of PDfs (history + current).
    I have a questions about the SQL loader. I am trying to insert a pdf file into a table by following the oracle loading sample:
    http://download.oracle.com/docs/cd/B10501_01/text.920/a96518/aload.htm
    Example Data File: loader2.dat
    This file contains the data to be loaded into each row of the table, articles_formatted.
    Each line contains a comma separated list of the fields to be loaded in articles_formatted. The last field of every line names the file to be loaded in to the text column:
    Ben Kanobi, plaintext,Kawasaki news article,../sample_docs/kawasaki.txt,
    But i don't know to where should I put my pdf file on the server.
    for example:
    ,../sample_docs/kawasaki.txt,
    Where is the file 'kawasaki.txt'??
    I try my local path, it didn't work. like c:\temp.
    then I loaded teh PDf file into our server(/findev20/olmtest/orafin/11.5.7/olmtestcomn/temp) , and In my data file. I put the path
    1, pdf_emp1,../findev20/olmtest/orafin/11.5.7/olmtestcomn/temp
    but I got the error: the system can not find the file specified.
    Where should I put the PDf files on the server and how to specify the path in the data file?
    Thanks!
    Jane

  • Script to Stop and Start Oracle Meter Data Management

    Hi,
    This is my first post in Oracle forums so if i open this in the wrong thread please forgive me.
    I tried to create a windows batch script to stop and start Oracle Meter Data Management but i can´t.
    @echo off
    D:\spl\MDMDEV\bin\splenviron.cmd -e MDMDEV
    D:\spl\MDMDEV\bin\spl.cmd stop
    D:\spl\MDMDEV\bin\splenviron.cmd -e MDMDEV
    D:\spl\MDMDEV\bin\spl.cmd stop
    The batch exits in the first command and i can´t understand why.
    Another thing is if i use spl.cmd stop command it doesn´t do nothing, is this normal?
    Thanks in advanced for all replies.
    Best Regards.
    Nuno

    I had to put a call command in mine. I think it is because you are trying to run a .cmd file within your bat file. You're actually changing shells. Thats why you need the call.
    call d:\spl\mdmdev\bin\splenviron.cmd -e mdmdev
    call d:\spl\mdmdev\bin\spl.cmd start
    I actually set mine up to use variables so all I had to change from script to script was the environment...
    <snip>
    SET SPLENV=MDMDEV
    SET INSTALLDRIVE=D:
    SET INSTALLDIR=SPL
    SET BINDIR=%INSTALLDRIVE%\%INSTALLDIR%\%SPLENV%\bin
    %INSTALLDRIVE%
    cd %BINDIR%
    REM Set envornment
    call %BINDIR%\splenviron.cmd -e %SPLENV%
    REM Wait a few seconds for environment to setup
    ping localhost -n 5 > nul
    REM Start SPL Web
    call %BINDIR%\spl.cmd start
    </snip>
    I was unable to find a way to get this to run as a service. Have you?
    I'm currently running these scripts in the startup/shutdown script section of the local machine policy (gpedit.msc).

  • Where should one install Oracle Database and the Grid Infrastructure in order to adhere to OFA?

    I've downloaded the two zipped install folders for Oracle Database, and the two zipped install folders for the Grid Infrastructure.  The book I'm following for installation says to use one directory for the database, and one directory for the Grid Infrastructure, but it doesn't explain where they should be located in OFA.  Presumably they should both end up somewhere in the same Oracle Base (since everything Oracle related on a single file system should go in the same base, according to my understanding), but it isn't clear where they should be installed in relation to each other.  For example, is the Grid Infrastructure a separate product that gets its own Oracle Home?  Can anyone shed light on this process?
    Also, does it matter to which location the zipped files are unzipped?  For example, are any of these files used after the installation process, or does OFA only care about post-installation location?

    I think this links may be helpful -- ORACLE-BASE - Oracle Database 11g Release 2 RAC On Oracle Linux 5.8 Using VirtualBox, http://www.oracle.com/technetwork/articles/hunter-rac11gr2-iscsi-088677.html.
    OFA -- Optimal Flexible Architecture standard. The standard is a set of configuration guidelines created to ensure well organized Oracle installations that are easier to maintain (http://docs.oracle.com/cd/B28359_01/install.111/b32002/app_ofa.htm#LADBI440).
    It relates to location of the grid and dbms files location. Actually you should specify base directory and follow installer. System will be installed in correct directories.
    It does not matter where you will unzip your distributives. You may delete them after installation to free space.

  • How to install Snow Leopard on Macbook Pro? keep getting msg- cannot install Internal HD is used for Time Machine- this was reset to external HD and still get msg?

    How to install Snow Leopard on Macbook Pro? keep getting msg- cannot install Internal HD is used for Time Machine- this was reset to external HD and still get msg?

    At some point, your internal HD was selected for use as Time Machine backups, and a Backups.backupdb folder was created at the top level.   So OSX thinks you're trying to install it on the same drive as your backups.
    Open your internal HD with the Finder (you won't find it via a Spotlight or Finder search) and delete that folder.

Maybe you are looking for