Re - Oraganize table in Oracle 11 G
Hello,
We are planning to re-oraganize a few tables (includig parttioned tables).I understand how to re- org a non - partioned table. like below
SQL> ALTER TABLE owner.TABLENAME MOVE;
Table altered.
SQL> ALTER INDEX owner.INDEX REBUILD;
Could some one help on how partioned table needs to be re- organized in 11 G database.
Also I see when i re- organize a non - partioned table I found the tablespace usage has gone up to 70 % usage of table size and once the defragmention is done the space is released,why is that so..?
Thanks
Soundar M
Edited by: soundar on Jun 5, 2013 11:43 PM
Edited by: soundar on Jun 5, 2013 11:44 PM
My understanding is, for partitioned table you need to move/rebuild each table partition (and its corresponding index) saperately. Command would be "ALTER TABLE ... MOVE PARTITION ...".
I wonder if there is a facility to rebuild partitions of same table in parallel with one single command.
Regarding space occupied by segment, concept of high water mark is important here. That decides how much space is occupied.
Similar Messages
-
Insert /delete data from SAP Z table to Oracle table and opposite
Hi,
Can u help me write this FM from the SAP side?
So, I have two tables ZTABLE in SAP and Oracle table ORAC.
Let's put three columns in each of them, for example
TEL1
TEL2
ADRESS
NAME
where TEL field is primary from ZTABLE to ORAC...
(in FM there shoud be abap code for writing data in ZTABLE after we press some pushbutton made in sap screen painter..)
for example, when we write new record in ZTABLE
00
112233
Street 4
Name1
this data shoud be inserted in Oracle table ORAC.
when we write new record in Oracle table for example
01
445566
New Street
Name2
this data shoud be inserted in ZTABLE.
Field TEL1 can be only of two values 01 or 02, other combination is not valid...
I must have all data from Oracle table ORAC in ZTABLE and opposite.
It should be the same scenario for DELETE...
And this communication should be online between sap and table in oracle database...
Can u help me from sap side? and give idea how to configure on oracle side??
Thanks a lot,
NihadI dont know if we can directly connect to a oracle database ( wait for the answers from others on this )
but in XI we have the JDBC adaptor to insert and retrieve data.
so for the outbound from SAP the flow can be something like this (with XI in landscape):
1) You have a screen to maintain a new entry / delete an entry
2) On save , this record gets saved or deleted from the Ztable in SAP
3)) In the same screen you can call a proxy class-method (generated using SPROXY transaction ) to send the record to XI.
4) XI to format it and insert into the oracle table
Mathews -
How to hide the data in particular table in oracle 10g
How to hide the data in particular table in oracle 10g
i want stepsIf its on Report u can always hide the column - Keyfigure or Selection - Display - Hide......y do u want to have it on the report if it is to be hided in the first place?
-
How to disable a table in oracle?
Hi,
Can anyone tell me if its possible to disable table in oracle>
Thanks and Regardsuser598986 wrote:
Hi,
There is a scenario where :
Schema A has A_ and B_ tables
If I login to Schema A only A_ will have the access rights tables with B_ will not have access to the user.
If Schema A owns both the tables than there is no way to do what you have mentioned. An owner can do whatever he wants to do with his objects. If the table B has been "given" to the user A than from the grantor, revoke the privs of this table and it won't be accessible to the user A, the same what Laura has mentioned to do already. You can't "switch off" a table from the user AFAIK.
HTH
Aman.... -
hi
can anyone please help me in tunning a particular table in oracle which has millions of Record
kindly help me for the procedure to tune the table...
thanks
Regards
MisinWhat's the Oracle version?
Does this table have LOB column ?
Make sure it's on locally managed tablespace.
Collect stats on the table and indexes if there is massive updates on the table.
Actually it's not about tuning the particular table but tuning the queries that your application use to access the table.
That in turn raise the question what's the nature of your application, is it DDS or OLTP application?
Do you experience any performance issue related to this table at all? -
How to create a table in Oracle Lite database?
Hi,
I have installed SOA 10.1.3 on my laptop. Now I am trying to create a table in the database to do some own examples. I have problem in installing oracle database. So I am trying to create a table in Oracle Lite database which comes with SOA suite. I am not able to do it, can some body suggest me please?
Regards
KhaleelHI James,
Thank you so much. I am able to create table and insert rows and able to select them too. However I am not able to use these tables in my BPEL process for my practice. The DB adapter is throwing some error, any idea?
--khaleel -
How to get all tables in oracle sql developer with MS SQLServer
Hi All,
I am using microsoft SQL server 2000. For displaying the tables and other stuff i am using oracle SQL developer tool. The problem is when i connect to sql developer with oracle database i can see all the tables in that database. But when i connect to MS SQL server database it is not showing all the tables in that database. I don't know why?.
i tried doing the samething using another tool called Aqua Data Studio , there i can able to see all the tables in microsoft SQL server 2000.
do you have any knowledge regarding this, why i am not getting all the tables in oracle sql developer when i connect to microsoft SQL server 2000.Same issue here. Haven't found the answer yet..
-
Retrieve data from a large table from ORACLE 10g
I am working with a Microsoft Visual Studio Project that requires to retrieve data from a large table from Oracle 10g database and export the data into the hard drive.
The problem here is that I am not able to connect to the database directly because of license issue but I can use a third party API to retrieve data from the database. This API has sufficient previllege/license permission on to the database to perform retrieval of data. So, I am not able to use DTS/SSIS or other tool to import data from the database directly connecting to it.
Here my approach is...first retrieve the data using the API into a .net DataTable and then dump the records from it into the hard drive in a specific format (might be in Excel file/ another SQL server database).
When I try to retrieve the data from a large table having over 13 lacs records (3-4 GB) in a data table using the visual studio project, I get an Out of memory exception.
But is there any better way to retrieve the records chunk by chunk and do the export without loosing the state of the data in the table?
Any help on this problem will be highly appriciated.
Thanks in advance...
-Jahedur Rahman
Edited by: Jahedur on May 16, 2010 11:42 PMGirish...Thanks for your reply...But I am sorry for the confusions. Let me explain that...
1."export the data into another media into the hard drive."
What does it mean by this line i.e. another media into hard drive???
ANS: Sorry...I just want to write the data in a file or in a table in SQL server database.
2."I am not able to connect to the database directly because of license issue"
huh?? I never heard this question that a user is not able to connect the db because of license. What error / message you are getting?
ANS: My company uses a 3rd party application that uses ORACLE 10g. And my compnay is licensed to use the 3rd party application (APP+Database is a package) and did not purchased ORACLE license to use directly. So I will not connect to the database directly.
3.I am not sure which API is you are talking about, but i am running an application of the visual studio data grid or similar kind of controls; in which i can select (select query) as many rows as i needed; no issue.
ANS: This API is provided by the 3rd party application vendor. I can pass a query to it and it returns a datatable.
4."better way to retrieve the records chunk by chunk and do the export without loosing the state of the data in the table?"
ANS: As I get a system error (out of memory) when I select all rows in a datatable at a time, I wanted to retrieve the data in multiple phases.
E.g: 1 to 20,000 records in 1st phase
20,001 to 40,000 records in 2nd phase
40,001 to ...... records in 3nd phase
and so on...
Please let me know if this does not clarify your confusions... :)
Thanks...
-Jahedur Rahman
Edited by: user13114507 on May 12, 2010 11:28 PM -
Unable to retrieve data from a nested table in Oracle 8i from JSP
How do i retrieve data from a nested table in Oracle 8i from my JSP code?
When i try to execute the query , a general error is thrown.
Kindly advice as soon as possible.How do i retrieve data from a nested table in Oracle 8i from my JSP code?
When i try to execute the query , a general error is thrown.
Kindly advice as soon as possible. -
Extracting Data From a Table in Oracle
How would one extract the data from a table in oracle and put in ascii format file?
Do you use sql loader?http://asktom.oracle.com/pls/ask/f?p=4950:8:6139291395251309702::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:68212348056,
http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:464420312302 -
How to load the data from excel file into table in oracle using UTL_FI
How to load the data from excel file into table in oracle
and from table to excel file
using UTL_FILE package
Please give me some exampleThis is something i tried in oracle apex
http://avdeo.com/2008/05/21/uploading-excel-sheet-using-oracle-application-express-apex/
Regards,
CKLP -
Internal Error in reading a Table of Oracle custom-defined objects.
Hi,
We are running into an Oracle internal error when trying to extract data from an OUT parameter of a stored procedure. The OUT parameter is of the type TABLE of Oracle custom-defined OBJECT.
Any help on this issue will be greatly appreciated.
Thanks, in advance,
OraNew
Program:
package test;
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Types;
import java.util.ArrayList;
import java.util.List;
import oracle.sql.ARRAY;
import oracle.sql.STRUCT;
import src.vo.ProfileBank;
public class TestOracle {
* @param args
public static void main(String[] args) {
try{
Connection con = getConnection();
ResultSet rsBalance = null;
CallableStatement cs =
con.prepareCall("{ CALL acr_profiles.get_profile_bank( ?, ?, ?)}");
cs.setLong(1, new Long(133).longValue());
cs.setLong(2, new Long(29032).longValue());
cs.registerOutParameter(3,Types.ARRAY,"ACR_USER." + "ACR_PROF_BANK_TAB");
cs.execute();
ARRAY array = (oracle.sql.ARRAY) cs.getObject(3);
System.out.println("length: "+ array.length());
System.out.println("isConvertible: " + array.isConvertibleTo(Object.class));
System.out.println("isInline: " + array.isInline());
rsBalance = array.getResultSet();
showResultSet(rsBalance);
} catch (Exception sql){
System.out.println("Exception "+ sql);
public static void showResultSet (ResultSet rs) throws SQLException
System.out.println("ResultSet = "+ rs.toString());
List profileBanks = new ArrayList();
while (rs != null && rs.next()) {
STRUCT struct = (STRUCT)rs.getObject (2); //getting the Internal Error on this line.
Object[] attribs = struct.getAttributes();
System.out.println("Bank Alias Id"+ (java.math.BigDecimal) attribs[0]);
System.out.println("Bank Name"+ (String)attribs[1]);
System.out.println("Bank set flag "+ (String) attribs[2]);
ProfileBank pBank = new ProfileBank();
pBank.setBankAliasId(new Integer(((java.math.BigDecimal) attribs[0]).intValue()));
pBank.setBankName((String) attribs[1]);
pBank.setSelBankFlag((String) attribs[2]);
profileBanks.add(pBank);
public static Connection getConnection() throws ClassNotFoundException, SQLException {
Class.forName("oracle.jdbc.driver.OracleDriver");
System.out.println("Driver loaded");
// establish a connection
Connection conn = DriverManager
.getConnection(
"jdbc:oracle:thin:@(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=10.3.11.201)(Port=1521)) (CONNECT_DATA=(SERVICE_NAME= aada.a.al)))",
"acr_user", "acr_user");
System.out.println("Database connected");
return conn;
Console Output:
Driver loaded
Database connected
length: 2
isConvertible: false
isInline: true
ResultSet = oracle.jdbc.driver.ArrayDataResultSet@1f3aa07
Exception java.sql.SQLException: Internal Error
Partial Stacktrace obtained from the Eclipse Debug window:
oracle.jdbc.driver.DatabaseError.throwSqlException(int) line: 292
oracle.jdbc.oracore.OracleTypeCOLLECTION.initCollElemTypeName() line: 1192
oracle.jdbc.oracore.OracleTypeCOLLECTION.getAttributeType(int) line: 1225
oracle.jdbc.oracore.OracleTypeADT(oracle.jdbc.oracore.OracleNamedType).getFullName(boolean) line: 119
oracle.jdbc.oracore.OracleTypeADT(oracle.jdbc.oracore.OracleNamedType).getFullName() line: 93
oracle.sql.StructDescriptor(oracle.sql.TypeDescriptor).initSQLName() line: 497
oracle.sql.StructDescriptor(oracle.sql.TypeDescriptor).getName() line: 392
oracle.sql.StructDescriptor.getClass(java.util.Map) line: 2003
oracle.sql.STRUCT.toJdbc(java.util.Map) line: 983
oracle.jdbc.driver.ArrayDataResultSet.getObject(int, java.util.Map) line: 1379
oracle.jdbc.driver.ArrayDataResultSet.getObject(int) line: 1198
test.TestOracle.showResultSet(java.sql.ResultSet) line: 53
test.TestOracle.main(java.lang.String[]) line: 38
Environment:
Database: Oracle 10g (10.2.0.3)
JDBC Drivers: version 10.2.0.3 (ojdbc14, orai18n)
Database Server: HP-UX
Client machine: Windows XP
<end of thread>hi Thom,
most error relating to table DOKTL are caused by misconfigured network card.
if this is a "home" system, install a loopback adapter from Microsoft and use IP address 127.0.0.1 and also check "hosts" file for inconsistency. do not use the IP adddress provided by your ISP as it may change. -
Error while importing tables from oracle database
Hi
I am getting the following error when i am trying to import table from oracle database.
my operating system is windows and my database is oracle.
[nQSError: 16001]ODBC error state: IM004 code:0 message:
[Microsoft][ODBC Driver Manager] Driver`s SQLAllocHandle on SQL_HANDLE_ENV failed.
please help me in resolving this issue.
Thanks and Regards,
RajHi Madan,
I have done migration Discoverer Admin EUL Layer into OBIEE repository using below methodology.
Navigate to the <installdrive>\OracleBI\server\Bin directory. There are two important files in this directory: the migration assistant executable file named MigrateEUL.exe and a properties configuration file named MigrationConfig.properties.
Could you please help me how to migrate discoverer plus workbooks and worksheets into OBIEE Answers?
go through below link, It will show navigation steps for migrating of EUL from Discoverer to OBIEE.But i need migration of workbooks and worksheets from Discoverer into OBIEE Answers.
http://www.oracle.com/technology/obe/obe_bi/discoverer/discoverer_1012/discomigration/migrate_disco_biee.htm
This is very great full help to me …
Advance thanks for your suggestions.
Regards
Duraga Prasad. -
Error in creating partition table in oracle spatial by ankur
Hi,
Am working on Oracle 10.2.0.3
Am not able to create partition table in Oracle
i have all the required columns in node and edge table ......the moment i try to create partition table using exec sdo_router_partition.partion_router i get the following error:
ERROR at line 1:
ORA-00947: not enough values
ORA-06512: at "MDSYS.SDO_ROUTER_PARTITION", line 1510
ORA-06512: at "MDSYS.SDO_ROUTER_PARTITION", line 661
ORA-06512: at line 1
Can someone help ??hey i have found the solution myself :)
-
How to find out when data was deleted from table in oracle and Who deleted that
HI Experts,
Help me for below query:
how to find out when data was deleted from table in oracle and Who deleted that ?
I did that to fidn out some data from dba_tab_modifications, but I m not sure that what timestamp shows, wether it shows for update,insert or delete time ?
SQL> select TABLE_OWNER,TABLE_NAME,INSERTS,UPDATES,DELETES,TIMESTAMP,DROP_SEGMENTS,TRUNCATED from dba_tab_modifications where TABLE_NAME='F9001';
TABLE_OWNER TABLE_NAME INSERTS UPDATES DELETES TIMESTAMP DROP_SEGMENTS TRU
PRODCTL F9001 1683 46 2171 11-12-13 18:23:39 0 NO
Audit is enable in my enviroment?
customer is facing the issue and data missing in the table and I told him that yes there is a delete at 11-12-13 18:23:39 in table after seeing the DELETS column and timestamp in dba_tab_modifications, but not sure I am right or not
SQL> show parameter audit
NAME TYPE VALUE
audit_file_dest string /oracle/admin/pbowe/adump
audit_sys_operations boolean TRUE
audit_syslog_level string
audit_trail string DB, EXTENDED
please help
Thanks
SamLOGMiner --> Using LogMiner to Analyze Redo Log Files
AUDIT --> Configuring and Administering Auditing
Maybe you are looking for
-
Unable to submit reports more than once using RUN_REPORT_OBJECT
Report Gurus, Am trying to have reports be run from a form. Heres the design.. a] I have multiple reports being displayed in a form multi-record block. b] Each report line has a button associated with it that can be clicked to execute the report. Beh
-
Online Services not Initialized
I have installed Photoshop Elements 11 and Premiere Elements 11 on my MAC and while the installation appears to have been successful I get the following error message every time I open the Organizer: Online Services could not be initialized. Please
-
Dumb question- how do I get to the command line without X running?
Hi, As per the title please... I need to rerun Xorg -configure, but cannot for the life of me figure out how to shut down X and get to a command line Thanks
-
How to read the default value for a Registry Key
I am trying to use webutil 1.0.2 Client_win_api_environment.read_registry to read the client registry key HKEY_CLASSES_ROOT\.xls, but the function is raising no_data_found. I can read the registry key in Regedit. I am logged on as myself as a non-adm
-
Indexing a book using Indesign CS 6
Hello, Did not use Indesign for 10 years ... and - when starting it up again with a newer version - I was surprised in an unpleasant way that it is still not possible to create footnotes inside tables in a normal way without creepy workarounds. And a