Solved

Oracle 11g AND Linux5

Posted on 2009-05-08
9
284 Views
Last Modified: 2013-11-11
Experts,

         I just installed Oracle 11g on Linux Red Hat and need to run custom scripts. How can I run .sql scripts from Oracle Enterprise Manager?
0
Comment
Question by:missymadi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 3
9 Comments
 
LVL 48

Accepted Solution

by:
schwertner earned 500 total points
ID: 24344386
Invoke as 'Oracle' user SQL*Plus

sqlplus /nolog

SQL>
SQL>connect sys/password@conn_string as sysdba
Connected.
SQL> @ /u01/..../script.sql

But you will experience some difficulties.

Look in TNSNAMES.ORA file for  conn_string mentioned above.
Also check if the instance is registered by the listener:

lsnrctl status
lsnrctl services

Check if Oracle is up:

ps -ef | grep pmon
0
 
LVL 29

Expert Comment

by:MikeOM_DBA
ID: 24366210
To run scripts from OEM, on the database home page look for a "Execute SQL" link at the bottom of the page.
0
 

Expert Comment

by:Edward Joell
ID: 25730860
How can the first person be awarded the points when he didn't even read the question.  Thank you MikeOM_DBA I've been trying to figure out how to do this for days.
0
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
LVL 29

Expert Comment

by:MikeOM_DBA
ID: 25731874
Also if you click on the "Jobs" tab, you can create and schedule sql scripts.

0
 

Expert Comment

by:Edward Joell
ID: 25733391
Right.  What I was doing was copying the script for creating tables from a schema on a database on another server to a schema on a local database on my machine.  And I could figure where in EM you could do this but I knew there had to be a place.  Now if I could only figure out how to generate a schema diagram....
0
 
LVL 29

Expert Comment

by:MikeOM_DBA
ID: 25733598
To generate schema diagram you need a utility like Erwin or even Visio to reverse-engineer the schema and get the data model (and diagram).

0
 
LVL 48

Expert Comment

by:schwertner
ID: 25737309
Oracle has launched a tool that is paid but free for testing:
DATAMODELLER
It does also reverse engineering.
0
 

Expert Comment

by:Edward Joell
ID: 25739337
What a shame.  I already successfully reversed engineered what I had to Visio but I was hoping Oracle had something with better imagery.  DataModeller, huh.  I will look into it.
0
 
LVL 48

Expert Comment

by:schwertner
ID: 25740675
Good luck and success!
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question