Select * from tab is not working in oracle 10g
select * from tab is not working in oracle 10g. But at the same time,
select * from <<table>> is working.
Please advise me.
This works for me in 10.2.0.2
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL> select * from tab;
TNAME TABTYPE CLUSTERID
LOAN_DETAIL TABLE
PLAN_TABLE TABLE
...
Similar Messages
-
What will you do if any SQL is not working. in oracle 10g....apps 11.5.10.2
928714 wrote:
yes sir.If you help me in answering my questions i wll be very thankful to you sir.
tnx,I haven't a clue.
As you have been advised in many of your posts, go study the documentation for whichever specific topic you are interested in.
For me to answer your questions, I would need to go get that documentation.
Then I would need to read that documentation.
Then I would need to write a forum post that interprets what I think I learned from that documentation.
It is so very much faster if YOU go do that instead of posting to a forum and expecting others to do it. You will remember what you study for a lot longer time if you teach yourself. -
Table_From_Block Build-in Package is not working in Oracle 10G
Hi
Table_From_Block Build-in Package is not working in Oracle 10G
Kindly advice..user648759 wrote:
Hi
Table_From_Block Build-in Package is not working in Oracle 10G
Kindly advice..Provide a little more information. Forms version OS version, more information about your problem and question.
--and explain what on earth Table_From_Block* mean's--
Tony
PS: TABLE_FORM_BLOCK is a built-in for internal use, usually auto generated by forms. For a moment I didn't get what that meant, need more coffee.
Edited by: Tony Garabedian on Aug 29, 2008 12:39 PM -
Ctrl+Z fuctianlity is not working in oracle 10g Form
Hi
I am using oracle 10g form and using
Edit_TextItem to invoke Text Editor
When i using CTRL+Z to undo things in editor it is not working but it works when i used Form6i.
Please help me to solve this issue. i need to this functinality to be work.
BR,
SPSThis works for me in 10.2.0.2
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL> select * from tab;
TNAME TABTYPE CLUSTERID
LOAN_DETAIL TABLE
PLAN_TABLE TABLE
... -
Declarative transaction not working for oracle 10g as.
Hi Friends,
While migrating from sun app server to oracle 10g as, i have problem in declarative transactions.
I created stateless and stateful beans with declarative transactions. Transactions were working fine till they were in sun app server environment, but they fail in oracle 10g as environment.
I build the ear through sun IDE and deployed the ear on oracle 10g as. Things worked fine till transactions come onto picture.Declarative transaction get failed in case of oracle 10g as.
Please if you have faced such problem or have any way to solve this problem, Pls revert back.
rgds,
m_khandurisb92075 thank you for reply. Please see the command outputs.
$ hostname
LONDAN
$ id
uid=503(oaprod) gid=5002(dba) groups=5002(dba)
$ uname -a
Linux LONDAN 2.6.18-274.el5 #1 SMP Fri Jul 8 17:36:59 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
$ ps -ef | grep -i pmon | grep -v grep
oaprod 3810 1 0 May11 ? 00:02:24 ora_pmon_OID
jgarry thank u also. please see the response.
$ ls -rl $ORACLE_HOME/dbs
total 2848
-rw-rw---- 1 oaprod dba 3584 May 8 14:33 spfileOID.ora
-rw-r----- 1 oaprod dba 2867200 Sep 10 10:17 snapcf_OID.f
-rwSr----- 1 oaprod dba 1536 May 5 06:17 orapwOID
-rw-rw---- 1 oaprod dba 24 May 11 17:24 lkOID
-rw------- 1 oaprod dba 8385 May 5 05:18 init.ora
-rw------- 1 oaprod dba 12920 May 5 05:18 initdw.ora
-rw-rw---- 1 oaprod dba 1544 May 11 17:24 hc_OID.dat
ok. previously I set TNS_ADMIN. Now I set TWO_TASK, while connecting now am getting different error "insufficient privilege". Please check following.
$ export TWO_TASK=OID
$sqlplus / as sysdba
SQL*Plus: Release 10.1.0.5.0 - Production on Wed Sep 11 05:22:28 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-01031: insufficient privileges
But, now while connecting with "sys", I don't need to supply "@OID" it's connecting directly with "sqlplus sys as sysdba" command. -
Sqlplus is not working after oracle 10g client installatio on linux server
Him
jsut now i installed oracle 10.2.0.1 client version in one my linux server. after successfully installation sqlplus is not working . could you please chekc and let me know what is the problem? below are my .profile details.
# Set up the shell variables:
EDITOR=vi
export EDITOR
### Set the umask
umask 022
### Set ulimit
#ulimit -u 16384
#ulimit -n 65536
### Set Oracle Environment
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/10.2.0/client_1
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/ctx/lib
export LIB_PATH=$ORACLE_HOME/lib
export ORATAB=/etc/oratab
export NLS_LANG=american_america.we8iso8859p1
export THREADS_FLAG=native
echo ' '
echo 'Oracle 10G environment has been setup'
echo 'Export the ORACLE_SID to target database before connecting'
echo ' '841731 wrote:
Him
jsut now i installed oracle 10.2.0.1 client version in one my linux server. after successfully installation sqlplus is not working . could you please chekc and let me know what is the problem? below are my .profile details.
# Set up the shell variables:
EDITOR=vi
export EDITOR
### Set the umask
umask 022
### Set ulimit
#ulimit -u 16384
#ulimit -n 65536
### Set Oracle Environment
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/10.2.0/client_1
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/ctx/lib
export LIB_PATH=$ORACLE_HOME/lib
export ORATAB=/etc/oratab
export NLS_LANG=american_america.we8iso8859p1
export THREADS_FLAG=native
echo ' '
echo 'Oracle 10G environment has been setup'
echo 'Export the ORACLE_SID to target database before connecting'
echo ' '" sqlplus is not working" is not an actionable error message. Unfortunately, you didn't show us what happens when you try to execute sqlplus.
Essentially, what you've done is the equivalent of 'here's a picture of my garage. Why won't my car start?' -
Simple insert, delete and update not working after oracle 10g installation
Hello,
I made a new installation of Oracle 10g (10.2.0.1.0) and created a schema . Now i try to insert or update data using simple queries, but unfortunately nothing happens. I tried inserting or updating data even via sqlplus, but unfortunately the same result. Query takes infinite time to end, so i had to manually end it every time... No errors... No warnings... but takes long time... I have given all the required permissions to the schema but the same result. Can somebody help me figure out the problem?
Tried creating a new table and the insert and delete are working fine... think the problem is with this table... Imported the rows of the table from another online database. I dont understand how this might be a problem.
Edited by: user13333704 on Mar 15, 2011 1:26 AMHowever how do you generate awr reports and how to find the session wait?TO generate the AWR report
sql> ?/rdbms/admin/awrrpt
http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/autostat.htm#BABDHAGF
The event column in v$session , in v$active_session_wait will show you the session wait event.What the session was actually waiting for.
HTH
Anand -
Downcasting In Object PL/SQL Does not Work in Oracle 10g 10.1.0.2
create type one_t as object (
x number, y date ) not final
create type two_t under one_t()
set serverout on
declare
super one_t;
sub two_t := two_t(1, sysdate);
begin
super := one_t(1, sysdate);
sub := new two_t(1, sysdate);
dbms_output.put_line('sub ' || sub.x || ' ' || sub.y );
select treat(super as two_t) into sub from dual;
dbms_output.put_line('super ' || super.x || ' ' || super.y );
if sub is null then
dbms_output.put_line('stupid');
end if;
if sub is of (two_t) then
dbms_output.put_line('stupid');
end if;
end;
The Other Piece Does not Even Compile
declare
super one_t;
sub two_t := two_t(1, sysdate);
begin
super := one_t(1, sysdate);
sub := treat(super as two_t);
dbms_output.put_line('sub ' || sub.x || ' ' || sub.y );
select treat(super as two_t) into sub from dual;
dbms_output.put_line('super ' || super.x || ' ' || super.y );
if sub is null then
dbms_output.put_line('stupid');
end if;
if sub is of (two_t) then
dbms_output.put_line('stupid');
end if;
end;
ORA-06502: PL/SQL: numeric or value error: cannot assign supertype instance to
subtype
ORA-06512: at line 6You need use correct type when you create object.
Don't forget object in reality is a memory pointer,
so what if you don't allocate correct memory in creation,
you can't treat object as subtype.
And meanwhile, it doesn't depend on Oracle version -
your example doesn't work in 9.2.0.1 for example.
SQL> declare
2 super one_t;
3 sub two_t := two_t(1, sysdate);
4 begin
5 super := two_t(1, sysdate);
6 sub := treat(super as two_t);
7 dbms_output.put_line('sub ' || sub.x || ' ' || sub.y );
8 select treat(super as two_t) into sub from dual;
9 dbms_output.put_line('super ' || super.x || ' ' || super.y );
10 if sub is null then
11 dbms_output.put_line('stupid');
12 end if;
13 if sub is of (two_t) then
14 dbms_output.put_line('stupid');
15 end if;
16 end;
17 /
sub 1 08.06.05
super 1 08.06.05
stupid
 
PL/SQL procedure successfully completed.Rgds. -
Downcasting in Object PL/SQL Does not Work in Oracle 10g Enterprise Edition
create type one_t as object (
x number, y date ) not final
create type two_t under one_t()
set serverout on
declare
super one_t;
sub two_t := two_t(1, sysdate);
begin
super := one_t(1, sysdate);
sub := new two_t(1, sysdate);
dbms_output.put_line('sub ' || sub.x || ' ' || sub.y );
select treat(super as two_t) into sub from dual;
dbms_output.put_line('super ' || super.x || ' ' || super.y );
if sub is null then
dbms_output.put_line('stupid');
end if;
if sub is of (two_t) then
dbms_output.put_line('stupid');
end if;
end;
The Other Piece Does not Even Compile
declare
super one_t;
sub two_t := two_t(1, sysdate);
begin
super := one_t(1, sysdate);
sub := treat(super as two_t);
dbms_output.put_line('sub ' || sub.x || ' ' || sub.y );
select treat(super as two_t) into sub from dual;
dbms_output.put_line('super ' || super.x || ' ' || super.y );
if sub is null then
dbms_output.put_line('stupid');
end if;
if sub is of (two_t) then
dbms_output.put_line('stupid');
end if;
end;
ORA-06502: PL/SQL: numeric or value error: cannot assign supertype instance to
subtype
ORA-06512: at line 6You need use correct type when you create object.
Don't forget object in reality is a memory pointer,
so what if you don't allocate correct memory in creation,
you can't treat object as subtype.
And meanwhile, it doesn't depend on Oracle version -
your example doesn't work in 9.2.0.1 for example.
SQL> declare
2 super one_t;
3 sub two_t := two_t(1, sysdate);
4 begin
5 super := two_t(1, sysdate);
6 sub := treat(super as two_t);
7 dbms_output.put_line('sub ' || sub.x || ' ' || sub.y );
8 select treat(super as two_t) into sub from dual;
9 dbms_output.put_line('super ' || super.x || ' ' || super.y );
10 if sub is null then
11 dbms_output.put_line('stupid');
12 end if;
13 if sub is of (two_t) then
14 dbms_output.put_line('stupid');
15 end if;
16 end;
17 /
sub 1 08.06.05
super 1 08.06.05
stupid
 
PL/SQL procedure successfully completed.Rgds. -
RH Linux VIP configuration not working for Oracle 10g RAC installation
Hi all,
I am trying to setup my test cluster on Oracle 10gR2 and Red Hat Linux 4. I have the public and private networks working fine and setup. However, after I setup the two VIP addresses, I cannot even ping these two virtual IPs from Linux. CRS install fails during initial run because it cannot communicate with the two VIP IP addresses. Can anyone help me out as to how to go about fixing the two VIPs so that Linux can ping them and CRS will install?
ThanksIt sounds like you configured your VIP on Linux in advance, before installing Oracle.
You are not supposed to do that.
Decide on an IP that the VIP will use with your network manager, but don't configure it in Linux. So before you start the clusterware install, ifconfig should not show your VIP.
CRS does not need VIP when you install the clusterware, only the interconnect address.
VIP is configured using a utility called VIPCA. If Clusterware installation fails and you think it was caused by VIP issues, try running VIPCA manually and let us know what were the results. -
Oracle Forms 10G(tabbed canvasses not working the same as in Forms 6i)
Hi everyone,
I have a form which gets called from another form through a list of value. The called form(second form) has a group of tabbed canvases which get displayed depending on the parameters passed from the first form.
The Form is working prefectly fine in Forms 6i but when I converted the same form in to forms 10G it does not seem to work the same way. The tabbed canvasses are not getting displayed. I am manually having to press the execute query to get data displayed in the tabbed canvasses. I checked the parameters that are being passed and they are the same as that in Forms 6i.
Please let me know where my 10G Form is going wrong. Appreciate your help, please send me an email on [email protected]
Thanksduplicate
Re: Oracle Forms 10G not working as Oracle Forms 6i -
Why does right clinking on link and selecting open in new tab does not work?
Why does right clinking on link and selecting open in new tab does not work?
It opens up a blank page. The only way to make the link work is to click on the navigation bar in the new tab and press enter to reload the link.Do you have that problem when running in the Firefox SafeMode?<br/> ''A troubleshooting mode.''<br />
1.You can open the Firefox 4.0 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut. <br />
2. Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut to open it again.''
If not, see this: <br />
http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes -
Xml parser procedur which worked in oracle 8.1.7 not working in oracle 9ir2
hi all,
THE BELOW PROCEDURE TO PARSE A XML WEB PAGE AND RETRIEVE THE DATA INTO TABLE IS WORKING WELL IN ORACLE 8.1.7 , BUT WHEN WE UPGRADED TO oRACLE 9I RELEASE 2 ,,ITS NOT WORKING AND GIVING THESE ERRORS,,
13:44:56 Error: ORA-29532: Java call terminated by uncaught Java exception: java.lang.NullPointerException
ORA-06512: at "SYS.XMLNODECOVER", line 0
ORA-06512: at "SYS.XSLPROCESSOR", line 500
ORA-06512: at "XXCNA.XRATESDLOAD", line 37
ORA-06512: at line 2
CAN ANYONE GIVE A TIP?
REGARDS,
VIJAY
CREATE OR REPLACE PACKAGE BODY XRATESDLOAD AS
PROCEDURE XRATESDLOADP
IS
--DECLARE THE REQUIRED XML PARSER, DOM DOCUMENT,NODES AND NODELLISTS
v_parser xmlparser.Parser;
v_doc xmldom.DOMDocument;
v_nl xmldom.DOMNodeList;
v_n xmldom.DOMNode;
--CREATE A PL/SQL TYPE TABLE
TYPE tab_type IS TABLE OF CNA_XRATES_TEXT%ROWTYPE;
t_tab tab_type := tab_type();
BEGIN
-- Create a parser.
v_parser := xmlparser.newParser;
-- Parse the document and create a new DOM document.
xmlparser.parse(v_parser, 'http://www.xe.com/dfs/datafeed2.cgi?cnaeuropeholdingsltd');
v_doc := xmlparser.getDocument(v_parser);
-- Free resources associated with the Parser now it is no longer needed.
xmlparser.freeParser(v_parser);
-- Get a list of all the CURRENCY nodes in the document using the XPATH syntax.
v_nl := xslprocessor.selectNodes(xmldom.makeNode(v_doc),'/xe-datafeed/currency');
dbms_output.put_line( 'Currency rates processed on '||to_char(sysdate));
--DELETE THE RECORDS IN THE CNA_XRATES_TEXT
delete from CNA_XRATES_TEXT;
dbms_output.put_line( 'Previous records of CNA_XRATES_TEXT table deleted '||to_char(sysdate));
-- Loop through the list and create a new record in a tble collection
-- for each CURRENCY record.
FOR cur_emp IN 0 .. xmldom.getLength(v_nl) - 1 LOOP
v_n := xmldom.item(v_nl, cur_emp);
t_tab.extend;
-- Use XPATH syntax to assign values to he elements of the collection.
t_tab(t_tab.last).CURRENCY_SYMBOL := xslprocessor.valueOf(v_n,'csymbol');
--t_tab(t_tab.last).CURRENCY_NAME := xslprocessor.valueOf(v_n,'cname');
t_tab(t_tab.last).CURRENCY_RATE := xslprocessor.valueOf(v_n,'crate');
--t_tab(t_tab.last).CURRENCY_DATE := xslprocessor.valueOf(v_n, sysdate);
END LOOP;
-- Insert data into the real CNA_XRATES_TEXT table from the table collection.
-- Form better performance multiple collections should be used to allow
-- bulk binding using the FORALL construct but this would make the code
-- too long-winded for this example.
FOR cur_emp IN t_tab.first .. t_tab.last LOOP
INSERT INTO CNA_XRATES_TEXT
(CURRENCY_SYMBOL,
CURRENCY_RATE,
CURRENCY_DATE)
VALUES
(t_tab(cur_emp).CURRENCY_SYMBOL,
t_tab(cur_emp).CURRENCY_RATE,
to_char(sysdate));
END LOOP;
dbms_output.put_line( 'Currency rates inserted into CNA_XRATES_TEXT table on '||to_char(sysdate));
COMMIT;
-- Free any resources associated with the document now it
-- is no longer needed.
xmldom.freeDocument(v_doc);
END XRATESDLOADP;
END XRATESDLOAD;
/Unlike Oracle 7.x, versions 8 and above now internalize the trigger you are looking for within the database itself. So you can no longer have the kind of control over this process as you would have done previously, however the performance has increased according to Oracle.
It is possible to remove these triggers in an emergency as follows:
-- if tab$.trigflag != 0 - then Oracle internal replication triggers are enabled
select * from tab$ where trigflag != 0;
-- to remove Oracle internal replication triggers if replication is not working
-- and needs to be removed in an emergency to allow writing to the tables
-- also do this as sys user
run catrepr
-- also do this as sys user
update tab$ set trigflag=0 where trigflag !=0;
commit;
shutdown immediate;
startup
However this removes all of the triggers - which is not what you want to do in your situation.
You may find some additional helpful commands in the repdoc.txt file on my website:
http://www.dotcomsolutionsinc.net/products/repgen/repgen_example_repdoc1.html
And here is a list of replication setup scripts which could be helpful as well:
http://www.dotcomsolutionsinc.net/products/repgen/repgen_files.html
What is expecially important (as I am sure you know) is the setup of conflict resolution, which I do a little bit differently than I have seen documented elsewhere in order to avoid ORA-1403 errors.
David Simpson
www.dotcomsolutionsinc.net
(Oracle Replication Consulting & Tools) -
SELECT INTO ( variable ) STATEMENTS NOT WORKING FOR SYBASE TABLE AS VIEW
Dear Experts,
We have connected our 9i db with Sybase db using Hs connectivity.
and then we have create the view in oracle db for SYBASE_TABLE as SYBASE_TABLE_VIEW.
ALL THE INSERT, UPDATE AND DELETE COMMANDS ARE WORKING BUT THE
select Into (variable) is not working.
Please help to resolve the select into statment which is in BOLD in the below routine
PLEASE NOTE! FORM WAS COMPILED SUCCESSFULLY AND FORM IS RUNNING BUT SELECT INTO COMMAND IS NOT WORKING.
Thanks & Regards
Eidy
PROCEDURE SRBL_INSERT IS
CURSOR SRBL IS
SELECT impno,impcod,impnam
from oracle_table1 a, oracle_table2 b
WHERE a.impcod=b.empcod
v_srpcod varchar2(5);
BEGIN
FOR rec in SRBL loop
begin
select "im_code" into v_impcod
from SYBASE_TABLE_VIEW
where "im_code"=rec.impcod;
exception when no_data_found then
v_srpcod:=null;
end;
END LOOP;
END;
Edited by: Eidy on Aug 16, 2010 11:28 AMhellow
try this.
select "im_code" into v_impcod
from SYBASE_TABLE_VIEW
where "im_code"=rec.impcod;
v_srpcod := v_impcod ;
........ -
Runtime.exec() in Java not working in Oracle 10 Application Server
Hi ,
I am trying to call a .exe file which is in the Web Application folder .
I am Using Process p = Runtime.exec("path to .exe file ")
This code is working fine when used with JBOSS , but not working with Oracle Application server .
Please tell me whether i need to do any chnages to make it work
Thanks in advance .I ran a quick test with your code, I just had to make some small changes, and things work for me...
I'm testing with JDeveloper 10g 10.1.3.2.0 ...
The only thing I wonder is DBUser DBPass DBHost, those are not the actual values, correct?, neither they are environment variables?...
In the server hosting your OAS, you should try running the whole CMD line from the start/run dialog ... make sure it works in that server ...
Here is the code used in my test:
In JSP:
<%@ page import="runexepkg.*" %>
<%
String msg = "";
try
RunEXE p = new RunEXE();
msg = p.main1();
catch(Throwable t)
System.out.println("Exception Raised");
t.printStackTrace();
%>
<%= msg %>In Java Class:
package runexepkg;
import java.sql.*;
public class RunEXE
String ss="";
public String main1()
try
Runtime rt=Runtime.getRuntime();
Process p = rt.exec("CMD /C start C:\\oraappserver\\j2ee\\WebGis\\applications\\PowerGis\\web\\WEB-INF\\classes\\GisProject\\cust_data_1.exe DBUser DBPass DBHost");
System.out.println("Command has been executed");
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con = DriverManager.getConnection("jdbc:oracle:thin:@DBHost:DBPort:orcl","DBUser","DBPass");
System.out.println("Test Connection ========== "+con);
Statement st = con.createStatement();
ResultSet rs = st.executeQuery("SELECT SYSDATE FROM DUAL");
if(rs.next())
ss="Command has been executed - Database has been accessed";
else
ss="Command has been executed - Database was not accessed";
catch(Throwable t)
System.out.println("Exception raised, command has NOT been executed");
ss="Exception raised, command has NOT been executed";
t.printStackTrace();
return ss;
}Edited by: Rodolfo Ferrari on Jul 23, 2009 10:40 PM
Maybe you are looking for
-
Error while creating Maintenance Plan
Hello, When I am creating a Maint Plan, I am getting error No packages have yet been assigned to the maintenance item 143 Message no. IP364 How do I solve this?? Narendra
-
Fire fox did an update, and now will not work at all.
Firefox did an update, and now will not open, it tells me that it cannot access any site I try
-
Okay, I was having all sorts of trouble yesterday "seeing" my files on my TC. AFter a few trips to the Genius bar, it looks like everything is working okay now, but my Time Machine backups are failing and I'm getting the message that it can't mount t
-
Hi to aeveryone. Using C-RIO, while trrying to communicate beetween host VI and FPGA VI to excanghe simple data, the execution stop and appear this message: Error -50101 occurred at _nirio_device_getDeviceHandle.vi:2 Possible reason(s): The requeste
-
I have a data visual that I basically need to integrate a panning and zooming widget too.... Basically I need a small window of the data visualization at the bottom corner, and I will need the user to be able to zoom in and out and scroll around the