Reorganization of Tables in EBS Database
Did anyone reorganized the tables in EBS database to reclaim the fragmented space within the Tablespace. If so please suggest how to identify which are all the tables have more fragmentation in order to reorganize it within the tablespace.
Regards,
Subramaniam PL
DUPLICATE
do NOT cross/multi-post!
Reorganization of Tables in Database
Similar Messages
-
Do migrated forms still interact with EBS database?
Once you have completed a EBS forms conversion into APEX, are you able to have the new APEX applications forms read/write from the EBS database?
For instance ,say your wanting to take currently used forms XYZ out of EBS and put them into APEX so you can create a better UI and such for them or just give the users better use of the data. Can the EBS users then use those forms rather then the EBS ones to do their same day to day functions?
I'm just not seeing anything regarding how the APEX forms would interact with the EBS data tables, but i could be overlooking something.
A simple Yes/No would be great, a yes w/ some pointers or tags to documentation would get ya some bonus points!
Thanks,
JeremyA good example could be a custom form for some module that you built using Oracle Forms for the 11i stack. Maybe it maintains data in a custom table that you use for reporting or extension purposes.
You know that although R12 supports Forms in the techs tack, its going to be de-supported in the future in favor of ADF/Fusion/Next Java technology. You don't have a lot of java experience in your shop and want to retain the pl/sql developers you have, so you decide you will use Apex for your custom form development from now on instead of forms or OAF.
Apex is really no different than any other framework (no matter what anyone will lead you to believe). Its great for interactive applications, forms, read-only..etc. So if you can do it in java, you can do it in Apex. I completely agree that you absolutely do not want to modify the EBS forms in any way - in fact by doing so you are pretty much de-supporting yourself as support won't touch anything that didnt come from Oracle directly. -
How to find the largest tables in EBS
Hi gurus,
Oracle EBS R12.1.2
Linux x86-64
RDBMS 11g
How can I find the top 10 largest tables in EBS - in terms of size (KB/MB)? pls send me the Query and also direction from where (which Schema) should I run that query?
-- TIAHi;
I suggest check below threads:
How to know which is the largest table in my oracle database??
Find Largest Tables in 9i Database
Query to find biggest table in oracle ERP database?
Those links should give you answer of your questions.
Regard
Helios -
EBS database upgrade from 9.2.0.5 to 9.2.0.8
Hi,
I want to upgrade EBS database from 9.2.0.5 to 9.2.0.8. Please let me know the steps.
My application version is 11i(11.5.10.2) and installed on Oracle Linux 5.6(32-bit, x86)
Thanks.Hi,
I am getting the following error in alert log and diag after applying the patch set 4547809.
Any parameter need to set in pfile or in OS ???
===========================================================================================
SQL> CONNECT SYS/system AS SYSDBA
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 581505840 bytes
Fixed Size 451376 bytes
Variable Size 402653184 bytes
Database Buffers 167772160 bytes
Redo Buffers 10629120 bytes
ORA-32700: error occurred in DIAG Group Service
From alert log :
SSKGXP_IP: Primary interface down
operation cannot open cmcfg.ora
location clusterip1
error No such file or directory
Fri Jun 7 22:29:00 2013
cluster interconnect IPC version:Oracle UDP/IP
IPC Vendor 1 proto 2 Version 1.0
Fri Jun 7 22:29:00 2013
SSKGXP_IP: Primary interface down
operation cannot open cmcfg.ora
location clusterip1
error No such file or directory
Fri Jun 7 22:29:00 2013
WARNING:Oracle instance running on a system with low open file descriptor
limit. Tune your system to increase this limit to avoid
severe performance degradation.
PMON started with pid=2, OS id=3882
Fri Jun 7 22:29:00 2013
SSKGXP_IP: Primary interface down
operation cannot open cmcfg.ora
location clusterip1
error No such file or directory
DIAG started with pid=3, OS id=3884
Fri Jun 7 22:29:00 2013
SSKGXP_IP: Primary interface down
operation cannot open cmcfg.ora
location clusterip1
error No such file or directory
LMON started with pid=4, OS id=3886
Fri Jun 7 22:29:00 2013
SSKGXP_IP: Primary interface down
operation cannot open cmcfg.ora
location clusterip1
error No such file or directory
LMD0 started with pid=5, OS id=3888
Fri Jun 7 22:29:03 2013
SSKGXP_IP: Primary interface down
operation cannot open cmcfg.ora
location clusterip1
error No such file or directory
DBW0 started with pid=6, OS id=3890
Fri Jun 7 22:29:03 2013
SSKGXP_IP: Primary interface down
operation cannot open cmcfg.ora
location clusterip1
error No such file or directory
LGWR started with pid=7, OS id=3892
Fri Jun 7 22:29:03 2013
SSKGXP_IP: Primary interface down
operation cannot open cmcfg.ora
location clusterip1
error No such file or directory
CKPT started with pid=8, OS id=3894
Fri Jun 7 22:29:03 2013
SSKGXP_IP: Primary interface down
operation cannot open cmcfg.ora
location clusterip1
error No such file or directory
SMON started with pid=9, OS id=3896
Fri Jun 7 22:29:03 2013
SSKGXP_IP: Primary interface down
operation cannot open cmcfg.ora
location clusterip1
error No such file or directory
RECO started with pid=10, OS id=3898
Fri Jun 7 22:29:03 2013
SSKGXP_IP: Primary interface down
operation cannot open cmcfg.ora
location clusterip1
error No such file or directory
CJQ0 started with pid=11, OS id=3900
Fri Jun 7 22:29:03 2013
SSKGXP_IP: Primary interface down
operation cannot open cmcfg.ora
location clusterip1
error No such file or directory
QMN0 started with pid=12, OS id=3902
Fri Jun 7 22:29:03 2013
SSKGXP_IP: Primary interface down
operation cannot open cmcfg.ora
location clusterip1
error No such file or directory
Fri Jun 7 22:29:04 2013
ALTER DATABASE MOUNT
Fri Jun 7 22:29:04 2013
ORA-32700 signalled during: ALTER DATABASE MOUNT...
From diag :
# more erp_diag_3884.trc
Dump file /u01/erp/erpdb/9.2.0/admin/ERP_linux1/bdump/erp_diag_3884.trc
Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
With the Partitioning, Real Application Clusters, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production
ORACLE_HOME = /u01/erp/erpdb/9.2.0
System name: Linux
Node name: linux1.erp.com
Release: 2.6.18-238.el5xen
Version: #1 SMP Tue Jan 4 16:18:33 EST 2011
Machine: i686
Instance name: ERP
Redo thread mounted by this instance: 0 <none>
Oracle process number: 3
Unix process pid: 3884, image: [email protected] (DIAG)
*** SESSION ID:(2.1) 2013-06-07 22:29:00.341
kjzmini1: slos err[1 skgxnnfy_failed skgxncini1 9402]
[kjzmini1]: Error [category=1] is encountered
Node monitor problem:[32700][kjzmini1]
Membership is lost in DIAG group
# cat erp_qmn0_3902.trc
Dump file /u01/erp/erpdb/9.2.0/admin/ERP_linux1/bdump/erp_qmn0_3902.trc
Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
With the Partitioning, Real Application Clusters, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production
ORACLE_HOME = /u01/erp/erpdb/9.2.0
System name: Linux
Node name: linux1.erp.com
Release: 2.6.18-238.el5xen
Version: #1 SMP Tue Jan 4 16:18:33 EST 2011
Machine: i686
Instance name: ERP
Redo thread mounted by this instance: 0 <none>
Oracle process number: 12
Unix process pid: 3902, image: [email protected] (QMN0)
*** 2013-06-07 22:34:03.687
*** SESSION ID:(11.1) 2013-06-07 22:34:03.686
SGA initialization / DB open not complete even after 5 minutes, QMN0exiting
error 604 detected in background process
OPIRIP: Uncaught error 447. Error stack:
ORA-00447: fatal error in background process
ORA-00604: error occurred at recursive SQL level 1
ORA-01219: database not open: queries allowed on fixed tables/views only
# cat erp_lmon_3886.trc
Dump file /u01/erp/erpdb/9.2.0/admin/ERP_linux1/bdump/erp_lmon_3886.trc
Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
With the Partitioning, Real Application Clusters, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production
ORACLE_HOME = /u01/erp/erpdb/9.2.0
System name: Linux
Node name: linux1.erp.com
Release: 2.6.18-238.el5xen
Version: #1 SMP Tue Jan 4 16:18:33 EST 2011
Machine: i686
Instance name: ERP
Redo thread mounted by this instance: 0 <none>
Oracle process number: 4
Unix process pid: 3886, image: [email protected] (LMON)
*** SESSION ID:(3.1) 2013-06-07 22:29:00.363
GES IPC: Receivers 1 Senders 1
GES IPC: Buffers Receive 1000 Send (i:100 b:100) Reserve 100
GES IPC: Msg Size Regular 396 Batch 2048
Batch msg size = 2048
Batching factor: enqueue replay 48, ack 53
Batching factor: cache replay 34 size per lock 56
# cat erp_pmon_3882.trc
Dump file /u01/erp/erpdb/9.2.0/admin/ERP_linux1/bdump/erp_pmon_3882.trc
Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
With the Partitioning, Real Application Clusters, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production
ORACLE_HOME = /u01/erp/erpdb/9.2.0
System name: Linux
Node name: linux1.erp.com
Release: 2.6.18-238.el5xen
Version: #1 SMP Tue Jan 4 16:18:33 EST 2011
Machine: i686
Instance name: ERP
Redo thread mounted by this instance: 0 <none>
Oracle process number: 2
Unix process pid: 3882, image: [email protected] (PMON)
*** SESSION ID:(1.1) 2013-06-07 22:34:34.716
*** 2013-06-07 22:34:34.716
found process 0x5f5e1d4c pid=12 serial=1 dead
*** 2013-06-07 22:34:34.717
deleting process 5f5e1d4c pid=12 seq=1
deletion of process 5f5e1d4c pid=12 seq=1 unsuccessful
*** 2013-06-07 22:34:44.717
found process 0x5f5e1d4c pid=12 serial=1 dead
*** 2013-06-07 22:34:54.718
found process 0x5f5e1d4c pid=12 serial=1 dead
*** 2013-06-07 22:35:04.718
found process 0x5f5e1d4c pid=12 serial=1 dead
*** 2013-06-07 22:35:14.719
found process 0x5f5e1d4c pid=12 serial=1 dead
*** 2013-06-07 22:35:14.720
found process 0x5f5e1d4c pid=12 serial=1 dead
*** 2013-06-07 22:35:24.720
found process 0x5f5e1d4c pid=12 serial=1 dead
*** 2013-06-07 22:35:34.720
found process 0x5f5e1d4c pid=12 serial=1 dead
*** 2013-06-07 22:35:44.721
found process 0x5f5e1d4c pid=12 serial=1 dead
*** 2013-06-07 22:35:54.721
found process 0x5f5e1d4c pid=12 serial=1 dead
*** 2013-06-07 22:36:04.722
found process 0x5f5e1d4c pid=12 serial=1 dead
*** 2013-06-07 22:36:14.723
found process 0x5f5e1d4c pid=12 serial=1 dead
*** 2013-06-07 22:36:14.724
found process 0x5f5e1d4c pid=12 serial=1 dead
*** 2013-06-07 22:36:24.723
found process 0x5f5e1d4c pid=12 serial=1 dead
*** 2013-06-07 22:36:34.724
found process 0x5f5e1d4c pid=12 serial=1 dead
*** 2013-06-07 22:36:44.725
found process 0x5f5e1d4c pid=12 serial=1 dead
*** 2013-06-07 22:36:54.725
found process 0x5f5e1d4c pid=12 serial=1 dead
*** 2013-06-07 22:36:54.725
deleting process 5f5e1d4c pid=12 seq=1
deletion of process 5f5e1d4c pid=12 seq=1 unsuccessful
*** 2013-06-07 22:37:04.726
found process 0x5f5e1d4c pid=12 serial=1 dead
*** 2013-06-07 22:37:14.726
found process 0x5f5e1d4c pid=12 serial=1 dead
*** 2013-06-07 22:37:24.727
found process 0x5f5e1d4c pid=12 serial=1 dead
*** 2013-06-07 22:37:24.728
found process 0x5f5e1d4c pid=12 serial=1 dead
*** 2013-06-07 22:37:34.728
found process 0x5f5e1d4c pid=12 serial=1 dead
*** 2013-06-07 22:37:44.728
found process 0x5f5e1d4c pid=12 serial=1 dead
*** 2013-06-07 22:37:54.729
found process 0x5f5e1d4c pid=12 serial=1 dead
*** 2013-06-07 22:38:04.730
found process 0x5f5e1d4c pid=12 serial=1 dead
*** 2013-06-07 22:38:14.730
found process 0x5f5e1d4c pid=12 serial=1 dead
*** 2013-06-07 22:38:24.731
found process 0x5f5e1d4c pid=12 serial=1 dead
*** 2013-06-07 22:38:24.732
found process 0x5f5e1d4c pid=12 serial=1 dead
*** 2013-06-07 22:38:34.731
found process 0x5f5e1d4c pid=12 serial=1 dead
*** 2013-06-07 22:38:44.732
found process 0x5f5e1d4c pid=12 serial=1 dead
*** 2013-06-07 22:38:54.733
found process 0x5f5e1d4c pid=12 serial=1 dead
*** 2013-06-07 22:39:04.733
found process 0x5f5e1d4c pid=12 serial=1 dead
PMON posted from location=ksuabt, process=0
*** 2013-06-07 22:39:04.737
found process 0x5f5e1d4c pid=12 serial=1 dead
found process 0x5f5e24cc pid=14 serial=1 dead
*** 2013-06-07 22:39:04.737
deleting process 5f5e1d4c pid=12 seq=1
deletion of process 5f5e1d4c pid=12 seq=1 unsuccessful
deleting process 5f5e24cc pid=14 seq=1
deletion of process 5f5e24cc pid=14 seq=1 unsuccessful
*** 2013-06-07 22:39:14.738
found process 0x5f5e1d4c pid=12 serial=1 dead
found process 0x5f5e24cc pid=14 serial=1 dead
*** 2013-06-07 22:39:24.763
found process 0x5f5e1d4c pid=12 serial=1 dead
found process 0x5f5e24cc pid=14 serial=1 dead
*** 2013-06-07 22:39:24.764
found process 0x5f5e1d4c pid=12 serial=1 dead
found process 0x5f5e24cc pid=14 serial=1 dead
*** 2013-06-07 22:39:34.763
found process 0x5f5e1d4c pid=12 serial=1 dead
found process 0x5f5e24cc pid=14 serial=1 dead
*** 2013-06-07 22:39:44.764
found process 0x5f5e1d4c pid=12 serial=1 dead
found process 0x5f5e24cc pid=14 serial=1 dead
*** 2013-06-07 22:39:54.764
found process 0x5f5e1d4c pid=12 serial=1 dead
found process 0x5f5e24cc pid=14 serial=1 dead
===========================================================================================
Thanks. -
How to know which table in the database a form is accessing
Actually Im new to oracle applications,
Im getting an error when i open a form from system administrator responsibility saying that table doesnot exist.
My basic doubt is, how to know which table in the database a form is accessing.
Any response is higly appreciated.
Thanks,
Praveen
Edited by: user10239520 on Sep 10, 2008 7:07 AMTake a look at the following thread:
Is there a query log in EBS?
Re: Is there a query log in EBS? -
Integrate source db with target EBS database using ODI
Hi
We have a requirement to integrate our legacy systems to Oracle E-business suite 12.1.1 database 10g. We have several MS-SQL and oracle databases that has to be integrate with our Oracle EBS database. Oracle says to have separate schema for Master and Work repository, and also create a new schema when connecting to the data store and use the same schema as a WORK SCHEMA when creating a physical schema. My question is:
1) What are all the privileges to be assigned to the new schema used as a WORK SCHEMA? Oracle EBS holds many FND schemas and APPS uses the synonyms of all the tables. So what oracle recommends when using EBS with ODI?
2) Do we need to create a separate work schema for each and every SOURCE Database as well?
3) We are not using separate oracle database for ODI we will be creating schemas in PROD to hold ODI data. Our management wants the the odi schema to hold the staging data. Can we use the the same Work schema mentioned in the first point as a staging area as well?
Thank you
Regards
Shahrukh YasinHi Shahrukh ,
There are two ways.(1st one is recommended)
1.You can make source schema in one database and target schema, work schema in another database.
For source schema only read only access privilege.
You must have complete ownership in work schema and target schema(Minimum insert,update,delete).
Here you have to always create one work schema in every target database
2.if all schema present in 3 different database,you also need above criteria.
But here you don't have to create work schema always.its fixed.
This process takes much time for transformation and not an efficient way.
Regards
Bhabani -
Error while accessing a Table on Oracle Database 10.2
Hi Experts,
We have a table that contains a CLOB datatype in one of its column. However when i tried to access the table i get the below error.
<b>Table Name:</b> discrete_jobs
<b>Error:</b>
(Error starting at line 1 in command:
select * from [email protected]
Error report:
SQL Error: ORA-22992: cannot use LOB locators selected from remote tables
22992. 00000 - "cannot use LOB locators selected from remote tables"
*Cause: A remote LOB column cannot be referenced.
*Action: Remove references to LOBs in remote tables.)
Pleas Help!
Regards,
Ravi RSee some work arounds - "How to select table from remote database having clob field</a>
-
Inserting values from a PL SQL table to a database table
Hi,
Here is my dilemma.
I have values inserted to a pl sql table which I have gathered from a web page. Now I need to add these same values to a database table. I see the values as 1-'AA', 2='BB' etc.
I use the following code to insert to a outside table in the database and it seems to be crashing.
for i in app_table.first .. app_table.last loop
r_convention(i).priority_country_code:=app_table(i);
insert into test_countries
values (test_seq,tion(i).r_convention(i).priority_country_code);
commit;
end loop;
WHen I run this code I see the values. But it goes to the first value and then crashes and does not go through the
rest of the values. What am I missing here?
Thanks!Hi,
Why can't you directly insert into the table from the object type....
for i in app_table.first .. app_table.last loop
r_convention(i).priority_country_code:=app_table(i);
insert into test_countries
values (test_seq,app_table(i));
commit;
end loop;Can you give me your complete code, so that we can have a better picture..
Edited by: plsql dev on Sep 10, 2010 10:14 PM -
Add data to the table in the database with the use of add button
The name of my database is Socrates.
The name of the table in the database is Employees
I want to be able to add data to the database. i am presently working on the add button such that when i enter date into the textfield and press the add button it should automatically register in the table.
The error upon compilation is with this line of code
If (ae.getSource() == jbtnA)// it says that ";" is expected
Below is the entire code
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Mainpage extends JFrame implements ActionListener
JTextField jFirstName = new JTextField(15);
JTextField jSurname = new JTextField(12);
JTextField jCity = new JTextField(10);
JTextField jCountry = new JTextField(12);
JTextField jSSN = new JTextField(8);
JLabel jFirstLab = new JLabel("First Name");
JLabel jSurnameLab = new JLabel("Surname");
JLabel jCityLab = new JLabel("City");
JLabel jCountryLab = new JLabel("Country");
JLabel jSSNLab = new JLabel("Social Security Number (SSN)");
JButton jbtnA = new JButton ("Add");
JButton jbtnPrv = new JButton ("Previous");
JButton jbtnNt = new JButton ("Next");
JButton jbtnDl= new JButton ("Delete");
JButton jbtnSrch = new JButton ("Search");
public Mainpage (String title)
super (title);
Container cont = getContentPane();
JPanel pane1 = new JPanel();
JPanel pane2 = new JPanel();
JPanel pane3 = new JPanel();
pane1.setLayout (new GridLayout (0,1));
pane2.setLayout (new GridLayout(0,1));
pane3.setLayout (new FlowLayout());
pane1.add(jFirstLab);
pane1.add(jSurnameLab);
pane1.add(jCityLab);
pane1.add(jCountryLab);
pane1.add(jSSNLab);
pane2.add(jFirstName);
pane2.add(jSurname);
pane2.add(jCity);
pane2.add(jCountry);
pane2.add(jSSN);
pane3.add(jbtnA);
pane3.add(jbtnPrv);
pane3.add(jbtnNt);
pane3.add(jbtnDl);
pane3.add(jbtnSrch);
cont.add(pane1, BorderLayout.CENTER);
cont.add(pane2, BorderLayout.LINE_END);
cont.add(pane3, BorderLayout.SOUTH);
jFirstName.addActionListener(this);
jSurname.addActionListener(this);
jCity.addActionListener(this);
jCountry.addActionListener(this);
jSSN.addActionListener(this);
jbtnA.addActionListener(this);
jbtnPrv.addActionListener(this);
jbtnNt.addActionListener(this);
jbtnDl.addActionListener(this);
jbtnSrch.addActionListener(this);
validate();
setVisible(true);
setDefaultCloseOperation(EXIT_ON_CLOSE);
pack();
setResizable(false);
public void actionPerformed(ActionEvent ae)
If (ae.getSource() == jbtnA)
fst = jFirstName.getText();
srn = jSurname.getText();
cty = jCity.getText();
cnty = jCountry.getText();
int sn =
Interger.parseInt(jSSN.getText());
String ad = "Insert into Employees
(Firstname,Surname,City,Country,SSN)" +
"values('"fst"','"srn"','"cty"','"cnty"','"sn"')";
Statement stmt = con.createStatment();
int rowcount = stmt.executeUpdate(ad);
JOptionPane.showMessageDialog("Your
details have been registered");
Statement stmt = con.createStatment();
int rowcount = stmt.executeUpdate(ad);
public static void main (String args[])
Mainpage ObjFr = new Mainpage("Please fill this
registration form");
try
Class.forname("sun.jdbc.odbc.JdbcOdbcDriver");
String plato = "jdbc:odbc:socrates";
Connection con =
DriverManager.getConnection(plato);
catch(SQLException ce)
System.out.println(ce);
}i have restructured the code, but the following line of code is giving error:
String plato = jdbc:odbc:socrates;
the entire code is below:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;
public class Mainpage extends JFrame implements ActionListener
JTextField jFirstName = new JTextField(15);
JTextField jSurname = new JTextField(12);
JTextField jCity = new JTextField(10);
JTextField jCountry = new JTextField(12);
JTextField jSSN = new JTextField(8);
JLabel jFirstLab = new JLabel("First Name");
JLabel jSurnameLab = new JLabel("Surname");
JLabel jCityLab = new JLabel("City");
JLabel jCountryLab = new JLabel("Country");
JLabel jSSNLab = new JLabel("Social Security Number (SSN)");
JButton jbtnA = new JButton ("Add");
JButton jbtnPrv = new JButton ("Previous");
JButton jbtnNt = new JButton ("Next");
JButton jbtnDl= new JButton ("Delete");
JButton jbtnSrch = new JButton ("Search");
Statement stmt;
String ad;
public Mainpage (String title)
super (title);
Container cont = getContentPane();
JPanel pane1 = new JPanel();
JPanel pane2 = new JPanel();
JPanel pane3 = new JPanel();
pane1.setLayout (new GridLayout (0,1));
pane2.setLayout (new GridLayout(0,1));
pane3.setLayout (new FlowLayout());
pane1.add(jFirstLab);
pane1.add(jSurnameLab);
pane1.add(jCityLab);
pane1.add(jCountryLab);
pane1.add(jSSNLab);
pane2.add(jFirstName);
pane2.add(jSurname);
pane2.add(jCity);
pane2.add(jCountry);
pane2.add(jSSN);
pane3.add(jbtnA);
pane3.add(jbtnPrv);
pane3.add(jbtnNt);
pane3.add(jbtnDl);
pane3.add(jbtnSrch);
cont.add(pane1, BorderLayout.CENTER);
cont.add(pane2, BorderLayout.LINE_END);
cont.add(pane3, BorderLayout.SOUTH);
jFirstName.addActionListener(this);
jSurname.addActionListener(this);
jCity.addActionListener(this);
jCountry.addActionListener(this);
jSSN.addActionListener(this);
jbtnA.addActionListener(this);
jbtnPrv.addActionListener(this);
jbtnNt.addActionListener(this);
jbtnDl.addActionListener(this);
jbtnSrch.addActionListener(this);
validate();
setVisible(true);
setDefaultCloseOperation(EXIT_ON_CLOSE);
pack();
setResizable(false);
try
Class.forname(sun.jdbc.odbc.JdbcOdbcDriver);
String plato = jdbc:odbc:socrates;
Connection con = DriverManager.getConnection(plato);
stmt = con.createStatment();
catch(SQLException ce)
System.out.println(ce);
catch(ClassNotFoundException ce)
System.out.println(ce);
public void actionPerformed(ActionEvent ae)
try
if(ae.getSource().equals(jbtnA))
fst = jFirstName.getText();
srn = jSurname.getText();
cty = jCity.getText();
cnty = jCountry.getText();
int sn = Interger.parseInt(jSSN.getText());
ad = "Insert into Employees
values('"+fst+"',"+srn+"','"+cty+"','"+cnty+"','"+sn+"')";
stmt.executeUpdate(ad);
JOptionPane.showMessageDialog(this, "Your details have been
registered");
catch(SQLException ce)
System.out.println(ce);
public static void main(String args[])
Mainpage ObjFr = new Mainpage("Please fill this registration form");
} -
Displaying the sizes of every table in a database
Hello All,
I need to get the table sizes for each and every table in a database.
I would have checked it manually but there are many number of tables.
I am using SQL Server 2008 R2.
Thanks and Regards, Readers please vote for my posts if the questions i asked are helpful.Hi,
Please make habit of searching net before posting or if you dont know how to write a query. A simple search would lead you to
http://stackoverflow.com/questions/7892334/get-size-of-all-tables-in-database
SELECT
t.NAME AS TableName,
s.Name AS SchemaName,
p.rows AS RowCounts,
SUM(a.total_pages) * 8 AS TotalSpaceKB,
SUM(a.used_pages) * 8 AS UsedSpaceKB,
(SUM(a.total_pages) - SUM(a.used_pages)) * 8 AS UnusedSpaceKB
FROM
sys.tables t
INNER JOIN
sys.indexes i ON t.OBJECT_ID = i.object_id
INNER JOIN
sys.partitions p ON i.object_id = p.OBJECT_ID AND i.index_id = p.index_id
INNER JOIN
sys.allocation_units a ON p.partition_id = a.container_id
LEFT OUTER JOIN
sys.schemas s ON t.schema_id = s.schema_id
WHERE
t.NAME NOT LIKE 'dt%'
AND t.is_ms_shipped = 0
AND i.OBJECT_ID > 255
GROUP BY
t.Name, s.Name, p.Rows
ORDER BY
t.Name
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
My TechNet Wiki Articles -
How to create a view consisting of data from tables in2 different databases
Using Oracle 10.2g
I have 2 databases Gus and haggis on Comqdhb schema.
glink indicates a databse link between Haggis and Gus
In Gus there are tables student,subject,grade,school containing columns like upn...
STUDENT
upn
academicYear
SUBJECT
subject
GRADE
examlevel
grade
SCHOOL
sn
In HAGGIS there are tables student,grade,teacher containing columns upn...desc below.
STUDENT
upn
GRADE
grade
upn
academicyear
level
Create view in your HAGGIS database which will join all of the exam grades together. You should have one view which will produce the following relation :
examGrade(upn, subject, examlevel, sn, grade,academicYear)
so I need to create a view which gets the data from both the tables in both the databases.
create view as examGrade(upn, subject, examlevel, sn, grade,academicYear) as select s.upn
But i am not getting how to select a column from 2 tables in different databases
I mean if i said
select upn from comqdhb.student@glink,comqdhb.student;
select upn from comqdhb.student@glink,comqdhb.student
ERROR at line 1:
ORA-00918: column ambiguously defined
help me out,Thank you.Thank you for the reply will follow up the code format
Create views in your HAGGIS schema database which will join all of the exam grades together. You should have one view which will produce the following relation :
examGrade(upn, subject, examlevel, sn, grade,academicYear)
I understand that there wont be duplication when we use conditions
If i query
select count(upn)
from comqdhb.student@glink I get 9000
but after the union
create view examGrade(upn, subject, examlevel, sn, grade,academicYear)
as
select distinct s.upn as upn
, g.subject as subject
, g."LEVEL" as examlevel
, g.grade as grades
, '9364097'
, to_number(g.academicyear) as academicyear
from comqdhb.student s
, comqdhb.grade g
where s.upn=g.upn
union
select s.upn
, sb.subject
, g.elevel
, g.grade
, s.acyr
, sc.sn
from comqdhb.subject@glink sb
, comqdhb.student@glink s
, comqdhb.gradevalues@glink g
, comqdhb.school@glink sc,
, comqdhb.studentingroup@glink sg
, comqdhb.teachinggroup@glink tg
where sb.sid=tg.sid
and tg.gid=sg.gid
and sg.upn=s.upn
and g."LEVEL"=tg.elevel
and s.school=sc.id
and sc.id=tg.id; returns
count(upn) from exam gradeIt gets stuck actually sometimes it returns
932002 some results.
2:
Another problem i am having which i am trying to solve and written up my ideas but haven't been getting the expected results.Hope you can help.Thank you.
Information:
=======
All children take exams at the age of 16 called a General Certificate of SecondaryEducation (GCSE).
They have to study and take exams in Mathematics, English and Science, and can take other subjects such as History, French, Art etc. Most students will study between 5 and 10 different subjects before taking their GCSEs.
For each exam, a student is awarded a grade from A*, A, B,C,D,E,F,G,U,X An A* grade is the best grade achievable and an X is the worst grade.
In order to analyze how students have performed, each grade is mapped to a numeric value as follows:
Grade Numerical score
A* 8
A 7
B 6
C 5
D 4
E 3
F 2
G 1
U 0
X 0
Now why i need this avgGCSE is because i have to create a view containing avgGCSE of the students it is used in the next question where a condition is avgGCSE is between 6.5 and 7
In order to calculate the avgGCSE the idea is to calculate the grades of the students and map the grades to their corresponding scores/values
add them all up and div by the total no of grades to get the avg.
desc comqdhb.STUDENT@glink;
STUDENT
=======
UPN
FNAME
CNAME
DOB
GENDER
PREVIOUSSCHOOL
XGCSE
SCHOOL
ACYR
STUDENTINGROUP
=============
UPN
GID
STARTDATE
ENDDATE
GRADE
GRADEVALUES
===========
GRADE
LEVEL
VALUE
I have a opinion that xgcse in STUDENT table refers to the avgGCSE which i want to calculate as when i asked my professor as to what xgcse he said that he forgot to take it out of the table and it is not necessary while creating avggcse.
select *
from comqdhb.student@glink
where xgcse<6.5; Displaying a result
returns:
UPN FAMILYNAME COMMONNAME DATEOFBIR GENDER PREVIOUSSCHOOL XGCSE SCHOOL ACYR
===========================================================================
1011 KIMBERLY ABBOT 07-JUL-79 f none 3.93500948 2 2
select *
from comqdhb.student@glink
where xgcse between 6.5 and 7 and upn = 1386; Displaying a result
returns:
UPN FAMILYNAME COMMONNAME DATEOFBIR GENDER PREVIOUSSCHOOL XGCSE SCHOOL ACYR
===========================================================================
1386 STEPHANIE AANNESSON 15-JAN-79 f none 6.88873 2 2 so if xgcse is the avgGCSE then upn 1011 has avggcse<6.5 and 1386 has avggcse >6.5
my idea was backward strategy like so now if we find out upn 1368 has suppose xgcse(avggcse)>6.5 how to extract the avggcse for the particular upn We need to map grades from GRADEVALUES to grade in STUDENTINGROUP and map upn from studentingroup to upn in student to output the values for the corresponding grades from GRADEVALUES
select grade
from comqdhb.studentingroup@glink
where upn = 1011;
Result:
GRADE
=====
D
F
B
E
C
E
E
B
8 rows selected. Mapping each grade to the corresponding value and calculating we get
32/8=4 total(values to corresponding grades)/no of grades.
But the xgcse for upn 1011 is 3.935 and i am getting 4!! maybe xgcse isn't avggrade but ? is the procedure by me correct for calculating avggcse
select grade
from comqdhb.studentingroup@glink
where upn = 1386;
Result:
GRADE
======
A*
A*
A*
A*
B
A*
A*
A
B
B
B
11 rows selected. grade to the corresponding value and calculating we get
79/11=7.12 total(values to corresponding grades)/no of grades.
But the xgcse for upn 1011 is 6.88... and i am getting 7.12!!
But another problem
when i say
select g.value,g.grade
from comqdhb.gradevalues@glink g
, comqdhb.studentingroup@glink sg
where g.grade=sg.grade
and sg.upn=1011;
result:
======
VALUE GRADE
===========
100 B
100 B
80 C
60 D
40 E
40 E
40 E
20 F
6 B
6 B
5 C
VALUE GRADE
=============
4 D
3 E
3 E
3 E
2 F
16 rows selected.
select distinct g.value,g.grade
from comqdhb.gradevalues@glink g
, comqdhb.studentingroup@glink sg
where g.grade=sg.grade
and sg.upn=1011;
result:
======
VALUE GRADE
============
2 F
100 B
6 B
3 E
60 D
5 C
4 D
80 C
40 E
20 F
10 rows selected. I am getting only 8 for the query
select grade
from comqdhb.studentingroup@glink
where upn = 1386; here its becomming 10 and also its displaying values as 100 and ...
select distinct *
from comqdhb.gradevalues@glink;
GRADEVALUES
===========
LEVEL GRADE VALUE
================================
a A 120
a B 100
a C 80
a D 60
a E 40
a F 20
a U 0
a X 0
g A 7
g A* 8
g B 6
LEVEL GRADE VALUE
================================
g C 5
g D 4
g E 3
g F 2
g G 1
g U 0
g X 0
18 rows selected. I was hoping if i could map the grades and get the values and calculate avggrade by total(values)/count(values)that would be it but here there are values like 100...
select sum(g.value)/count(g.grade) as avggrade
from comqdhb.gradevalues@glink g
, comqdhb.studentingroup@glink sg
where g.grade=sg.grade
and sg.upn=1386;
avggrade
========
37.4375 the avggrade cant be this big and when i map each grade i obtained for 1368 like a to 7+b to 6 so on i get avggrade 7.12
kindly help.
Edited by: Trooper on Dec 15, 2008 4:49 AM -
Limitation on the number of tables in a Database Schema!
Hi All,
Is there a limitation on the number of tables present in a schema that can be fetched in Designer while creating a universe.
Customer is using Oracle schema which contains 22000 tables and while trying to insert tables in Designer XIR2 (or trying to get the table browser) Designer hangs.
In BO 6.5 there are no issues while retrieving the tables from the schema in Designer.
Is there a way to retrieve only a certain amount of tables in Designer XIR2?
Thanks for your help!Hi Ganesh,
Following are the Answers regaring your queries:
Query : 1
There is no limitation on the number of components (objects, classes, tables, joins, hierarchies, lov's, etc) in a universe. But of course as the number of components increases, you could run into problems related to performance.
This depends on available RAM and the processing speed.
Query 2:
There is NO such option to select the number of table to be automatically inserted in to the universe because Suppose if you have 22000 tables in DB and you want only 1000 table ,you entered 1000 tables as the value to insert tables in Universe then How Designer will come to know which tables you want to take in Schema to build the Universe?
It all depends on the DBA and Universe Designer which tables are important for organizations reporting needs.
When you create connection to the DB then Connection will fetch all table from the database and we canu2019t limit DB data retrieval.
I hope this Helps...
Thanks...
Pratik -
How get all table name from database
hi master
sir
how get all table name from databaseThe big question is 'why'.
Selecting from view 'dba_tables' will indeed give the list of all tables in the database, but that includes the dictionary tables and the internal tables, and many others that are probably not of interet to a person who needs to ask this question. Besides, the dba_tables view requires access to a DBA account.
There are several other views: "user_tables" will list all the tables in this user's schema; and "all_tables" will list all the tables this user can access in some way.
The above do not, of course, include any information about synonyms, sequences, views, indexes and so on.
The correct answer and the meaningful answer may be two different things. -
Upgrade ebs Database 10G to 11G (Os upgrade from 32 to 64)
I have to perform the following upgrade:
ebs Database 10G to 11G (Os upgrade from 32 to 64)
Any information is welcome.
Thank you in advance.
Edited by: Atanas Cholakov on Nov 19, 2012 2:27 AMPlease also see:
11gR2 11.2.0.3 Database Certified with E-Business Suite
https://blogs.oracle.com/stevenChan/entry/11gr2_11_2_0_3
Thanks,
Hussein -
Access table directly from database in BO 4.0 WebI Report without using Universe
Can i use the table avilable in database directly to make BO 4.0 WebI Report without create any universe.
I realy appeiciate your help.
Thank you in advance.You need to create a universe for Relational SQL databases. Universe is a must. The reason you create universe is for the end users. WebI is designed for end users to create their own reports. It is a self service reporting tool. In order to do that, you need universe which allows users to query database using SQL without knowing SQL language.
If you don't want to create a universe for reporting then you can use Crystal Reports instead of WebI
Maybe you are looking for
-
How do I select notes in a given velocity range and fix them to a new value
Hello. How do I select notes in a given velocity range and fix them to a new value? I believe you can do this with the Transform window, but I can't figure it out. I can select ALL the notes and fix them to a value. But I want to select the notes wit
-
Using a site in iWeb to publish to an external server - problems with RSS
Hi! I have a rather odd problem. I have a .Mac account, but I also work for a non-profit organization that has asked me to handle their website. I would like to use iWeb to do that and am attempting to publish the site to an external server. However,
-
Transfering iTunes from small Portable HDD to 1TB HDD - Losing ratings etc.
I have a 40gb portable HDD, this ran out of space so I purchased a 1TB portable HDD as I do a lot of design work and Music is outgrowing the 40gb HDD. After transfering it all over, little explaination marks flag up every time you click on a song. I
-
My touchpad is not working sometimes
sometime my touch pad is not working i updated dirver also no use. and my computer in warranty period my smart center also showing error for last four months.
-
Oracle SOA Suite for Oracle E-Business suite (R 12.0.6)
Hi gurus, I am new to SOA, so please bear with my novice question. We implemented Oracle EBS R12 (12.0.6) to support business. There is a need to integrate the EBS with a third party system. To do this through webservices, is SOA suite required? If Y