Can't create database from command prompt
I am using Oracle 9i over Win XP. I can create new database using OEM wizard without any problem. However, when I try to create new database from command prompt, using following commands, I get an error.
sqlplus /nolog
connect / as internal (when I issue this I get message TNS no listener)
CONNECT SYS/password AS SYSDBA (can't understand how to use this, I don't have password because I've not created the database)
Can anyone help me how to create new database from command prompt?
Thanx
"TNS No Listener" => Start the listener
To be connected as SYSDBA you dont need a password if your are logged in the DBA group, you just have to :
PROD_:id
uid=102(oracle) gid=103(oinstall)
PROD_:sqlplus "/ as sysdba"
SQL*Plus: Release 8.1.7.0.0 - Production on Wed Jul 23 11:46:50 2003
(c) Copyright 2000 Oracle Corporation. All rights reserved.
Connected to:
Oracle8i Enterprise Edition Release 8.1.7.4.0 - Production
With the Partitioning option
JServer Release 8.1.7.4.0 - Production
SQL> show user
USER is "SYS"
SQL>
Fred
Similar Messages
-
Cant See RTF Files in JAR but can when running program from command prompt
posted August 16, 2005 08:26 AM
Hi ALL:
I have a Java Swing APP. It has Menus which displays information through File I/O in a JEditorPane.
When I run my program from Command Prompt using "java myApp" it shows these RTF Files as it is.
However when I run them after converting Directory into a Executable JAR FILE, it fails. I get a blank JEditorPane. My RTF files are in the CORRECT PATH, just dont get displayed. Rest of the APP works fine.
Chetan
any suggetsionsposted August 16, 2005 08:26 AM
Hi ALL:
I have a Java Swing APP. It has Menus which displays information through File I/O in a JEditorPane.
When I run my program from Command Prompt using "java myApp" it shows these RTF Files as it is.
However when I run them after converting Directory into a Executable JAR FILE, it fails. I get a blank JEditorPane. My RTF files are in the CORRECT PATH, just dont get displayed. Rest of the APP works fine.
Chetan
any suggetsions -
How to Get Input from Command Prompt?
How can i get input from command prompt like
C:\
or linux ?
(Here's what I use now)
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String line;
Whlie((line=in.readLine())!= null)
{ System.out.prinln( line) ; }
IS THERE A BETTER WAY?The main method within a java class accepts command line input through a String array.
In this example args is the String array. You can access the parameters as args[0] for the first parameter, args[1] for the second parameter, etc....
The usage for the example below would be :
c:\EDIFormat file1 file2
Where args[0] would equal file1 and args[1] would equal file2.
public class EDIFormat {
public static void main(String[] args) {
if (args.length < 0) {
System.out.println("No Parameters supplied. Exiting....");
// open input and output files
EDIFiles(args[0], args[1]);
Hope that helps! -
Can I change user name after running essbase from command prompt??
Hi,
I run essbase from command prompt and during this activity I was asked to give user name and password, but by mistake I put wrong user name and now wolud like to chanege it.
Is it possible??
cheers,It worked,
now I was able to connect to easbase from planning, I ve created sample aplication and initialize it but cannot connect to Eas to download data for sample application. After I run the validation there is now only one error displayed:
Essbase / Essbase Administration Services
FAILED Web App Availability of web application context (POL-MPIKULSKI 10080, eas)
Error: com.hyperion.cis.utils.BadResponseCodeException: Bad response code: 404
Recommended Action: Check application is started
I tried to start the eas from start>programs>epm system>essbase>administration services>start administration services(java embeded) but it didnt help.
can I start in in different way??
cheers, -
Unable to run discoverer report from command prompt
Hi,
I'm trying to run the discoverer report from command prompt and i need to schedule the same.
How could i pass multiple values for the parameters?
If i don't pass the optional parameters, the parameter screen is getting pop-up? How to skip optional parameters?
Also, how to pass the data ranges (format for date parameters) ?
I'm using the below command in command prompt:
cd/d E:\oracle\BIToolsHome_1\bin
dis51usr /connect username/password@database /opendb "TIMS-PCJ status Report" /sheet "TIMS observation status report (based on performed date)" /parameter "Test Number" 40351 /parameter "From Date" "01-JAN-2007" /parameter "To Date" "28-FEB-2007" /parameter "Observation Status" C /parameter "Observation Name" "Abdominal Girth" /export HTML "C:\DISCOVERER_REPORT_SCHEDULING\DIS_OUTPUT\PCJStatusOutput11"
Any one please reply me. Its very urgent.
Regards,
SreedharHi,
How could i pass multiple values for the parameters? You should be able to use a comma separated list e.g.
/parameter "Observation Name" "'Abdominal Girth','Abdominal Girth2'"
How to skip optional parameters?I don't think you can. You have to supply all parameters and then decode out the parameters you don't need in the workbook.
how to pass the data ranges You cannot pass a date range. You can pass a start and end parameters. The default format for the date parameters is DD-MON-YYYY but this can change depending on the NLS settings and format of the data item.
Rod West -
Launching Index Tuning Wizard from command prompt
I have been playing with index tuning wizard and I could not figure how to launch it from command line (Manual says it can be launched via management console or oracle expert).
DB2 and SQL Server provide executables which can be launched from command line. For example, below command evaluates given workload on target database and recommends something if necessary.
Command> itw -d <targetDB> -w <workloadFile> -o <indexRecommendations>
Is it possible to launch Oracle Index Tuning Wizard from command prompt in a similar way?
-fa"TNS No Listener" => Start the listener
To be connected as SYSDBA you dont need a password if your are logged in the DBA group, you just have to :
PROD_:id
uid=102(oracle) gid=103(oinstall)
PROD_:sqlplus "/ as sysdba"
SQL*Plus: Release 8.1.7.0.0 - Production on Wed Jul 23 11:46:50 2003
(c) Copyright 2000 Oracle Corporation. All rights reserved.
Connected to:
Oracle8i Enterprise Edition Release 8.1.7.4.0 - Production
With the Partitioning option
JServer Release 8.1.7.4.0 - Production
SQL> show user
USER is "SYS"
SQL>
Fred -
Selecting different homes from command prompt
Hi Gurus,
Oracle client-9201
Oracle client-10201
Win XP SP2
We have two oracle homes. We want to switch it from one to another. We have restriction that this should be done from command prompt only. Although I can change homes launching latest OUI and going to "INSTALLED PRODUCTS" tab where we find ENVIRONMENT tab. There it is possible to change home and apply. But this thing I want to do from command prompt.
Any help will be highly appreciated.
Regards.
VirendraNo, you don't want it to be from a command prompt and from OUI. What you want is to be able to do this without the need to visit all 400 client boxes. The method is irrelevant, as long as it efficiently achieves your real goal.That is true.
You keep saying "command prompt" and "OUI", but can't visit all the necessary machines. So what were you envisioning? Creating some batch file you could distribute to all affected users over the network, and ask them to execute said batch file? That may (or may not) be valid, but to find the best solution we have to clearly define the real requirements and separate that from any pre-concieved solution.You can say it is my pre-concieved assumption that I will go with Command Prompt/OUI. But the real problem is I don't want to visit all machines. It can be a batch file distributed to all machines or our network people may execute it sitting on domain controller machine from which he can run programs in background of any machine in network.
From the other things discussed on this thread, I suspect you are going to have to blow in some registry hack, by one of several possible means. But first we have to know what your real constraints are and all of the options open to you.Real constraint is, We don't want (rather can't) visit all 400 terminals.
Do you have the ability to push registry settings at client logon?Yes, We can.
Can you guarantee the consistency of configuration of all 400 clients?Home name and Location may be different on different machines.
Do you have the ability to force the automatic execution of a command file from a file server and client log-on time?Yes, it is possible.
Are you working with your network people to explore what help they might be able to provide on the above points?They may help us depending upon the requirement.
Regards
Virendra -
Connecting to oracle10g from command prompt
Hello All,
Please reply to following doubts/queries. Any help is highly appreciated.
1.Without having any other tool, is it possible to connect to a remote oracle10g server from windows command prompt.
I have used following command in MySQL database for this purpose:
"mysql -u database_user_name -ppassword".
2. My second question is about Oracle SQL developer(version 1.5.4). I am having this tool installed on my machine.
So, how can i now connect to remote Oracle 10g server from command prompt.
My purpose is to run batch file thereby calling a stored procedure.
Thanks.Hi,
1.Without having any other tool, is it possible to connect to a remote oracle10g server from windows command prompt.
I have used following command in MySQL database for this purpose:
"mysql -u database_user_name -ppassword".AFAIk, we can't correct in such ways. I might be wrong too, since I have not tested with mysql anytime.
2. My second question is about Oracle SQL developer(version 1.5.4). I am having this tool installed on my machine.
So, how can i now connect to remote Oracle 10g server from command prompt.
My purpose is to run batch file thereby calling a stored procedure.You need to configure the appropriate connections identified - user/ password - wher DB host is residing IP address and port number and sid of oracle instance. Carry out those things then you can connect to DB.
Execute the batch files from DB Server - its better approach.
- Pavan Kumar N
Oracle 9i/10g - OCP
http://oracleinternals.blogspot.com/ -
To test proxyservice from command prompt
Hi,
I need to know the complete steps that I need to follow to test my proxy service from command prompt. Its urgent so please help.
regards
rahul.You should be more specific as it's hard to guess what you really want to achieve.
If you want to perform functional test from command line, then you can perhaps try command line features of SoapUI:
http://www.soapui.org/Test-Automation/functional-tests.html
First, create a common project using SoapUI GUI and than you can execute it from command line. -
Not able to compile from command prompt
Hi,
I have a javafx class which calls java object. I'm able to compile project from NetBeans but not from command prompt.
When i compile from command prompt compiler shows error saying it can not identify symbol (treats java class name as symbol).
I have already compiled my java class, and is in same dir as my java fx class.
Any reason for such beahviour?? and some solution plsssimport java.lang.Math;
import javafx.application.*;
import javafx.input.*;
import javafx.scene.*;
import java.lang.System;
import com.sun.javafx.runtime.sequence.*;
import java.util.Iterator;
import dekoh.photo.command.ImageService;
public class ImageRotater extends CustomNode{
public attribute image: Image;
public attribute x: Number;
public attribute y: Number;
public attribute angle: Number;
private attribute startX: Number = 0.0;
private attribute startY: Number = 0.0;
private attribute startA: Number = 0.0;
private attribute moverOpacity: Number;
private attribute rotatorOpacity: Number;
private function toggle(mo:Boolean, ro:Boolean): Void {
moverOpacity = if (mo) 0.5 else 0.0;
rotatorOpacity = if (ro) 0.5 else 0.0;
public function create(): Node {
var cx = image.width / 2.0;
var cy = image.height / 2.0;
var mover = Circle {
cursor: Cursor.CROSSHAIR,
radius: 20,
centerX: cx, centerY: cy,
anchorX: bind x + cx,
anchorY: bind y + cy,
fill: bind Color.rgb(200, 200, 255, moverOpacity),
onMouseMoved: function(e:MouseEvent):Void {
toggle(true,false);
onMouseExited: function(e:MouseEvent):Void {
toggle(false,false);
onMousePressed: function(e:MouseEvent):Void {
toggle(true,false);
startX = e.getStageX();
startY = e.getStageY();
onMouseDragged: function(e:MouseEvent):Void {
toggle(true,false);
x = x + e.getStageX() - startX;
y = y + e.getStageY() - startY;
startX = e.getStageX();
startY = e.getStageY();
var rotator = ShapeSubtract {
cursor: Cursor.HAND,
fill: bind Color.rgb(200, 200, 255, rotatorOpacity),
onMouseExited: function(e:MouseEvent):Void {
toggle(false,false);
a: Circle {
centerX: cx, centerY: cy, radius: mover.radius * 3.0,
b: Circle {
centerX: cx, centerY: cy, radius: mover.radius,
var border = Rectangle{
width: image.width, height: image.height
arcWidth: 20, arcHeight: 20,
return Group {
anchorX: cx, anchorY: cy,
rotate: bind angle,
translateX: bind x,
translateY: bind y,
content: [ ImageView {
clip: border,
image: image, clipAntialiased: true,
}, DelegateShape {
shape: border,
stroke: Color.rgb(200, 200, 200, 1.0), strokeWidth: 4,
}, rotator, mover ]
var contents:ImageRotater[] = [];
var i = 0;
var urls = ImageService.getUrlList(); // calling static method of java class
var j=0;
while(j<urls.size()){
var img:Images = urls.get(j) as Images; // another java class.
var imgRot = ImageRotater {
image: Image { url: img.getUrl() },
x:img.getX(), y:img.getY(), angle:90
insert imgRot into contents;
j++;
Frame {
title: "JavaFX"
width: 1080, height: 480
visible: true
closeAction: function() {
java.lang.System.exit(0);
stage: Stage {
fill: null
content: contents
On Compiling from command prompt
F:\dekohv6\butterfly\installer\samples\picApp\src\dekoh\photo\command>javafxc ImageRotater.fx
ImageRotater.fx:17: cannot find symbol
symbol : class ImageService
location: package dekoh.photo.command
import dekoh.photo.command.ImageService;
^
ImageRotater.fx:115: cannot find symbol
symbol : variable ImageService
location: class dekoh.photo.command.ImageRotater
var urls = ImageService.getUrlList();
^
ImageRotater.fx:118: cannot find symbol
symbol : variable Images
location: class dekoh.photo.command.ImageRotater
var img:Images = urls.get(j) as Images;
^
ImageRotater.fx:118: cannot find symbol
symbol : variable Images
location: class dekoh.photo.command.ImageRotater
var img:Images = urls.get(j) as Images;
^ -
I updated to Muse 2.3. Everytime I open an old site or create a new one then try to save or save site as, I get error message "openCreate can't create database over file that already exists"
I have tried uninstalling then reinstalling Muse and Air (a couple of times). Also tried the cleaner.
Any suggestions? Of course a tad urgent. Muse is great program, but its usefulness seems to be inversely proportional to the urgency of need.
Thank you for any help.
AlanThanks Zak for getting back to me so quickly. I seem to have solved the problem (fingers crossed).
I restored my Windows 7 system to a point before I installed the latest update to Muse (2.3) [the restore also went back before large windows update that happened this week]. I tried to start Muse up and I got an error message saying it was a damaged installation. I uninstalled then reinstalled AIR. Then I reinstalled Muse. Seem to be working fine now.
The only thing I can think that happened to mess things up was that I used the Cleaner after I uninstalled Muse originally? I used it for the CS6 version. I noticed that Muse was listed under my CS 5.5 installation too (I think it said Muse 16 - maybe v1 or the beta?). I uninstalled that too so maybe I had a corrupted installation from earlier or the beta still hanging around my system?
I really appreciate the prompt support. I will let you know if anything else happens - let me know if you'd like any more info.
Alan -
Test Execution hangs while executing a test from Command prompt option
I have done the following
1) Created a script Test driver
2) Added different scripts as Script->Properties->Assets to the driver script
3) Call each of this asset script from TestDriver using command getScript("<<ScrptName>>".run(1, true, true, true);
4) Now calling this TestDriver script from command prompt with command
e:\\OracleATS\\agent
runScript.bat E:\\INTEGRATION_SERVICES\\Identity_management\\Automation\\Scripts\\MasterScripts\\TestDriver
TestDriver.jwg
The script execution hangs at "Initializing VU 1 for Script TestDriver. After few mintues of seeing this message i get error "Execution Timed Out".
Do I need to keep openscript UI open for script execution from command line ?
Is there any way to increase this Execution Time out ? May be it is taking time to load the internal script assets. AS other scripts are running fine on the same machine from command prompt itself.
Complete error is as follows
C:\Documents and Settings\oracle>e:\\OracleATS\\agent\\runScript.bat E:\\INTEGRATION_SERVICES\\Identity_management\\Automation\\Scripts\\MasterScripts\\TestDriv
er\\TestDriver.jwg
Running "TestDriver" ...
Agent started. Available commands:
stop - Stop the virtual user after it finishes the current iteration.
abort - Abort the virtual user cleanly, before it finishes the current itera
tion.
exit - Terminate the process immediately
You may type the above commands at any time.
12:17:53,418 INFO [1] Initialized script service "oracle.oats.scripting.modules.utilities.api.UtilitiesService"
12:17:53,418 INFO [1] Initialized script service "oracle.oats.scripting.modules.browser.api.BrowserService"
12:17:53,418 INFO [1] Initialized script service "oracle.oats.scripting.modules.functionalTest.api.FunctionalTestService"
12:17:53,465 INFO [1] Initialized script service "oracle.oats.scripting.modules.webdom.api.WebDomService"
12:17:53,856 INFO [1] Initialized script service "oracle.oats.scripting.modules.datatable.api.DataTableService"
12:17:53,856 INFO [1] Initializing VU 1 for script TestDriver
Execution Timed Out.Hi e_raja_sekar,
You wrote:
public static void main(String args){should be
public static void main(String args[]){Granted, the below code was tested on Windows XP using J2SE SDK 1.4.1_02 (and not 1.2.2 like Sridhar is using), but when I compiled and executed this code:
public class BadMain {
public static void main(String args) {
System.out.println("Hello World");
}The output I got was:
Exception in thread "main" java.lang.NoSuchMethodError: mainSo I don't think this is Sridhar's problem (but I could be wrong) since he says that he gets no error message.
Cheers,
Avi. -
Java.sql.SQLException: can't create statement from closed connection
java.sql.SQLException: can't create statement from closed connection.
at com.caucho.sql.QPooledConnectionImpl.prepareStatement(QPooledConnecti onImpl.java:411)
I am getting this error with my JSP's, i am running on Resin on Win2k, and MySql as backend.
Has anyone else also faced this issue ?
Looking for someone to help me to solve this issue.
rcLooking for someone to help me to solve this issue.Maybe you are closing the connections. You might want to verify that you are not doing that. Or if you are that that is the correct way to return the connection to the pool.
Or you could have stale connections. Some databases will time out connections if the connection is no used in a while. (This is a good thing.) But this means connection pools must do something with connections that are not used for a while. The pools usually have a configuration option(s) which allows you to set up a keep alive message which keeps the database from closing the connection. -
How to save a fmb in the database thru command prompt?
Hi,
How to save a fmb in the database thru command prompt?
I have around 25 fmb template files which needs to be saved in the database.Every time when we apply the new dump , we need to resave the templates in the database to compile other application related fmb files.Its a time consuming process and Monotonous for me. Is there anyway to save the forms in the database thru batch file, so that just I have to execute the batch file every time.
Expecting your earliest feedback.
Thanks & Regards,
G.S -
[email protected] / [email protected]Hi Frank,
Thanks for your feeback.
I am using forms6i.Basically our application was migrated from 4.5 to 6i two years back. Due to some reasons our technical team members are insisting us to store the template FMB's into the database to do the coding activities at site.
Once in a month we are receiving the live dump for test database.Hence the problem.
Please suggest the easiest way to store the template FMBs in the database.
Thanks & Regards,
G.S -
Call an ABAP program or a function module from command prompt/python script
Dear All,
I want to call a function module/ABAP program from command prompt or a python script.
Let me explain with an example.
There is a function module "z_add" that takes two integers as input parameters and generates their sum.
the sum is the output parameter.
Now i want to call this function module from command prompt / python script and pass parameters to this function module.
In return i must get the sum(i.e. the output of function module).
I tried using STARTRFC ,was able to call the FM but could not get the return value(output) from FM.
Can you please provide me the code of such a function module and the method to call it thereby passing parameters and getting the sum.
Thanks and regards,
Gaurav
Edited by: gauravkec2005 on Mar 4, 2010 7:41 AMthank you both! helpful answers! :o)
anyway!
i have written the program which is called from the SAPScript:
/: PERFORM GET_VATNUMBER IN PROGRAM ZFI_F140_OPERATIONS
/: USING &BKPF-BUKRS&
/: CHANGING &VATNUMBER&
CE VAT Registration No : &VATNUMBER&
REPORT zfi_f140_operations.
FORM get_vatnumber TABLES in_par STRUCTURE itcsy
out_par STRUCTURE itcsy.
DATA: lv_co_code TYPE bukrs,
lv_vat_no TYPE stceg.
READ TABLE in_par WITH KEY name = 'BKPF-BUKRS'.
MOVE in_par-value TO lv_co_code.
SELECT SINGLE stceg FROM t001
INTO lv_vat_no WHERE bukrs = lv_co_code.
out_par-name = 'VATNUMBER'.
WRITE lv_vat_no TO out_par-value.
CONDENSE out_par-value.
MODIFY out_par INDEX 1.
ENDFORM.
it is not working and i cannot work out why...
i have not been ABAPing for very long but have had a go....
any thoughts as to what i have done wrong?
or point me where i should be looking? thank you!
Maybe you are looking for
-
Is there any way to uncomact the inbox and go back to a folder with files in it?
I am running Thunderbird 24.5.0 on Windows 7 Home Premium 64 bit. I let my inbox get rather big and Thunderbird decided to compact it, it seems to be just one file now. Now my virus checker says it has found a threat in the file InBox and wants to de
-
.nrw files will not open in cs5?
why won't nrw files open in cs5?
-
Once iPhone - phone plan is terminated, can I use this device as a iTouch?
Once iPhone - phone plan is terminated, can I use this device as a iTouch?
-
helo xi guroos. i just got one doubt like in my scenario i have created one message mapping program. in this mapping program i want to test for multiple records in body. i found a technique of duplicate subtree for creating dummy multiple records in
-
Just upgraded iphone 4s to version 6 now itunes wont detect it. Any fixes or ideas?
Just upgraded iphone 4s to version 6, now itunes either doesnt detect it or says I need new version of itunes (which I'm up to date on). Any ideas or fixes?