PROMPT Command equivalent in Oracle 7
Hi All,
I am working on a database Health check script . I Have to implement this on a Oracle7 server running on OS HP-unix. I have done with this health check script on all the 9i servers. The same script i have to modify and implement in Oracle7 database also. To print Headings or titles in Oracle 9i i used PROMPT command. So which is the equivalent command that can be used in Oracle7. I want to print the headings. Kindly assist me.
877920 wrote:
Same error. Unable to login.
SQL> connect / as sysdba
ERROR: ORA-01017: invalid username/password; logon deniedAs far as I recall, sqlplus back then did not support this specific logon syntax. Qualify the connection string using username and password. e.g.
sqlplus sys/mysecretpassword
The sysdba role will likely not be enabled - but that should not be an issue for running a bunch SQL selects.
Also reconsider using the sys schema for logging on. The only time this schema should be used is for actual database maintenance - like doing a shutdown, changing initialisation settings, doing an upgrade and so on.
Using it as your personal superuser logon is not a good idea and one that you will be nailed for (and very hard) in any security review or audit.
Rather create a new schema and grant it the minimal rights needed to do perform the required job.
PS. Cannot recall if connect internal also worked in sqlplus back then - but that can be tried if you want a sysdba connection from sqlplus itself.
Similar Messages
-
When i boot the cd,it can boot but after a while,the prompt command had been display on my laptop screen then i can't install the windows.anyone can help me?i'm from malaysia.thank you all
Hi,
Please refer to the guide provided by
T. Kujala to correctly install Windows 8.1, if you have already followed the instruction, and the issue persists, then please post a screen shot of the "prompt command displayed on the screen" you mentioned for better understanding. Meanwhile,
please make sure that the installation CD itself is not broken.
Yolanda Zhu
TechNet Community Support -
DMBS_SQL.to_refcursor equivalent in Oracle 10g
Hello,
Is there any other way to get result as a refcursor in Oracle 10g with DBMS_SQL? I have the function that function generate dynamic query and execute with DBMS_SQL. This function called by java code for viewing result as report. How can I do this, is there equivalent in Oracle 10g for DMBS_SQL.to_refcursor? Please help.
Thanks,ilkinesrefli wrote:
Is it difficult to understand my answers?Yes, because they are not accurate. You keep saying you can't use ref cursors and must use DBMS_SQL, but you have failed to show us why that is so.
It is impossible because there is dynamic where clause in my query. Show us why it's impossible.
BluShadow please solve this one:
p_sql := 'select empno, ename, deptno from emp where deptno=:pdeptno';
if ... then
p_sql := p_sql || ' AND empno=:pempno';
end if;
...Is it possible by your way?Yes, ref cursors can be used for dynamic queries. basic example...
SQL> ed
Wrote file afiedt.buf
1 create or replace function get_refcursor(p_sql in varchar2
2 ,p_whereclause in varchar2 := null
3 ,p_whereval in number := null) return sys_refcursor is
4 v_rc sys_refcursor;
5 begin
6 if p_whereval is not null then
7 open v_rc for p_sql||' where '||p_whereclause using p_whereval;
8 else
9 open v_rc for p_sql;
10 end if;
11 return v_rc;
12* end;
SQL> /
Function created.
SQL> var rc refcursor;
SQL> exec :rc := get_refcursor('select empno, ename, deptno from emp');
PL/SQL procedure successfully completed.
SQL> print rc;
EMPNO ENAME DEPTNO
7369 SMITH 20
7499 ALLEN 30
7521 WARD 30
7566 JONES 20
7654 MARTIN 30
7698 BLAKE 30
7782 CLARK 10
7788 SCOTT 20
7839 KING 10
7844 TURNER 30
7876 ADAMS 20
7900 JAMES 30
7902 FORD 20
7934 MILLER 10
14 rows selected.
SQL> exec :rc := get_refcursor('select empno, ename, deptno from emp', 'deptno = :1', 20);
PL/SQL procedure successfully completed.
SQL> print rc;
EMPNO ENAME DEPTNO
7369 SMITH 20
7566 JONES 20
7788 SCOTT 20
7876 ADAMS 20
7902 FORD 20
SQL>So, please explain to us again why ref cursors are impossible to use and you have to use DBMS_SQL? -
How to find GUI SQL*Plus command tool in Oracle 8i (version 8.1.7)
I had installed Oracel 8i Enterprise Edition (version 8.1.7) on my server machine (Windows NT 4.0), I'd like to use Oracle Navigator (GUI SQL*PLUS command tool), but I can not find it from the menu. I know Oracle Navigator is available in Oracle 7. Can anyone tell me where and how to use GUI SQL*PLUS command tool in Oracle 8i Enterprise Edition (version 8.1.7) ?
thanks a lot.
David ZhuHi
Oracle Navigator is part of Personal Oracle7 and Oracle Lite. I don't know is it available in 8i Personal Edition but I am sure that it is not part of Standard and Enterprise Edition.
Regards
null -
Can't execute java from prompt command. . .
hello!
that's the following:
I'm trying to execute
"java Teste.class "
from prompt command and it throws:
Exceptio in thread "main" java.lang.NoClassDefFoundError
in thread main. The Teste.java file is compiled finely using
"javac Teste.java"
My enviroment variables are cofigured this way:
NAME: JAVA_HOME VALUE: C:\Arquivos de programas\Java\jdk1.5.0_03
NAME: PATH VALUE: C:\Arquivos de programas\Java\jre1.5.0_03\bin
NAME: CLASSPATH VALUE: C:\Arquivos de programas\Java\jre1.5.0_03\lib
the vm and jdk directory is this:
C:\Arquivos de programas\Java\jdk1.5.0_03
C:\Arquivos de programas\Java\jre1.5.0_03
and the Teste.java is:
package teste;
public class Teste{
public Teste(){
System.out.println("Testando, Testando, Testando");
public static void main(String[] args){
Teste exe = new Teste();
}So if you have any suggestion, please post it. Thanks!!Soneca,
You're a complete idiot.
Along with crossposting every question you have you often respond like this in threads. Just a complete jacka$$.
I'll be sure to ignore you in future other than to point out your crossposts when I find them of course.
This previous thread of yours (cross posted as always [in 4 forums!!!]) really is demonstrative of the fundamental deepness of your nitwittery
http://forum.java.sun.com/thread.jspa?threadID=764824 -
Can't execute java from prompt command on xp. . .
hello!
that's the following:
I'm trying to execute
"java Teste.class "
from prompt command and it throws:
Exceptio in thread "main" java.lang.NoClassDefFoundError
in thread main. The Teste.java file is compiled finely using
"javac Teste.java"
My enviroment variables are cofigured this way:
NAME: JAVA_HOME VALUE: C:\Arquivos de programas\Java\jdk1.5.0_03
NAME: PATH VALUE: C:\Arquivos de programas\Java\jre1.5.0_03\bin
NAME: CLASSPATH VALUE: C:\Arquivos de programas\Java\jre1.5.0_03\lib
the vm and jdk directory is this:
C:\Arquivos de programas\Java\jdk1.5.0_03
C:\Arquivos de programas\Java\jre1.5.0_03
and the Teste.java is:
package teste;
public class Teste{
public Teste(){
System.out.println("Testando, Testando, Testando");
public static void main(String[] args){
Teste exe = new Teste();
}So if you have any suggestion, please post it. Thanks!!try
java -cp <Location_of_Teste.class> Teste
Message was edited by:
sssow
Message was edited by:
sssow -
I'm trying to bring up a prompt command. I can bring up the window but I cannot bring up the file with it when I type it in, if that makes any cense to anyone. this is what I have in my file
class HelloWorld{
public static void main(string[]args)
system.out.printin("Hello World!");
and I saved it in a File in Cdrive named Week 1 Directory and I'm supposed to send a picture of the command prompt to the proffesor but I can't get it to work. can anyone tell me what is going on.
thanks need all the help i can get1. Compile your source code with javac. Ensure there are no exceptions and that all .class files are built
2. Open a command line (on windows, run 'cmd')
3. Run 'java mypackage/myapp' - java will actually open a command line if you didn't run from the command line. -
How to execute a Command Prompt command from J2SE code executing on Windows
How to execute a Command Prompt command from J2SE code executing on Windows??
Please help me[http://java.sun.com/docs/books/tutorial/getStarted/]
~ -
Using sqlplus command after installing oracle 9i on RHEL 3
Hi experts,
I have installed oracle database on Redhat enterprise linux 3.
Install location is /home/oracle/ora9i.
Version Oracle 9i (9204)
after installation when I typed follwing commands ..it did not work
$ sqlplus /nolog
Please help me with this.
Thanx in advance ...
Deepakduplicate post of following thread
Using sqlplus command after installing oracle 9i on RHEL 3 -
SQL XMLExplicit equivalent in oracle
Hi
Is there any equivalent in oracle for SQL XMLExplicit?
In SQL the XMLExplicit will add all the retunded nodes under the single root node like that any equivalent is available in oracle.
Thanks
SurendraI hope you will get better answers if you post this in Sql/Plsql Forum ..
PL/SQL
This one is one of the genuine and active forums .. :) -
HANA equivalent of oracle's sql%rowcount to get affected rows.
I want to get the number of rows affected from an insert or update statement inside a stored procedure.
Is there any equivalent to oracle's sql%rowcount that can be called after the query.
For example:
create procedure procedure_name
begin
declare l_c integer;
insert into table values ('somevalue');
l_c := sql%rowcount; -- This would return 1 for the row inserted.
end;Yes, after the INSERT statement....
SELECT ::ROWCOUNT into L_C FROM DUMMY;
Cheers,
Rich Heilman -
How to use "choose file with prompt" command?
I need to use "choose file with prompt" command and I want give user possibility choose ONLY images (jpeg, png, gif). So, I write like this:
choose file with prompt "Please, choose images for processing..." of type {"JPEG Image"}
But this doesn't work! - All files (including jpegs) are dimmed, and user can't choose any....
So, how can I filter JPEGs, PNGs and GIFs?I have found, that most of images on my computer has missing file_type, I don't know why..... so "type identifier of (info for (choose file))" also doesn't work properly.
The only one way that 100% works is use Uniform Type Identifier (UTI) -- details here: http://www.huw.id.au/code/fileTypeIDs.html
thanks.
iMac G3, PowerBook G3 FW Mac OS X (10.4.5) -
EPMA Batch client command Equivalent to Select Top Member
Hi
I am looking for EPMA batch client command equivalent to performing "Select Top Members" in web against a shared dimension in Application library.
I can find commands for exclude members in the document but could not find any Dimension Property or Command which will help me to automate this.
Thanks in Advance.
RamI don't believe there is a command that will do that yet.
Cheers
John
http://john-goodwin.blogspot.com/ -
Hello All
When I click on any datamanager package from BPC for Excel, I am getting the following error:
"An error occurred in the EvModifyPkg Prompt command.
An invalid prompt type is specified. [Automation error]"
I am also not allowed to modify the package and receive error:
"Microsoft .Net Framework
An unhandled exception has occurred in a component in you application.
Click continue and application will ignore and attempt to continue.
Specified cast is not valid. "
The application was running fine till morning and now we receive this issue.
Please suggest for some methods to correct it.
Regards
AbhishekHI Nilanjan
1. It is happening with all the packages. Even the pre-delivered packages.
2. I tested Apshell and the packages there also throw same error.
I have even copied the packages from a running environment but they donot work.
Server diagnostic is also OK.
Please suggest as I think this is due to some DLL file.
Thanks
Abhishek -
i have just purchased my first JAVA book
"A Framework for Programming and Problem Solving"
Anyway, I have not gotten far at all because it asks me to use the prompt command early on to find the directory or make up one. I don't understand what that means. It came with a CD Rom with JBuilder on it. Why am I having to type using the command prompt and notepad as an editor? Is the JBuilder not the compiler/editor? I am confused and frustrated. Please help.JBuilder is an IDE (Integrated Development Environment).
The Java SDK contains the compiler.
Notepad is a text editor.
There are many ways to enter, compile and run Java
programs. JBuilder is one environment, but it separates
the programmer from what is actually going on within the
computer. The author is probably trying to encourage
you to use notepad and the command prompt so that
you will understand what JBuilder does for you when you
tell it to "Make MyProject".
IMHO, when you are first learning to program, using a
text editor is probably best because you are required to
write all of the code and you control the compilation and
execution yourself. When you understand the basics of
programming it's great to use an IDE for the features that
they include. I would also suggest that you use TextPad
instead of notepad. It can be used to highlight Java code
and can also be configured to compile and run your
programs.
Hope that helps!
Mark
Maybe you are looking for
-
Excel data read from users and upload in to Oracle DB using custom webpart
Hi Team, I need to get the excel date from user using file upload control and read the data from the excel using custom webpart and validate the each rows whether having the values or not and need to upload the data to the oracle database. Can you pl
-
I want to *use* very long file and path names!
This is really a plea to Microsoft... There are several threads about copying or deleting files where the path and/or file name is too long. Most have explanations of why this problem occurs. (depending on Windows version and application, the total
-
Withholding tax in cash flow forecast FF7B
Hello experts, Do you know if there is a way to display planned withholding tax payments in the cash flow forecast FF7B? Today the forecast report displays the entire amount in the vendor's line , while that payments that include withholding tax amou
-
Insert query not working?
i have created the following table in sql CREATE TABLE cw06_student (registrationno VARCHAR2(8) CONSTRAINT registrationno_pk PRIMARY KEY, course NUMBER(4) CONSTRAINT student_course_nn NOT NULL, tutor NUMBER(4), title VARCHAR2(4) C
-
Slow BB download speed after 16:30. Works fine in ...
I'm at wits end with BT and the service I receive. I only wish I could choose to pay a 10th of the price for the service I receive. I have tried to use the BT call centre with no avail. The words “chasing ones tail” spring to mind. Hence adding my tr