Begin f(p= :1 ); commit; end;
I was doing some tuning of my Oracle instance running Apex this morning, and the above text is the top by elapsed time, CPU time, and user wait time (with ~4500 executions in the past three days). It's not my SQL. By the look of it, it's probably a commit being performed by Apex itself. I'd just like to have an idea if that's what it is, if it's normal for it to be relatively expensive overal SQL operation, if there's any resource I can give that will make it faster, etc.
matthew_morris wrote:
I was doing some tuning of my Oracle instance running Apex this morning, and the above text is the top by elapsed time, CPU time, and user wait time (with ~4500 executions in the past three days). It's not my SQL. By the look of it, it's probably a commit being performed by Apex itself. I'd just like to have an idea if that's what it is"f" is the name of the procedure Apex uses to process page requests. It maps onto the URL you'll see when you load up an apex page e.g.:
http://myapexdomain/apex/f?p=4500:1000which happens to be URL for the Application Editor Interface...
if it's normal for it to be relatively expensive overal SQL operationIt depends on what your page(s) does when it loads. If there's particularly arduous page processing being done (e.g. a complex report query), then it naturally follows that the call to "f" will take a longer time to execute.
if there's any resource I can give that will make it faster, etc.See above - the best thing to do is see what page(s) in your application(s) take the longest to run (making judicious use of "debug" mode to identify the bottlenecks) and apply your tuning efforts there.
Similar Messages
-
JButton method use BOF(Begin Of File) and EOF(End Of File) like VB?
hii all friends :)
I use Oracle Jdeveloper 10G to design with JClient Method.
i want design navigation button use JButton(swing) not use JUNavigationBar.
but i don,t understand how can i check last record and fist record like in Visual basic use Method BOF(Begin Of File) and EOF(End Of File)? What method/syntax in java i use it?
Can u(all friend in comunity forum) help and teach me how?..
Befors, thanks alot :)
regards
Fok ShenThank,s kanad.
I already try it, but method "isBeforeFirst" and "isAfterLast" not found in javax.swing.Jbutton.
i used Oracle Jdeveloper 10G or version 9.0.5.2 , choose swing/Jclient for ADF under the client tier node and then choose Empty Form Wizard to build an application based on the business components From Table.
i use JMenuBar to create MDI Form.
this is Master Application: JClientForm.java
=============
package JClientTemp.view;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import oracle.jbo.RowIterator;
import oracle.jbo.Row;
import oracle.jbo.common.DefLocaleContext;
import oracle.jbo.uicli.mom.JUMetaObjectManager;
import oracle.jbo.uicli.binding.*;
import oracle.jbo.uicli.controls.*;
import oracle.jbo.uicli.*;
import oracle.jbo.common.JBOClass;
import java.io.InputStream;
import java.io.InputStreamReader;
import oracle.adf.model.*;
import oracle.adf.model.binding.*;
import oracle.adf.model.generic.*;
import java.util.HashMap;
import java.util.ArrayList;
import oracle.jbo.uicli.jui.*;
import javax.swing.JMenuBar;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import javax.swing.KeyStroke;
import java.awt.event.KeyEvent;
import java.awt.Event;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
public class JClientForm extends JFrame
//public static TypeForm FormType(); // Syntax untuk Panggil form
// form layout
private GridLayout gridLayout = new GridLayout();
private BorderLayout borderLayout = new BorderLayout();
//private TypeForm FormType = new TypeForm();
private TypeForm FormType; // Setting variable untuk call frame
// panel definition used in design time
private JUPanelBinding panelBinding = new JUPanelBinding("JClientFormUIModel");
// Navigation bar
// private JUNavigationBar navBar = new JUNavigationBar();
// The status bar
private JUStatusBar statusBar = new JUStatusBar();
// The form's top panel
private JPanel topPanel = new JPanel();
private JPanel dataPanel = new JPanel();
private JMenuBar menubarFrame = new JMenuBar();
private JMenu menuFile = new JMenu();
private JMenuItem itemFileCompList = new JMenuItem();
private JMenuItem itemFileType = new JMenuItem();
private JMenuItem itemFileInventory = new JMenuItem();
private JMenuItem itemFileExit = new JMenuItem();
//private JUNavigationBar hiddenNavBar = new JUNavigationBar();
* the JbInit method
public void jbInit() throws Exception
// form layout
dataPanel.setLayout(null);
menuFile.setText("File");
menuFile.setMnemonic('F');
itemFileCompList.setText("Computer List");
itemFileCompList.setMnemonic('C');
itemFileType.setText("Type");
itemFileType.setMnemonic('T');
itemFileType.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F4, Event.ALT_MASK, false));
itemFileType.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent e)
itemFileType_actionPerformed(e);
itemFileInventory.setText("Inventory");
itemFileInventory.setMnemonic('I');
itemFileExit.setText("Exit");
itemFileExit.setMnemonic('X');
itemFileExit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F4, Event.ALT_MASK, false));
itemFileExit.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent e)
item_file_exit_action(e);
this.getContentPane().setLayout(gridLayout);
this.setTitle("Master Form");
this.setJMenuBar(menubarFrame);
topPanel.setLayout(borderLayout);
this.getContentPane().add(topPanel);
this.setSize(new Dimension(400, 300));
//topPanel.add(navBar, BorderLayout.NORTH);
topPanel.add(dataPanel, BorderLayout.CENTER);
topPanel.add(statusBar, BorderLayout.SOUTH);
menuFile.add(itemFileCompList);
menuFile.add(itemFileType);
menuFile.add(itemFileInventory);
menuFile.addSeparator();
menuFile.add(itemFileExit);
menubarFrame.add(menuFile);
//hiddenNavBar.setModel(JUNavigationBar.createPanelBinding(panelBinding, hiddenNavBar));
//navBar.setModel(JUNavigationBar.createPanelBinding(panelBinding, navBar));
statusBar.setModel(JUStatusBar.createPanelBinding(panelBinding, statusBar));
public static void main(String [] args)
try
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
catch(Exception exemp)
exemp.printStackTrace();
try
// bootstrap application
JUMetaObjectManager.setBaseErrorHandler(new JUErrorHandlerDlg());
JUMetaObjectManager mgr = JUMetaObjectManager.getJUMom();
mgr.setJClientDefFactory(null);
BindingContext ctx = new BindingContext();
ctx.put(DataControlFactory.APP_PARAM_ENV_INFO, new JUEnvInfoProvider());
ctx.setLocaleContext(new DefLocaleContext(null));
HashMap map = new HashMap(4);
map.put(DataControlFactory.APP_PARAMS_BINDING_CONTEXT, ctx);
mgr.loadCpx("DataBindings.cpx", map);
JClientForm frame = new JClientForm();
frame.setBindingContext(ctx);
frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
Dimension frameSize = frame.getSize();
// run this form
if (frameSize.height > screenSize.height)
frameSize.height = screenSize.height;
if (frameSize.width > screenSize.width)
frameSize.width = screenSize.width;
frame.setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2);
frame.setVisible(true);
catch(Exception ex)
JUMetaObjectManager.reportException(null, ex);
System.exit(1);
private int _popupTransactionDialog()
if (panelBinding == null || panelBinding.getPanel() == null)
return JOptionPane.NO_OPTION;
if (panelBinding.isTransactionDirty())
Object [] options = {"Commit", "Rollback"};
int action = JOptionPane.showOptionDialog(JClientForm.this, "How do you want to close the transaction?", "Transaction open", JOptionPane.YES_NO_OPTION, JOptionPane.INFORMATION_MESSAGE, null, options, options[(0)]);
switch (action)
case JOptionPane.NO_OPTION:
hiddenNavBar.doAction(JUNavigationBar.BUTTON_ROLLBACK);
break;
case JOptionPane.CLOSED_OPTION:
break;
case JOptionPane.YES_OPTION:
default:
hiddenNavBar.doAction(JUNavigationBar.BUTTON_COMMIT);
break;
return action;
return JOptionPane.NO_OPTION;
public JUPanelBinding getPanelBinding()
return panelBinding;
public void setPanelBinding(JUPanelBinding binding)
if (binding.getPanel() == null)
binding.setPanel(topPanel);
if (panelBinding == null || panelBinding.getPanel() == null)
try
panelBinding = binding;
jbInit();
catch(Exception ex)
panelBinding.reportException(ex);
* The default constructor for form
public JClientForm()
addWindowListener(new WindowAdapter()
public void windowClosing(WindowEvent e)
//int action = _popupTransactionDialog();
//if (action != JOptionPane.CLOSED_OPTION)
panelBinding.releaseDataControl();
setVisible(false);
dispose();
System.exit(0);
public void setBindingContext(BindingContext bindCtx)
if (panelBinding.getPanel() == null)
panelBinding = panelBinding.setup(bindCtx, this);
registerProjectGlobalVariables(bindCtx);
panelBinding.refreshControl();
try
jbInit();
panelBinding.refreshControl();
catch(Exception ex)
panelBinding.reportException(ex);
private void registerProjectGlobalVariables(BindingContext bindCtx)
JUUtil.registerNavigationBarInterface(panelBinding, bindCtx);
private void unRegisterProjectGlobalVariables(BindingContext bindCtx)
JUUtil.unRegisterNavigationBarInterface(panelBinding, bindCtx);
private void item_file_exit_action(ActionEvent e)
//int action = _popupTransactionDialog();
//if (action != JOptionPane.CLOSED_OPTION)
System.exit(0);
private void itemFileType_actionPerformed(ActionEvent e)
if (FormType==null)
FormType.main2(null);
else
//FormType.setVisible(true);
FormType.setVisible(true);
==========
And Then that is Sub Application : TypeForm.java
=================
package JClientTemp.view;
import java.awt.*;
import java.awt.event.*;
import java.util.Enumeration;
import javax.swing.*;
import javax.swing.event.*;
import oracle.jbo.RowIterator;
import oracle.jbo.Row;
import oracle.jbo.common.DefLocaleContext;
import oracle.jbo.uicli.mom.JUMetaObjectManager;
import oracle.jbo.uicli.binding.*;
import oracle.jbo.uicli.controls.*;
import oracle.jbo.uicli.*;
import oracle.jbo.common.JBOClass;
import java.io.InputStream;
import java.io.EOFException;
import java.io.InputStreamReader;
import oracle.adf.model.*;
import oracle.adf.model.binding.*;
import oracle.adf.model.generic.*;
import java.util.HashMap;
import java.util.ArrayList;
import oracle.jbo.uicli.jui.*;
import javax.swing.JTabbedPane;
import java.awt.BorderLayout;
import javax.swing.JPanel;
import oracle.jbo.uicli.controls.JULabel;
import java.awt.Rectangle;
import oracle.jbo.uicli.jui.JULabelBinding;
import javax.swing.JTextField;
import javax.swing.text.Document;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.TableModel;
import javax.swing.JButton;
import javax.swing.ButtonModel;
import java.awt.Font;
import javax.swing.SwingConstants;
import javax.swing.BorderFactory;
import javax.swing.border.BevelBorder;
import oracle.jbo.uicli.controls.JUNavigationBar;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.Component;
public class java.io.EOFException extends java.io.IOException
// Constructors
public EOFException();
public EOFException(String s);
//import javax.swing.table.TableColumnModel;
//import javax.swing.table.JTableHeader;
//public static TypeForm FormType();
public class TypeForm extends JFrame
// form layout
private GridLayout gridLayout = new GridLayout();
private BorderLayout borderLayout = new BorderLayout();
// panel definition used in design time
private JUPanelBinding panelBinding = new JUPanelBinding("TypeFormUIModel");
// Navigation bar
// private JUNavigationBar navBar = new JUNavigationBar();
// The status bar
private JUStatusBar statusBar = new JUStatusBar();
// The form's top panel
private JPanel topPanel = new JPanel();
//private JUNavigationBar hiddenNavBar = new JUNavigationBar();
private JTabbedPane mainTab = new JTabbedPane();
private JPanel tabTypeBC = new JPanel();
private JPanel tabTypeSC = new JPanel();
private JPanel tabTypeHC = new JPanel();
private JULabel LblTypeBC = new JULabel();
private JULabel LblDecTBC = new JULabel();
private JTextField TxtTypeBC = new JTextField();
private JTextField TxtDecTBC = new JTextField();
private JScrollPane TBCScrollPane = new JScrollPane();
private JTable TypeBCTable = new JTable();
private JULabel LblTypeSC = new JULabel();
private JULabel LblDecSC = new JULabel();
private JTextField TxtTypeSC = new JTextField();
private JTextField TxtDecTSC = new JTextField();
private JScrollPane TSCScrollPane = new JScrollPane();
private JTable TypeSCTable = new JTable();
private JULabel LblTypeHC = new JULabel();
private JULabel LblDecTHC = new JULabel();
private JTextField TxtTypeHC = new JTextField();
private JTextField TxtDecTHC = new JTextField();
private JScrollPane THCScrollPane = new JScrollPane();
private JTable TypeHCTable = new JTable();
private JButton BtFirst = new JButton();
private JButton BtPrev = new JButton();
private JButton BtNext = new JButton();
private JButton BtLast = new JButton();
private JButton BtAdd = new JButton();
private JButton BtDel = new JButton();
private JButton BtSearch = new JButton();
private JButton BtSubmit = new JButton();
private JButton BtCommit = new JButton();
private JButton BtRollback = new JButton();
private JButton BFist = new JButton();
private JButton BPrev = new JButton();
private JButton BNext = new JButton();
private JButton BLast = new JButton();
private JButton BAdd = new JButton();
private JButton BDelete = new JButton();
private JButton BSearch = new JButton();
private JButton BSubmit = new JButton();
private JButton BCommit = new JButton();
private JButton BRollBack = new JButton();
private JButton BtClose = new JButton();
private JButton BClose = new JButton();
private JButton BhFirst = new JButton();
private JButton BhPrev = new JButton();
private JButton BhNext = new JButton();
private JButton BhLast = new JButton();
private JButton BhAdd = new JButton();
private JButton BhDelete = new JButton();
private JButton BhSearch = new JButton();
private JButton BhSubmit = new JButton();
private JButton BhCommit = new JButton();
private JButton BhRollback = new JButton();
private JButton BhClose = new JButton();
//private TableColumnModel tableColumnModel1 = new javax.swing.table.DefaultTableColumnModel();
* the JbInit method
public void jbInit() throws Exception
// form layout
this.getContentPane().setLayout(gridLayout);
this.setTitle("Form Type");
topPanel.setLayout(borderLayout);
tabTypeBC.setLayout(null);
//tabTypeBC.setToolTipText("null");
tabTypeSC.setLayout(null);
tabTypeHC.setLayout(null);
LblTypeBC.setText("jULabel1");
LblTypeBC.setBounds(new Rectangle(15, 45, 115, 15));
LblDecTBC.setText("jULabel1");
LblDecTBC.setBounds(new Rectangle(15, 70, 115, 15));
TxtTypeBC.setBounds(new Rectangle(135, 45, 85, 20));
TxtDecTBC.setBounds(new Rectangle(135, 70, 185, 20));
TBCScrollPane.setBounds(new Rectangle(15, 105, 305, 110));
TypeBCTable.setEnabled(false);
TypeBCTable.setEditingColumn(-1);
TypeBCTable.setEditingRow(-1);
LblTypeSC.setText("jULabel1");
LblTypeSC.setBounds(new Rectangle(10, 50, 140, 15));
LblDecSC.setText("jULabel1");
LblDecSC.setBounds(new Rectangle(10, 75, 140, 15));
TxtTypeSC.setBounds(new Rectangle(155, 50, 85, 20));
TxtDecTSC.setBounds(new Rectangle(155, 75, 155, 20));
TSCScrollPane.setBounds(new Rectangle(10, 110, 300, 105));
TypeSCTable.setEnabled(false);
TypeSCTable.setEditingColumn(-1);
TypeSCTable.setEditingRow(-1);
LblTypeHC.setText("jULabel1");
LblTypeHC.setBounds(new Rectangle(10, 50, 140, 15));
LblDecTHC.setText("jULabel1");
LblDecTHC.setBounds(new Rectangle(10, 75, 140, 15));
LblDecTHC.setToolTipText("null");
TxtTypeHC.setBounds(new Rectangle(150, 45, 100, 20));
TxtDecTHC.setBounds(new Rectangle(150, 75, 160, 20));
THCScrollPane.setBounds(new Rectangle(10, 105, 300, 115));
TypeHCTable.setEnabled(false);
TypeHCTable.setEditingColumn(-1);
TypeHCTable.setEditingRow(-1);
BtFirst.setText("<<");
BtFirst.setBounds(new Rectangle(15, 10, 20, 25));
BtFirst.setFont(new Font("Dialog", 1, 8));
BtFirst.setToolTipText("Move First Record");
BtFirst.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
BtPrev.setText("<");
BtPrev.setBounds(new Rectangle(35, 10, 20, 25));
BtPrev.setFont(new Font("Dialog", 1, 8));
BtPrev.setToolTipText("Move Previous Record");
BtPrev.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
BtPrev.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent e)
BtPrev_actionPerformed(e);
BtNext.setText(">");
BtNext.setBounds(new Rectangle(55, 10, 20, 25));
BtNext.setFont(new Font("Dialog", 1, 8));
BtNext.setToolTipText("Move Next Record");
BtNext.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
BtLast.setText(">>");
BtLast.setBounds(new Rectangle(75, 10, 20, 25));
BtLast.setFont(new Font("Dialog", 1, 8));
BtLast.setToolTipText("Move Last Record");
BtLast.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
BtAdd.setText("Add");
BtAdd.setBounds(new Rectangle(95, 10, 25, 25));
BtAdd.setFont(new Font("Dialog", 1, 10));
BtAdd.setToolTipText("Add Record");
BtAdd.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
BtDel.setText("Del");
BtDel.setBounds(new Rectangle(120, 10, 25, 25));
BtDel.setFont(new Font("Dialog", 1, 10));
BtDel.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
BtDel.setToolTipText("Delete Record");
BtSearch.setText("Search");
BtSearch.setBounds(new Rectangle(145, 10, 40, 25));
BtSearch.setFont(new Font("Dialog", 1, 10));
BtSearch.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
BtSearch.setToolTipText("Search Record");
BtSubmit.setText("Submit");
BtSubmit.setBounds(new Rectangle(185, 10, 45, 25));
BtSubmit.setFont(new Font("Dialog", 1, 10));
BtSubmit.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
BtSubmit.setToolTipText("Submit Record");
BtCommit.setText("Commit");
BtCommit.setBounds(new Rectangle(230, 10, 45, 25));
BtCommit.setFont(new Font("Dialog", 1, 10));
BtCommit.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
BtCommit.setToolTipText("Commit Command");
BtRollback.setText("Rollback");
BtRollback.setBounds(new Rectangle(275, 10, 50, 25));
BtRollback.setFont(new Font("Dialog", 1, 10));
BtRollback.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
BtRollback.setToolTipText("RoolBack Command");
BFist.setText("<<");
BFist.setBounds(new Rectangle(10, 10, 20, 25));
BFist.setFont(new Font("Dialog", 1, 8));
BFist.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
BFist.setToolTipText("Move First Record");
BPrev.setText("<");
BPrev.setBounds(new Rectangle(30, 10, 20, 25));
BPrev.setFont(new Font("Dialog", 1, 8));
BPrev.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
BPrev.setToolTipText("Move Previous Record");
BNext.setText(">");
BNext.setBounds(new Rectangle(50, 10, 20, 25));
BNext.setFont(new Font("Dialog", 1, 8));
BNext.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
BNext.setToolTipText("Move Next Record");
BLast.setText(">>");
BLast.setBounds(new Rectangle(70, 10, 20, 25));
BLast.setFont(new Font("Dialog", 1, 8));
BLast.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
BLast.setToolTipText("Move Last Record");
BAdd.setText("Add");
BAdd.setBounds(new Rectangle(90, 10, 25, 25));
BAdd.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
BAdd.setFont(new Font("Dialog", 1, 10));
BAdd.setToolTipText("Add Record");
BDelete.setText("Del");
BDelete.setBounds(new Rectangle(115, 10, 25, 25));
BDelete.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
BDelete.setFont(new Font("Dialog", 1, 10));
BDelete.setToolTipText("Delete Record");
BSearch.setText("Search");
BSearch.setBounds(new Rectangle(140, 10, 40, 25));
BSearch.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
BSearch.setFont(new Font("Dialog", 1, 10));
BSearch.setToolTipText("Search Record");
BSubmit.setText("Submit");
BSubmit.setBounds(new Rectangle(180, 10, 45, 25));
BSubmit.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
BSubmit.setFont(new Font("Dialog", 1, 10));
BSubmit.setToolTipText("Submit Record");
BCommit.setText("Commit");
BCommit.setBounds(new Rectangle(225, 10, 45, 25));
BCommit.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
BCommit.setFont(new Font("Dialog", 1, 10));
BCommit.setToolTipText("Commit Button");
BRollBack.setText("Rollback");
BRollBack.setBounds(new Rectangle(270, 10, 50, 25));
BRollBack.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
BRollBack.setFont(new Font("Dialog", 1, 10));
BRollBack.setToolTipText("Rollback Button");
BtClose.setText("Close");
BtClose.setBounds(new Rectangle(325, 10, 35, 25));
BtClose.setFont(new Font("Dialog", 1, 10));
BtClose.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
BtClose.setToolTipText("Close Sub Program");
BtClose.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent e)
BtClose_actionPerformed(e);
BClose.setText("Close");
BClose.setBounds(new Rectangle(320, 10, 35, 25));
BClose.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
BClose.setFont(new Font("Dialog", 1, 10));
BClose.setToolTipText("Close Sub Program");
BClose.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent e)
BClose_actionPerformed(e);
BhFirst.setText("<<");
BhFirst.setBounds(new Rectangle(10, 10, 20, 25));
BhFirst.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
BhFirst.setFont(new Font("Dialog", 1, 8));
BhFirst.setToolTipText("Move First Record");
BhPrev.setText("<");
BhPrev.setBounds(new Rectangle(30, 10, 20, 25));
BhPrev.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
BhPrev.setFont(new Font("Dialog", 1, 8));
BhPrev.setToolTipText("Move Previous Record");
BhNext.setText(">");
BhNext.setBounds(new Rectangle(50, 10, 20, 25));
BhNext.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
BhNext.setFont(new Font("Dialog", 1, 8));
BhNext.setToolTipText("Move Next Record");
BhLast.setText(">>");
BhLast.setBounds(new Rectangle(70, 10, 20, 25));
BhLast.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
BhLast.setFont(new Font("Dialog", 1, 8));
BhLast.setToolTipText("Move Last Record");
BhAdd.setText("Add");
BhAdd.setBounds(new Rectangle(90, 10, 25, 25));
BhAdd.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
BhAdd.setFont(new Font("Dialog", 1, 10));
BhAdd.setToolTipText("Add Record");
BhDelete.setText("Del");
BhDelete.setBounds(new Rectangle(115, 10, 25, 25));
BhDelete.setFont(new Font("Dialog", 1, 10));
BhDelete.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
BhDelete.setToolTipText("Delete Record");
BhSearch.setText("Search");
BhSearch.setBounds(new Rectangle(140, 10, 40, 25));
BhSearch.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
BhSearch.setFont(new Font("Dialog", 1, 10));
BhSearch.setToolTipText("Search Record");
BhSubmit.setText("Submit");
BhSubmit.setBounds(new Rectangle(180, 10, 45, 25));
BhSubmit.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
BhSubmit.setFont(new Font("Dialog", 1, 10));
BhSubmit.setToolTipText("Submit Record");
BhCommit.setText("Commit");
BhCommit.setBounds(new Rectangle(225, 10, 45, 25));
BhCommit.setToolTipText("Commit Record");
BhCommit.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
BhCommit.setFont(new Font("Dialog", 1, 10));
BhRollback.setText("Rollback");
BhRollback.setBounds(new Rectangle(270, 10, 50, 25));
BhRollback.setFont(new Font("Dialog", 1, 10));
BhRollback.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
BhRollback.setToolTipText("Rollback Record");
BhClose.setText("Close");
BhClose.setBounds(new Rectangle(320, 10, 35, 25));
BhClose.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
BhClose.setFont(new Font("Dialog", 1, 10));
BhClose.setToolTipText("Close Sub Program");
BhClose.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent e)
BhClose_actionPerformed(e);
this.getContentPane().add(topPanel);
this.setSize(new Dimension(400, 300));
//topPanel.add(navBar, BorderLayout.NORTH);
topPanel.add(statusBar, BorderLayout.SOUTH);
TBCScrollPane.getViewport().add(TypeBCTable, null);
tabTypeBC.add(BtClose, null);
tabTypeBC.add(BtRollback, null);
tabTypeBC.add(BtCommit, null);
tabTypeBC.add(BtSubmit, null);
tabTypeBC.add(BtSearch, null);
tabTypeBC.add(BtDel, null);
tabTypeBC.add(BtAdd, null);
tabTypeBC.add(BtLast, null);
tabTypeBC.add(BtNext, null);
tabTypeBC.add(BtPrev, null);
tabTypeBC.add(BtFirst, null);
tabTypeBC.add(TBCScrollPane, null);
tabTypeBC.add(TxtDecTBC, null);
tabTypeBC.add(TxtTypeBC, null);
tabTypeBC.add(LblDecTBC, null);
tabTypeBC.add(LblTypeBC, null);
mainTab.addTab("Type Book", tabTypeBC);
TSCScrollPane.getViewport().add(TypeSCTable, null);
tabTypeSC.add(BClose, null);
tabTypeSC.add(BRollBack, null);
tabTypeSC.add(BCommit, null);
tabTypeSC.add(BSubmit, null);
tabTypeSC.add(BSearch, null);
tabTypeSC.add(BDelete, null);
tabTypeSC.add(BAdd, null);
tabTypeSC.add(BLast, null);
tabTypeSC.add(BNext, null);
tabTypeSC.add(BPrev, null);
tabTypeSC.add(BFist, null);
tabTypeSC.add(TSCScrollPane, null);
tabTypeSC.add(TxtDecTSC, null);
tabTypeSC.add(TxtTypeSC, null);
tabTypeSC.add(LblDecSC, null);
tabTypeSC.add(LblTypeSC, null);
mainTab.addTab("Type SoftWare", tabTypeSC);
mainTab.addTab("Type Hardware", tabTypeHC);
THCScrollPane.getViewport().add(TypeHCTable, null);
tabTypeHC.add(BhClose, null);
tabTypeHC.add(BhRollback, null);
tabTypeHC.add(BhCommit, null);
tabTypeHC.add(BhSubmit, null);
tabTypeHC.add(BhSearch, null);
tabTypeHC.add(BhDelete, null);
tabTypeHC.add(BhAdd, null);
tabTypeHC.add(BhLast, null);
tabTypeHC.add(BhNext, null);
tabTypeHC.add(BhPrev, null);
tabTypeHC.add(BhFirst, null);
tabTypeHC.add(THCScrollPane, null);
tabTypeHC.add(TxtDecTHC, null);
tabTypeHC.add(TxtTypeHC, null);
tabTypeHC.add(LblDecTHC, null);
tabTypeHC.add(LblTypeHC, null);
topPanel.add(mainTab, BorderLayout.CENTER);
//hiddenNavBar.setModel(JUNavigationBar.createPanelBinding(panelBinding, hiddenNavBar));
//navBar.setModel(JUNavigationBar.createPanelBinding(panelBinding, navBar));
statusBar.setModel(JUStatusBar.createPanelBinding(panelBinding, statusBar));
LblTypeBC.setText("Type Book Code :");
LblDecTBC.setText("Description :");
TxtTypeBC.setDocument((Document)panelBinding.bindUIControl("TypeBc1", TxtTypeBC));
TxtDecTBC.setDocument((Document)panelBinding.bindUIControl("Description1", TxtDecTBC));
TypeBCTable.setModel((TableModel)panelBinding.bindUIControl("TypeBookView1", TypeBCTable));
LblTypeSC.setText("Type Software Code :");
LblDecSC.setText("Description :");
TxtTypeSC.setDocument((Document)panelBinding.bindUIControl("TypeSc1", TxtTypeSC));
TxtDecTSC.setDocument((Document)panelBinding.bindUIControl("Description3", TxtDecTSC));
TypeSCTable.setModel((TableModel)panelBinding.bindUIControl("TypeSoftwareView1", TypeSCTable));
LblTypeHC.setText("Type Hardware Code :");
LblDecTHC.setText("Description :");
TxtTypeHC.setDocument((Document)panelBinding.bindUIControl("TypeHc1", TxtTypeHC));
TxtDecTHC.setDocument((Document)panelBinding.bindUIControl("Description5", TxtDecTHC));
TypeHCTable.setModel((TableModel)panelBinding.bindUIControl("TypeHardwareView1", TypeHCTable));
BtFirst.setModel((ButtonModel)panelBinding.bindUIControl("First", BtFirst));
BtFirst.setText("<<");
BtPrev.setModel((ButtonModel)panelBinding.bindUIControl("Previous", BtPrev));
BtPrev.setText("<");
BtNext.setModel((ButtonModel)panelBinding.bindUIControl("Next", BtNext));
BtNext.setText(">");
BtLast.setModel((ButtonModel)panelBinding.bindUIControl("Last", BtLast));
BtLast.setText(">>");
BtAdd.setModel((ButtonModel)panelBinding.bindUIControl("Create", BtAdd));
BtAdd.setText("Add");
BtDel.setModel((ButtonModel)panelBinding.bindUIControl("Delete", BtDel));
BtDel.setText("Del");
BtSearch.setModel((ButtonModel)panelBinding.bindUIControl("Find", BtSearch));
BtSearch.setText("Search");
BtSubmit.setModel((ButtonModel)panelBinding.bindUIControl("Execute", BtSubmit));
BtSubmit.setText("Submit");
BtCommit.setModel((ButtonModel)panelBinding.bindUIControl("Commit", BtCommit));
BtCommit.setText("Commit");
BtRollback.setModel((ButtonModel)panelBinding.bindUIControl("Rollback", BtRollback));
BtRollback.setText("Rollback");
BFist.setModel((ButtonModel)panelBinding.bindUIControl("First1", BFist));
BFist.setText("<<");
BPrev.setModel((ButtonModel)panelBinding.bindUIControl("Previous1", BPrev));
BPrev.setText("<");
BNext.setModel((ButtonModel)panelBinding.bindUIControl("Next1", BNext)); -
Missing table begin XSL context for: ?end if?
I have 8 if clauses with grouping sub grouping data shown.
when I try to validate my RTF file I am getting following error msg:
[061112_073853972][][ERROR] [Line 3322.83] Missing table begin XSL context for: <?end if?>
[061112_073854018][][ERROR] [Line 3624.134] Missing table begin XSL context for: <?end if?>
[061112_073854050][][ERROR] [Line 3878.184] Missing table begin XSL context for: <?end if?>
[061112_073854081][][ERROR] [Line 4203.183] Missing table begin XSL context for: <?end if?>
[061112_073854112][][ERROR] [Line 4479.134] Missing table begin XSL context for: <?end if?>
[061112_073854143][][ERROR] [Line 4870.182] Missing table begin XSL context for: <?end if?>
[061112_073854190][][ERROR] [Line 5201.182] Missing table begin XSL context for: <?end if?>
I have check each and every <?if:...?> clasue and it's corresponding <?end if?> clauseIssue has be identified:
It was a end of group statement after the structure of table.
all of <?end for-each-group?> end tage should be in a table and only if (open and close) statement should group them. -
In shuffle mode next song begins before previous song has ended.
Next song begins playing before previous song has ended.
I checked them all. The last playlist that had this issue only had 24 songs so it wasn't hard to look at each individually. That's definitely not the issue.
I also had that particular playlist play all the way through in shuffle mode with no issue both before and since the last occurrence. It's the same case with shuffling many other playlists of mine both new and old (I guess that wasn't clear enough in my original post). The inconsistency of this issue is what has had me particularly vexed and why I figured it was a bug.
Again, thanks for your suggestion. -
Can I add a new trigger to the beginning instead of at the end of a blank composition widget?
Hi guys,
I am creating a photo gallery page using the Blank Composition widget. I want to be able to add new content regularly by adding new photos to the top (beginning) of the gallery so my newest photos show at the beggining of the gallery.
Currently, the little + symbol to add another trigger only adds a new trigger to the right (bottom) of group of triggers, effectively putting newly added content to the back of the gallery instead of at the front. Am I able to get it to add a new trigger to the beginning of the group and have that trigger be the first in the group to display?
All the widget's seem to display this same order behaviour, so I'm quite stuck on how to get around this. I've tried re-arranging the triggers, but that has become insanely cumbersome every time I want to add new photos to the beginning of the group and move the older ones further down the gallery order.
Any help would be greatly appreciated with this, cheers, David.OK
I'm a newbie.
I have the same problem. I've looked at some recommended 3rd party widgets and they don't do what I want either.
Another method would be to start a nabble.com blog and embed that in to Muse, but then the news would not be seen by web crawlers and benefit your ranking on your own page. (I think)
This is a rubbish work around but, I'm going to add a new news widget every month. I only get 5-6 bits of news a month, so by adding a new widget above the last each time, that will push the old news down the page.
Hope this helps someone.
Jay -
Could we get a deadlock error on COMMIT (END TRANSACTION) in BDB-SQL
According to the DB_TXN->commit documentation at:
http://download.oracle.com/docs/cd/E17076_02/html/api_reference/C/txncommit.html
"After DB_TXN->commit() has been called, regardless of its return, the DB_TXN handle may not be accessed again.
If DB_TXN->commit() encounters an error, the transaction and all child transactions of the transaction are aborted."
Since BDB-SQL uses the BDB engine, should the code handle such errors in BDB-SQL?
Another point to keep in mind is that, post BDB-SQL version 5.1 upon receiving a potential deadlock error all the previous operations(child transactions) in the same transaction are still valid and can be committed.
It would be great if someone can throw some light on this.
Edited by: user10942853 on Jul 28, 2011 9:31 AMuser10942853 wrote:
LaurenFoutz wrote:
I do not think commit can experience a deadlock error since it does not obtain any new locks, and it could not have been in a blocked state if you are able to call commit. Either way, after calling commit on a transaction in SQL the transaction is done, even if an error is returned. At that point if an error is returned the transaction (and all the work its children have done) is either aborted under the covers, or the database has been corrupted, and all future calls to it will return a corruption error that will require restarting the database to restore it (and the restoration will roll back any work done by the transaction since it did not complete cleanly).
Hope that answers your question.
Lauren FoutzLauren, thanks for the reply. From your reply, though there is little possibility that we can get an error on commit looks like we should be prepared to handle such errors in BDB-SQL. We have had instances where we experienced an error on commit while using native BDB (without SQL API) and wanted to confirm the same.You are correct. Error when committing are rare in both the SQL and native API, but they can happen and you should deal with them when they do.
Lauren Foutz -
Inserting data in remote database with remote procedure
Hi,
I have a problem concerning inserting data in a remote database (10g) by using a remote procedure.
I call the procedure from a 11g database just by doing:
begin
getlocalfilecontent@remoteserv(param)
commit;
end;
And it wouldn't insert the data into the remote table.
While when I execute the same procedure locally on that remote database (10g)
It does insert the data I want.
What could be causing the problem here, am I overseeing something?
Edited by: user7634309 on 14-Aug-2009 02:14Already thanks for the fast replies
The dblink works perfectly. I can select data etc with this dblink.
The procedure on the remote database is the same.
One other thing, when I execute the remote procedure on local database 2nd time I get the
ORA-ERR: ORA-02041: client database did not begin a transaction.
This could be fixed by doing a commit or rollback but still no inserting in remote table.
So to sum it up:
What doesn't work:(no inserting)
On 11g server that calls remotely the procedure
begin
getlocalfilecontent@remoteserv(parameter);
commit;
end;
What works(does insert)
On 10g server calling the procedure locally
begin
getlocalfilecontent(param);
commit;
end;
So everything is the same except on the 11g server I add the dblink spec behiind the procedurecall -
i export the full database as a dump file in one location after that i tried to import to another database.
my doubt is if i import the database ....the existing database is having datadictionary ,v$views etc..
so wont it clash with the existing systemtables
When i import my database i got the followin error
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
Export file created by EXPORT:V10.02.01 via conventional path
Warning: the objects were exported by SYSTEM, not by you
import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
IMP-00017: following statement failed with ORACLE error 4063:
"BEGIN "
"SYS.DBMS_AQADM.GRANT_SYSTEM_PRIVILEGE('MANAGE_ANY','SYS',TRUE);"
"COMMIT; END;"
IMP-00003: ORACLE error 4063 encountered
ORA-04063: package body "SYS.DBMS_AQADM_SYS" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_AQADM_SYS"
ORA-06512: at "SYS.DBMS_AQADM", line 480
ORA-06512: at line 2
IMP-00017: following statement failed with ORACLE error 4063:
"BEGIN "
"SYS.DBMS_AQADM.GRANT_SYSTEM_PRIVILEGE('MANAGE_ANY','DBA',TRUE);"
"COMMIT; END;"
IMP-00003: ORACLE error 4063 encountered
ORA-04063: package body "SYS.DBMS_AQADM_SYS" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_AQADM_SYS"
ORA-06512: at "SYS.DBMS_AQADM", line 480
ORA-06512: at line 2
IMP-00017: following statement failed with ORACLE error 4063:
"BEGIN "
"SYS.DBMS_AQADM.GRANT_SYSTEM_PRIVILEGE('MANAGE_ANY','IMP_FULL_DATABASE',FALS"
"E);"
"COMMIT; END;"
IMP-00003: ORACLE error 4063 encountered
ORA-04063: package body "SYS.DBMS_AQADM_SYS" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_AQADM_SYS"
ORA-06512: at "SYS.DBMS_AQADM", line 480
ORA-06512: at line 2
IMP-00017: following statement failed with ORACLE error 4063:
"BEGIN "
"SYS.DBMS_AQADM.GRANT_SYSTEM_PRIVILEGE('MANAGE_ANY','AQ_ADMINISTRATOR_ROLE',"
"TRUE);"
"COMMIT; END;"
IMP-00003: ORACLE error 4063 encountered
ORA-04063: package body "SYS.DBMS_AQADM_SYS" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_AQADM_SYS"
ORA-06512: at "SYS.DBMS_AQADM", line 480
ORA-06512: at line 2
IMP-00017: following statement failed with ORACLE error 4063:
"BEGIN "
"SYS.DBMS_AQADM.GRANT_SYSTEM_PRIVILEGE('MANAGE_ANY','OEM_MONITOR',FALSE);"
"COMMIT; END;"
IMP-00003: ORACLE error 4063 encountered
ORA-04063: package body "SYS.DBMS_AQADM_SYS" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_AQADM_SYS"
ORA-06512: at "SYS.DBMS_AQADM", line 480
ORA-06512: at line 2
IMP-00017: following statement failed with ORACLE error 4063:
"BEGIN "
"SYS.DBMS_AQADM.GRANT_SYSTEM_PRIVILEGE('DEQUEUE_ANY','SYS',TRUE);"
"COMMIT; END;"
IMP-00003: ORACLE error 4063 encountered
ORA-04063: package body "SYS.DBMS_AQADM_SYS" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_AQADM_SYS"
ORA-06512: at "SYS.DBMS_AQADM", line 480
ORA-06512: at line 2
IMP-00017: following statement failed with ORACLE error 4063:
"BEGIN "
"SYS.DBMS_AQADM.GRANT_SYSTEM_PRIVILEGE('DEQUEUE_ANY','DBA',TRUE);"
"COMMIT; END;"
IMP-00003: ORACLE error 4063 encountered
ORA-04063: package body "SYS.DBMS_AQADM_SYS" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_AQADM_SYS"
ORA-06512: at "SYS.DBMS_AQADM", line 480
ORA-06512: at line 2
IMP-00017: following statement failed with ORACLE error 4063:
"BEGIN "
"SYS.DBMS_AQADM.GRANT_SYSTEM_PRIVILEGE('DEQUEUE_ANY','AQ_ADMINISTRATOR_ROLE'"
",TRUE);"
"COMMIT; END;"
IMP-00003: ORACLE error 4063 encountered
ORA-04063: package body "SYS.DBMS_AQADM_SYS" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_AQADM_SYS"
ORA-06512: at "SYS.DBMS_AQADM", line 480
ORA-06512: at line 2
IMP-00017: following statement failed with ORACLE error 4063:
"BEGIN "
"SYS.DBMS_AQADM.GRANT_SYSTEM_PRIVILEGE('ENQUEUE_ANY','SYS',TRUE);"
"COMMIT; END;"
IMP-00003: ORACLE error 4063 encountered
ORA-04063: package body "SYS.DBMS_AQADM_SYS" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_AQADM_SYS"
ORA-06512: at "SYS.DBMS_AQADM", line 480
ORA-06512: at line 2
IMP-00017: following statement failed with ORACLE error 4063:
"BEGIN "
"SYS.DBMS_AQADM.GRANT_SYSTEM_PRIVILEGE('ENQUEUE_ANY','DBA',TRUE);"
"COMMIT; END;"
IMP-00003: ORACLE error 4063 encountered
ORA-04063: package body "SYS.DBMS_AQADM_SYS" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_AQADM_SYS"
ORA-06512: at "SYS.DBMS_AQADM", line 480
ORA-06512: at line 2
IMP-00017: following statement failed with ORACLE error 4063:
"BEGIN "
"SYS.DBMS_AQADM.GRANT_SYSTEM_PRIVILEGE('ENQUEUE_ANY','AQ_ADMINISTRATOR_ROLE'"
",TRUE);"
"COMMIT; END;"
IMP-00003: ORACLE error 4063 encountered
ORA-04063: package body "SYS.DBMS_AQADM_SYS" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_AQADM_SYS"
ORA-06512: at "SYS.DBMS_AQADM", line 480
ORA-06512: at line 2
IMP-00017: following statement failed with ORACLE error 2304:
"CREATE TYPE "REPCAT$_OBJECT_NULL_VECTOR" TIMESTAMP '2005-08-30:14:05:35' OI"
"D '296EAC6057114D26B123A36D2679C516' AS OBJECT"
" -- type owner, name, hashcode for the type represented by null_vector"
" type_owner VARCHAR2(30),"
" type_name VARCHAR2(30),"
" type_hashcode RAW(17),"
" -- null_vector for a particular object instance"
" -- ROBJ REVISIT: should only contain the null image, and not version#"
" null_vector RAW(2000)"
IMP-00003: ORACLE error 2304 encountered
ORA-02304: invalid object identifier literal
IMP-00017: following statement failed with ORACLE error 4063:
"BEGIN "
"sys.dbms_logrep_imp.instantiate_schema(schema_name=>NULL, export_db_name=>'"
"ORCLBK.REGRESS.RDBMS.DEV.US.ORACLE.COM', inst_scn=>'820250');sys.dbms_logre"
"p_imp.bump_scn(scn=>'820250');"
"COMMIT; END;"
IMP-00003: ORACLE error 4063 encountered
ORA-04063: package body "SYS.DBMS_LOGREP_UTIL" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_LOGREP_UTIL"
ORA-06512: at "SYS.DBMS_LOGREP_IMP", line 274
ORA-06512: at line 2
IMP-00017: following statement failed with ORACLE error 4063:
"BEGIN "
"SYS.DBMS_REPCAT_MIG.PRE_IMPORT;"
"COMMIT; END;"
IMP-00003: ORACLE error 4063 encountered
ORA-04063: package body "SYS.DBMS_REPCAT_MIG_INTERNAL" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_REPCAT_MIG_INTERNAL"
ORA-06512: at "SYS.DBMS_REPCAT_MIG", line 116
ORA-06512: at line 2
IMP-00017: following statement failed with ORACLE error 6550:
"BEGIN "
"dbms_server_alert.set_threshold(2104,dbms_server_alert.operator_GT,'1200',d"
"bms_server_alert.operator_NONE,'',1,3,'orclbk',dbms_server_alert.object_typ"
"e_SYSTEM,'');"
"COMMIT; END;"
IMP-00003: ORACLE error 6550 encountered
ORA-06550: line 2, column 93:
PLS-00302: component 'OPERATOR_NONE' must be declared
ORA-06550: line 2, column 1:
PL/SQL: Statement ignored
IMP-00017: following statement failed with ORACLE error 6550:
"BEGIN "
"dbms_server_alert.set_threshold(2018,dbms_server_alert.operator_GE,'100',db"
"ms_server_alert.operator_NONE,'',1,2,'orclbk',dbms_server_alert.object_type"
"_SYSTEM,'');"
"COMMIT; END;"
IMP-00003: ORACLE error 6550 encountered
ORA-06550: line 2, column 92:
PLS-00302: component 'OPERATOR_NONE' must be declared
ORA-06550: line 2, column 1:
PL/SQL: Statement ignored
IMP-00017: following statement failed with ORACLE error 6550:
"BEGIN "
"dbms_server_alert.set_threshold(1000,dbms_server_alert.operator_GT,'10',dbm"
"s_server_alert.operator_NONE,'',1,1,'orclbk',dbms_server_alert.object_type_"
"EVENT_CLASS,'Administrative');"
"COMMIT; END;"
IMP-00003: ORACLE error 6550 encountered
ORA-06550: line 2, column 91:
PLS-00302: component 'OPERATOR_NONE' must be declared
ORA-06550: line 2, column 1:
PL/SQL: Statement ignored
IMP-00017: following statement failed with ORACLE error 6550:
"BEGIN "
"dbms_server_alert.set_threshold(1000,dbms_server_alert.operator_GT,'10',dbm"
"s_server_alert.operator_NONE,'',1,1,'orclbk',dbms_server_alert.object_type_"
"EVENT_CLASS,'Application');"
"COMMIT; END;"
IMP-00003: ORACLE error 6550 encountered
ORA-06550: line 2, column 91:
PLS-00302: component 'OPERATOR_NONE' must be declared
ORA-06550: line 2, column 1:
PL/SQL: Statement ignored
IMP-00017: following statement failed with ORACLE error 6550:
"BEGIN "
"dbms_server_alert.set_threshold(1000,dbms_server_alert.operator_GT,'10',dbm"
"s_server_alert.operator_NONE,'',1,1,'orclbk',dbms_server_alert.object_type_"
"EVENT_CLASS,'Concurrency');"
"COMMIT; END;"
IMP-00003: ORACLE error 6550 encountered
ORA-06550: line 2, column 91:
PLS-00302: component 'OPERATOR_NONE' must be declared
ORA-06550: line 2, column 1:
PL/SQL: Statement ignored
IMP-00017: following statement failed with ORACLE error 6550:
"BEGIN "
"dbms_server_alert.set_threshold(1000,dbms_server_alert.operator_GT,'10',dbm"
"s_server_alert.operator_NONE,'',1,1,'orclbk',dbms_server_alert.object_type_"
"EVENT_CLASS,'Configuration');"
"COMMIT; END;"
IMP-00003: ORACLE error 6550 encountered
ORA-06550: line 2, column 91:
PLS-00302: component 'OPERATOR_NONE' must be declared
ORA-06550: line 2, column 1:
PL/SQL: Statement ignored
IMP-00017: following statement failed with ORACLE error 6550:
"BEGIN "
"dbms_server_alert.set_threshold(1000,dbms_server_alert.operator_GT,'10',dbm"
"s_server_alert.operator_NONE,'',1,1,'orclbk',dbms_server_alert.object_type_"
"EVENT_CLASS,'Network');"
"COMMIT; END;"
IMP-00003: ORACLE error 6550 encountered
ORA-06550: line 2, column 91:
PLS-00302: component 'OPERATOR_NONE' must be declared
ORA-06550: line 2, column 1:
PL/SQL: Statement ignored
IMP-00017: following statement failed with ORACLE error 6550:
"BEGIN "
"dbms_server_alert.set_threshold(1000,dbms_server_alert.operator_GT,'10',dbm"
"s_server_alert.operator_NONE,'',1,1,'orclbk',dbms_server_alert.object_type_"
"EVENT_CLASS,'Other');"
"COMMIT; END;"
IMP-00003: ORACLE error 6550 encountered
ORA-06550: line 2, column 91:
PLS-00302: component 'OPERATOR_NONE' must be declared
ORA-06550: line 2, column 1:
PL/SQL: Statement ignored
IMP-00017: following statement failed with ORACLE error 6550:
"BEGIN "
"dbms_server_alert.set_threshold(1000,dbms_server_alert.operator_GT,'30',dbm"
"s_server_alert.operator_NONE,'',1,1,'orclbk',dbms_server_alert.object_type_"
"EVENT_CLASS,'Cluster');"
"COMMIT; END;"
IMP-00003: ORACLE error 6550 encountered
ORA-06550: line 2, column 91:
PLS-00302: component 'OPERATOR_NONE' must be declared
ORA-06550: line 2, column 1:
PL/SQL: Statement ignored
IMP-00017: following statement failed with ORACLE error 6550:
"BEGIN "
"dbms_server_alert.set_threshold(1000,dbms_server_alert.operator_GT,'30',dbm"
"s_server_alert.operator_NONE,'',1,1,'orclbk',dbms_server_alert.object_type_"
"EVENT_CLASS,'Commit');"
"COMMIT; END;"
IMP-00003: ORACLE error 6550 encountered
ORA-06550: line 2, column 91:
PLS-00302: component 'OPERATOR_NONE' must be declared
ORA-06550: line 2, column 1:
PL/SQL: Statement ignored
IMP-00017: following statement failed with ORACLE error 6550:
"BEGIN "
"dbms_server_alert.set_threshold(1001,dbms_server_alert.operator_GT,'30',dbm"
"s_server_alert.operator_NONE,'',1,1,'orclbk',dbms_server_alert.object_type_"
"EVENT_CLASS,'Administrative');"
"COMMIT; END;"
IMP-00003: ORACLE error 6550 encountered
ORA-06550: line 2, column 91:
PLS-00302: component 'OPERATOR_NONE' must be declared
ORA-06550: line 2, column 1:
PL/SQL: Statement ignored
IMP-00017: following statement failed with ORACLE error 6550:
"BEGIN "
"dbms_server_alert.set_threshold(1001,dbms_server_alert.operator_GT,'30',dbm"
"s_server_alert.operator_NONE,'',1,1,'orclbk',dbms_server_alert.object_type_"
"EVENT_CLASS,'Application');"
"COMMIT; END;"
IMP-00003: ORACLE error 6550 encountered
ORA-06550: line 2, column 91:
PLS-00302: component 'OPERATOR_NONE' must be declared
ORA-06550: line 2, column 1:
PL/SQL: Statement ignored
IMP-00017: following statement failed with ORACLE error 6550:
"BEGIN "
"dbms_server_alert.set_threshold(1001,dbms_server_alert.operator_GT,'30',dbm"
"s_server_alert.operator_NONE,'',1,1,'orclbk',dbms_server_alert.object_type_"
"EVENT_CLASS,'Concurrency');"
"COMMIT; END;"
IMP-00003: ORACLE error 6550 encountered
ORA-06550: line 2, column 91:
PLS-00302: component 'OPERATOR_NONE' must be declared
ORA-06550: line 2, column 1:
PL/SQL: Statement ignored
IMP-00017: following statement failed with ORACLE error 6550:
"BEGIN "
"dbms_server_alert.set_threshold(1001,dbms_server_alert.operator_GT,'30',dbm"
"s_server_alert.operator_NONE,'',1,1,'orclbk',dbms_server_alert.object_type_"
"EVENT_CLASS,'Configuration');"
"COMMIT; END;"
IMP-00003: ORACLE error 6550 encountered
ORA-06550: line 2, column 91:
PLS-00302: component 'OPERATOR_NONE' must be declared
ORA-06550: line 2, column 1:
PL/SQL: Statement ignored
IMP-00017: following statement failed with ORACLE error 6550:
"BEGIN "
"dbms_server_alert.set_threshold(1001,dbms_server_alert.operator_GT,'30',dbm"
"s_server_alert.operator_NONE,'',1,1,'orclbk',dbms_server_alert.object_type_"
"EVENT_CLASS,'Network');"
"COMMIT; END;"
IMP-00003: ORACLE error 6550 encountered
ORA-06550: line 2, column 91:
PLS-00302: component 'OPERATOR_NONE' must be declared
ORA-06550: line 2, column 1:
PL/SQL: Statement ignored
IMP-00017: following statement failed with ORACLE error 6550:
"BEGIN "
"dbms_server_alert.set_threshold(1001,dbms_server_alert.operator_GT,'30',dbm"
"s_server_alert.operator_NONE,'',1,1,'orclbk',dbms_server_alert.object_type_"
"EVENT_CLASS,'Other');"
"COMMIT; END;"
IMP-00003: ORACLE error 6550 encountered
ORA-06550: line 2, column 91:
PLS-00302: component 'OPERATOR_NONE' must be declared
ORA-06550: line 2, column 1:
PL/SQL: Statement ignored
IMP-00017: following statement failed with ORACLE error 6550:
"BEGIN "
"dbms_server_alert.set_threshold(1001,dbms_server_alert.operator_GT,'50',dbm"
"s_server_alert.operator_NONE,'',1,1,'orclbk',dbms_server_alert.object_type_"
"EVENT_CLASS,'Cluster');"
"COMMIT; END;"
IMP-00003: ORACLE error 6550 encountered
ORA-06550: line 2, column 91:
PLS-00302: component 'OPERATOR_NONE' must be declared
ORA-06550: line 2, column 1:
PL/SQL: Statement ignored
IMP-00017: following statement failed with ORACLE error 6550:
"BEGIN "
"dbms_server_alert.set_threshold(1001,dbms_server_alert.operator_GT,'50',dbm"
"s_server_alert.operator_NONE,'',1,1,'orclbk',dbms_server_alert.object_type_"
"EVENT_CLASS,'Commit');"
"COMMIT; END;"
IMP-00003: ORACLE error 6550 encountered
ORA-06550: line 2, column 91:
PLS-00302: component 'OPERATOR_NONE' must be declared
ORA-06550: line 2, column 1:
PL/SQL: Statement ignored
IMP-00017: following statement failed with ORACLE error 29371:
"BEGIN "
"dbms_resource_manager.set_consumer_group_mapping_pri(1,7,6,9,8,10,5,4,3,2);"
"dbms_resource_manager.set_consumer_group_mapping('ORACLE_USER','SYSTEM','SY"
"S_GROUP');"
"dbms_resource_manager.set_consumer_group_mapping('ORACLE_USER','SYS','SYS_G"
"ROUP');"
"dbms_resource_manager.submit_pending_area;"
"COMMIT; END;"
IMP-00003: ORACLE error 29371 encountered
ORA-29371: pending area is not active
ORA-06512: at "SYS.DBMS_RMIN", line 332
ORA-06512: at "SYS.DBMS_RESOURCE_MANAGER", line 413
ORA-06512: at line 2
IMP-00017: following statement failed with ORACLE error 4063:
"BEGIN "
"sys.dbms_logrep_imp.instantiate_schema(schema_name=>SYS_CONTEXT('USERENV','"
"CURRENT_SCHEMA'), export_db_name=>'ORCLBK.REGRESS.RDBMS.DEV.US.ORACLE.COM',"
" inst_scn=>'820288');"
"COMMIT; END;"
IMP-00003: ORACLE error 4063 encountered
ORA-04063: package body "SYS.DBMS_LOGREP_UTIL" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_LOGREP_UTIL"
ORA-06512: at "SYS.DBMS_LOGREP_IMP", line 274
ORA-06512: at line 2
IMP-00017: following statement failed with ORACLE error 6550:
"BEGIN SYS.DBMS_DEFER_IMPORT_INTERNAL.QUEUE_IMPORT_CHECK('ORCLBK.REGRESS.R"
"DBMS.DEV.US.ORACLE.COM','IBMPC/WIN_NT-8.1.0'); END;"
IMP-00003: ORACLE error 6550 encountered
ORA-06550: line 1, column 9:
PLS-00201: identifier 'SYS.DBMS_DEFER_IMPORT_INTERNAL' must be declared
ORA-06550: line 1, column 9:
PL/SQL: Statement ignored
. . importing table "DEF$_AQCALL" 0 rows imported
IMP-00017: following statement failed with ORACLE error 6550:
"BEGIN SYS.DBMS_DEFER_IMPORT_INTERNAL.QUEUE_IMPORT_CHECK('ORCLBK.REGRESS.R"
"DBMS.DEV.US.ORACLE.COM','IBMPC/WIN_NT-8.1.0'); END;"
IMP-00003: ORACLE error 6550 encountered
ORA-06550: line 1, column 9:
PLS-00201: identifier 'SYS.DBMS_DEFER_IMPORT_INTERNAL' must be declared
ORA-06550: line 1, column 9:
PL/SQL: Statement ignored
. . importing table "DEF$_AQERROR" 0 rows imported
IMP-00017: following statement failed with ORACLE error 6550:
"BEGIN SYS.DBMS_DEFER_IMPORT_INTERNAL.QUEUE_IMPORT_CHECK('ORCLBK.REGRESS.R"
"DBMS.DEV.US.ORACLE.COM','IBMPC/WIN_NT-8.1.0'); END;"
IMP-00003: ORACLE error 6550 encountered
ORA-06550: line 1, column 9:
PLS-00201: identifier 'SYS.DBMS_DEFER_IMPORT_INTERNAL' must be declared
ORA-06550: line 1, column 9:
PL/SQL: Statement ignored
. . importing table "DEF$_CALLDEST" 0 rows imported
IMP-00017: following statement failed with ORACLE error 6550:
"BEGIN SYS.DBMS_DEFER_IMPORT_INTERNAL.QUEUE_IMPORT_CHECK('ORCLBK.REGRESS.R"
"DBMS.DEV.US.ORACLE.COM','IBMPC/WIN_NT-8.1.0'); END;"
IMP-00003: ORACLE error 6550 encountered
ORA-06550: line 1, column 9:
PLS-00201: identifier 'SYS.DBMS_DEFER_IMPORT_INTERNAL' must be declared
ORA-06550: line 1, column 9:
PL/SQL: Statement ignored
. . importing table "DEF$_DEFAULTDEST" 0 rows imported
IMP-00017: following statement failed with ORACLE error 6550:
"BEGIN SYS.DBMS_DEFER_IMPORT_INTERNAL.QUEUE_IMPORT_CHECK('ORCLBK.REGRESS.R"
"DBMS.DEV.US.ORACLE.COM','IBMPC/WIN_NT-8.1.0'); END;"
IMP-00003: ORACLE error 6550 encountered
ORA-06550: line 1, column 9:
PLS-00201: identifier 'SYS.DBMS_DEFER_IMPORT_INTERNAL' must be declared
ORA-06550: line 1, column 9:
PL/SQL: Statement ignored
. . importing table "DEF$_DESTINATION" 0 rows imported
IMP-00017: following statement failed with ORACLE error 6550:
"BEGIN SYS.DBMS_DEFER_IMPORT_INTERNAL.QUEUE_IMPORT_CHECK('ORCLBK.REGRESS.R"
"DBMS.DEV.US.ORACLE.COM','IBMPC/WIN_NT-8.1.0'); END;"
IMP-00003: ORACLE error 6550 encountered
ORA-06550: line 1, column 9:
PLS-00201: identifier 'SYS.DBMS_DEFER_IMPORT_INTERNAL' must be declared
ORA-06550: line 1, column 9:
PL/SQL: Statement ignored
. . importing table "DEF$_ERROR" 0 rows imported
. . importing table "DEF$_LOB" 0 rows imported
. . importing table "DEF$_ORIGIN" 0 rows imported
. . importing table "DEF$_PROPAGATOR" 0 rows imported
. . importing table "DEF$_PUSHED_TRANSACTIONS" 0 rows imported
. . importing table "DEF$_TEMP$LOB" 0 rows imported
. . importing table "DEPT" 0 rows imported
. . importing table "DEPT1" 0 rows imported
. . importing table "EMP" 0 rows imported
. . importing table "EMP1" 0 rows imported
. . importing table "LOGSTDBY$APPLY_MILESTONE" 0 rows imported
. . importing partition "LOGSTDBY$APPLY_PROGRESS":"P0" 0 rows imported
. . importing table "LOGSTDBY$EVENTS" 0 rows imported
. . importing table "LOGSTDBY$HISTORY" 0 rows imported
. . importing table "LOGSTDBY$PARAMETERS" 0 rows imported
. . importing table "LOGSTDBY$PLSQL" 0 rows imported
. . importing table "LOGSTDBY$SCN" 0 rows imported
. . importing table "LOGSTDBY$SKIP" 0 rows imported
. . importing table "LOGSTDBY$SKIP_TRANSACTION" 0 rows imported
. . importing table "MVIEW$_ADV_INDEX" 0 rows imported
. . importing table "MVIEW$_ADV_PARTITION" 0 rows imported
. . importing table "REPCAT$_AUDIT_ATTRIBUTE" 2 rows imported
. . importing table "REPCAT$_AUDIT_COLUMN" 0 rows imported
. . importing table "REPCAT$_COLUMN_GROUP" 0 rows imported
. . importing table "REPCAT$_CONFLICT" 0 rows imported
. . importing table "REPCAT$_DDL" 0 rows imported
. . importing table "REPCAT$_EXCEPTIONS" 0 rows imported
. . importing table "REPCAT$_EXTENSION" 0 rows imported
. . importing table "REPCAT$_FLAVORS" 0 rows imported
. . importing table "REPCAT$_FLAVOR_OBJECTS" 0 rows imported
. . importing table "REPCAT$_GENERATED" 0 rows imported
. . importing table "REPCAT$_GROUPED_COLUMN" 0 rows imported
. . importing table "REPCAT$_INSTANTIATION_DDL" 0 rows imported
. . importing table "REPCAT$_KEY_COLUMNS" 0 rows imported
. . importing table "REPCAT$_OBJECT_PARMS" 0 rows imported
. . importing table "REPCAT$_OBJECT_TYPES" 28 rows imported
. . importing table "REPCAT$_PARAMETER_COLUMN" 0 rows imported
. . importing table "REPCAT$_PRIORITY" 0 rows imported
. . importing table "REPCAT$_PRIORITY_GROUP" 0 rows imported
. . importing table "REPCAT$_REFRESH_TEMPLATES" 0 rows imported
. . importing table "REPCAT$_REPCAT" 0 rows imported
. . importing table "REPCAT$_REPCATLOG" 0 rows imported
. . importing table "REPCAT$_REPCOLUMN" 0 rows imported
. . importing table "REPCAT$_REPGROUP_PRIVS" 0 rows imported
. . importing table "REPCAT$_REPOBJECT" 0 rows imported
. . importing table "REPCAT$_REPPROP" 0 rows imported
. . importing table "REPCAT$_REPSCHEMA" 0 rows imported
. . importing table "REPCAT$_RESOLUTION" 0 rows imported
. . importing table "REPCAT$_RESOLUTION_METHOD" 19 rows imported
. . importing table "REPCAT$_RESOLUTION_STATISTICS" 0 rows imported
. . importing table "REPCAT$_RESOL_STATS_CONTROL" 0 rows imported
. . importing table "REPCAT$_RUNTIME_PARMS" 0 rows imported
. . importing table "REPCAT$_SITES_NEW" 0 rows imported
. . importing table "REPCAT$_SITE_OBJECTS" 0 rows imported
. . importing table "REPCAT$_SNAPGROUP" 0 rows imported
. . importing table "REPCAT$_TEMPLATE_OBJECTS" 0 rows imported
. . importing table "REPCAT$_TEMPLATE_PARMS" 0 rows imported
. . importing table "REPCAT$_TEMPLATE_REFGROUPS" 0 rows imported
. . importing table "REPCAT$_TEMPLATE_SITES" 0 rows imported
. . importing table "REPCAT$_TEMPLATE_STATUS" 3 rows imported
. . importing table "REPCAT$_TEMPLATE_TARGETS" 0 rows imported
. . importing table "REPCAT$_TEMPLATE_TYPES" 2 rows imported
. . importing table "REPCAT$_USER_AUTHORIZATIONS" 0 rows imported
. . importing table "REPCAT$_USER_PARM_VALUES" 0 rows imported
. . importing table "SQLPLUS_PRODUCT_PROFILE" 0 rows imported
IMP-00041: Warning: object created with compilation warnings
"CREATE FORCE VIEW "ORCLBKP2"."MVIEW_EVALUATIONS" ("R"
"UNID","MVIEW_OWNER","MVIEW_NAME","RANK","STORAGE_IN_BYTES","FREQUENCY","CUM"
"ULATIVE_BENEFIT","BENEFIT_TO_COST_RATIO") AS "
"select"
" t1.runid# as runid,"
" summary_owner AS mview_owner,"
" summary_name AS mview_name,"
" rank# as rank,"
" storage_in_bytes,"
" frequency,"
" cumulative_benefit,"
" benefit_to_cost_ratio"
"from SYSTEM.MVIEW$_ADV_OUTPUT t1, SYSTEM.MVIEW$_ADV_LOG t2, ALL_USERS u"
"where"
" t1.runid# = t2.runid# and"
" u.username = t2.uname and"
" u.user_id = userenv('SCHEMAID') and"
" t1.output_type = 1"
"order by t1.rank#"
IMP-00017: following statement failed with ORACLE error 4063:
"BEGIN SYS.DBMS_AQ_IMPORT_INTERNAL.AQ_TABLE_DEFN_UPDATE('SYSTEM','DEF$_AQC"
"ALL',2,16384,2,0,0,'', '-07:00'); END;"
IMP-00003: ORACLE error 4063 encountered
ORA-04063: package body "SYS.DBMS_AQ_IMPORT_INTERNAL" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_AQ_IMPORT_INTERNAL"
ORA-06512: at line 1
IMP-00003: ORACLE error 4063 encountered
ORA-04063: package body "SYS.DBMS_AQ_IMPORT_INTERNAL" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_AQ_IMPORT_INTERNAL"
ORA-06512: at line 1
ORA-04063: package body "SYS.DBMS_AQ_IMPORT_INTERNAL" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_AQ_IMPORT_INTERNAL"
ORA-06512: at line 1
IMP-00017: following statement failed with ORACLE error 4063:
"BEGIN SYS.DBMS_AQ_IMPORT_INTERNAL.AQ_TABLE_DEFN_UPDATE('SYSTEM','DEF$_AQE"
"RROR',2,16384,2,0,0,'', '-07:00'); END;"
IMP-00003: ORACLE error 4063 encountered
ORA-04063: package body "SYS.DBMS_AQ_IMPORT_INTERNAL" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_AQ_IMPORT_INTERNAL"
ORA-06512: at line 1
IMP-00017: following statement failed with ORACLE error 4063:
"BEGIN SYS.DBMS_AQ_IMPORT_INTERNAL.AQ_DEFN_UPDATE(HEXTORAW('388C27256DB141"
"49A4087915FDBE8A95'),'SYSTEM','DEF$_AQERROR','DEF$_AQERROR',0,5,0,1,0,'Erro"
"r Queue for Deferred RPCs'); END;"
IMP-00017: following statement failed with ORACLE error 4063:
"BEGIN SYS.DBMS_AQ_IMPORT_INTERNAL.AQ_DEFN_UPDATE(HEXTORAW('E5BCDC95348B40"
"C68F1295D72049BBAA'),'SYSTEM','DEF$_AQERROR','AQ$_DEF$_AQERROR_E',1,0,0,0,0"
",'exception queue'); END;"
IMP-00003: ORACLE error 4063 encountered
ORA-04063: package body "SYS.DBMS_AQ_IMPORT_INTERNAL" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_AQ_IMPORT_INTERNAL"
ORA-06512: at line 1
IMP-00017: following statement failed with ORACLE error 4063:
"BEGIN SYS.DBMS_REPCAT.REPCAT_IMPORT_REPSCHEMA; END;"
IMP-00003: ORACLE error 4063 encountered
ORA-04063: package body "SYS.DBMS_REPCAT" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_REPCAT"
ORA-06512: at line 1
IMP-00017: following statement failed with ORACLE error 4063:
"BEGIN "
"SYS.DBMS_AQ_IMP_INTERNAL.CLEANUP_SCHEMA_IMPORT;"
"COMMIT; END;"
IMP-00003: ORACLE error 4063 encountered
ORA-04063: package body "SYS.DBMS_AQ_SYS_IMP_INTERNAL" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_AQ_SYS_IMP_INTERNAL"
ORA-06512: at "SYS.DBMS_AQ_IMP_INTERNAL", line 191
ORA-06512: at line 2
Import terminated successfully with warnings.Hello,
Do not drop "SYSTEM" or import anything in system.
What you need to do it, make sure your "targetschemaname" exists, if you are looking to import everyting then you should using RMAN.
What was you export command ?
exp system/password owner=sourceschemaname file=orclexp.dmp log=orclexp.log
imp system/password fromuser=sourceschemaname touser=targetschemaname file=orclexp.dmp log=orclimplog.log ignore=y Regards -
Error ORA-01017 happened when dbms_scheduler run a job.
Hi All,
I got a problem when I use dbms_scheduler to run a job. I got Error code 1017 when the job is run by scheduler. Please find my steps below:
Oracle version is : Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
1. Created a job successfully by using the code below:
begin
dbms_scheduler.create_job(
job_name => 'monthly_refresh_elec_splits',
job_type => 'PLSQL_BLOCK',
job_action => 'BEGIN TRADINGANALYSIS.PKG_IM_REPORTING_ERM.REFRESH_ELEC_SPLITS_TEST; commit; END;',
start_date => SYSTIMESTAMP,
repeat_interval => 'freq=monthly;bymonthday=25;byhour=10;byminute=35;bysecond=0;',
end_date => NULL,
enabled => TRUE,
comments => 'monthly_refresh_elec_splits.',
auto_drop => FALSE
end;
2. Got the job run details from talbe user_scheduler_job_run_details after the job is finished:
select * from user_scheduler_job_run_details where job_name = 'MONTHLY_REFRESH_ELEC_SPLITS' order by log_id desc;
LOG_ID LOG_DATE OWNER JOB_NAME JOB_SUBNAME STATUS ERROR# REQ_START_DATE ACTUAL_START_DATE RUN_DURATION INSTANCE_ID SESSION_ID SLAVE_PID CPU_USED DESTINATION ADDITIONAL_INFO
2054804 25/06/2012 10:35:01.086000 AM +10:00 TRADINGANALYSIS MONTHLY_REFRESH_ELEC_SPLITS FAILED 1017 25/06/2012 10:35:00.300000 AM +10:00 25/06/2012 10:35:00.400000 AM +10:00 +00 00:00:01.000000 1 1025,37017 129396 +00 00:00:00.030000 ORA-01017: invalid username/password; logon denied
ORA-02063: preceding line from NETS
ORA-06512: at "TRADINGANALYSIS.PKG_IM_REPORTING_ERM", line 574
ORA-06512: at line 1
3. If I run the job directly the job will be finished successfully.
begin
dbms_scheduler.run_job('monthly_refresh_elec_splits',TRUE);
end;
LOG_ID LOG_DATE OWNER JOB_NAME JOB_SUBNAME STATUS ERROR# REQ_START_DATE ACTUAL_START_DATE RUN_DURATION INSTANCE_ID SESSION_ID SLAVE_PID CPU_USED DESTINATION ADDITIONAL_INFO
2054835 25/06/2012 11:05:38.515000 AM +10:00 TRADINGANALYSIS MONTHLY_REFRESH_ELEC_SPLITS SUCCEEDED 0 25/06/2012 11:04:35.787000 AM +10:00 25/06/2012 11:04:35.787000 AM +10:00 +00 00:01:03.000000 1 1047,700 +00 00:00:00.030000
Additional Info:
PL/SQL Code in procedure
PROCEDURE Refresh_Elec_Splits_Test IS
BEGIN
--Refresh im_fact_nets_genvol from v_im_facts_nets_genvol in NETS
DELETE FROM IM_FACT_NETS_GENVOL;
--the local NETS_GENVOL table has an additional column providing volume splits by generator and month.
--INSERT INTO IM_FACT_NETS_GENVOL values ('test',sysdate,'test',1,2,3,4,5,6,7);
INSERT INTO IM_FACT_NETS_GENVOL
select ngv.*,
ratio_to_report (net_mwh) OVER (PARTITION BY settlementmonth, state)
gen_percent
from [email protected] ngv;
commit;
END;
Does anyone can advice where should I check and how can I solve the problem?
Thanks in advance
Edited by: user13244529 on 24/06/2012 18:33
Edited by: user13244529 on 24/06/2012 18:43I apologize if you already solved this.. but see Metalink ID 790221.1
+*<Moderator Edit - deleted contents of MOS Doc - pl do NOT post such content - it is a violation of your Support agreement>*+ -
Implement row-level security using Oracleu2019s Virtual Private Databases (VPD)
Environment: Business Objects XI R2; Oracle 10g
Functional Requirement:
Implement row-level security using Oracleu2019s Virtual Private Databases (VPD) technology. The restriction is that the Business Objects Universe connection should use a generic/u201Capplicationu201D database user account. This will allow the organization to avoid the situation where the Business Objects password and the Oracle password need to be kept in synch.
What do we need from the Business Objects support team?
1. Review the 2 attempted solutions that we have tried to implement
2. Propose solutions/answers to open questions for each of the attempted solutions
3. Propose any alternate solution that will help us implement the Function Requirement stated above
Attempted Solution 1: Connection String uses Oracle Proxy User
The connection string that is specified in the Universe is the following:
app_user[end_user]/app_user_pwdarrobaDatabase.WORLD
app_user = generic application user
end_user = the oracle account of the end user which is set using arrobaVariable('BOUSER') app_user_pwd = password of the generic application user
We have tried and implemented this in our test environment. However, we have some questions and concerns around how the connections are reused in a connection pool environment.
Open Question for Solution 1:
i. What happens when multiple proxy users try to connect on at the same time? Business Objects shares the generic app_user connect string. However, every user that logs on will have their own unique proxy user credentials. Will there be any contention involved? If so, what kind of errors can we expect?
ii. If a user logs on using his credentials (proxy user), and business objects opens up a connection to the database using that user's credentials (as the proxy user but logging in through the generic app user). Then the user exits out --> based on our test today, it seems like the database connection remains open. In that case, if another user logs on similarly with their credentials, will business objects simply assign the first users connection to that second user? If so, then our security will not work. Is there a way that Business Objects can somehow ensure that everytime we close a report, the connection is also terminated both at the BO and DB levels?
iii. Our 3rd question is general high level -> How connection pooling works in general and how it is implemented in BO, i.e. how are new connections assigned, how are they recycled, how are they closed, etc.
Attempted Solution 2: Using the ConnectInit parameter
Reading through a couple of the Business Objects documents, it states that u201CUsing the ConnectInit parameter it is possible to send commands to the database when opening the session which can be used to set database specific parameters used for optimization.u201D
Therefore, we tried to set the parameter in the Universe using several different options:
ConnectInit = BEGIN SYSTEM.prc_logon('arrobaVARIABLE('BOUSER')'); COMMIT; END; ConnectInit = BEGIN DBMS_SESSION.SET_IDENTIFIER('arrobaVariable('BOUSER')'); COMMIT; END;
Neither of the above iterations or any variation of that seemed to work. It seems that the variable is not being set or being u201Cexecutedu201D on the database.
One of the Business Objects documents had stated that Patch ID 38, 977, 350 must be installed in our BO environments. We have verified that this patch has been applied on our system.
Open Questions for Solution 2:
How do we get the parameter ConnectInit to work? i.e. what is the proper syntax to enter and what other things do we need to check to get this to work.
Note: Arroba word is being used instead of the symbol in order to avoid following error message:
We are sorry but your message can not be posted since you have included an email address. Please remove the email address and re-post.the connectinit setting should look something like this:
declare a date; begin vpd_setup('@VARIABLE('BOUSER')'); Commit; end;
The vpd_setup procedure (in Oracle) should look like this:
CREATE OR REPLACE procedure vpd_setup (p_user varchar)IS
BEGIN
DBMS_SESSION.set_vpd( 'SESSION_VALUES', 'USERID', p_user );
END vpd_setup;
Then you can retrieve the value of the context variable in your vpd functions
and set the vpd. -
Tomcat - HTTP Status 500 - System Unavailable. Please try again later.
HI,
I installed ORACLE XE + TOMCAT 7 + ORACLE XE on windows XP.
All seems to work under debug session but on normal session I found the following message only when I put a specific parameter on my query.
The same query with the same parameter runs in the sqldev client whitout errors
Here below the massages:
HTTP Status 500 - System Unavailable. Please try again later.
type Status report
message System Unavailable. Please try again later.
description The server encountered an internal error (System Unavailable. Please try again later.) that prevented it from fulfilling this request.
Apache Tomcat/7.0.2
and in the log file:
2011-02-23 18:04:19 Commons Daemon procrun stdout initialized
APEX Listener version : 1.0.2.238.15.24
APEX Listener server info: Apache Tomcat/7.0.2
Using Config file:C:\Programmi\Apache Software Foundation\Tomcat 7.0\temp\apex\apex-config.xml
-- listing properties --
PropertyCheckInterval=60
ValidateConnection=true
MinLimit=1
MaxLimit=10
InitialLimit=3
AbandonedConnectionTimeout=900
MaxStatementsLimit=10
InactivityTimeout=1800
MaxConnectionReuseCount=50000
***********ERROR***********
init: # headers=46
declare nm owa.vc_arr := ?;
vl owa.vc_arr := ?;
begin
owa.init_cgi_env( ?, nm, vl );
htp.init; htp.HTBUF_LEN := 63;
? := sys_context('USERENV','SID');
end;
SID:18
CALL:
begin
f(p=>?);
commit;
end;
BINDS
p:106:3:4503262208013405:::::PAGE CALL:
declare
nlns number := 999999;
l_clob CLOB;
lines htp.htbuf_arr;
l_buff varchar2(32767);
l_clob_init boolean:= false;
l_file varchar2(5);
begin
OWA.GET_PAGE(lines, nlns);
if (nlns > 1) then
for i in 1..nlns loop
if ( length(lines(i)) > 0 ) then
if ( ( lengthb(l_buff) + lengthb(lines(i))) > 32767) then
if (NOT l_clob_init) then
dbms_lob.createtemporary(l_clob, TRUE);
dbms_lob.open(l_clob, dbms_lob.lob_readwrite);
l_clob_init:=true;
end if;
dbms_lob.writeappend(l_clob,length(l_buff),l_buff);
l_buff := lines(i);
else
l_buff := l_buff || lines(i);
end if;
end if;
end loop;
end if;
if (l_clob_init) then
dbms_lob.writeappend(l_clob,length(l_buff),l_buff);
l_buff := '';
end if;
? := l_clob;
? := l_buff;
if (wpg_docload.is_file_download) then l_file:='TRUE'; else l_file := 'FALSE'; end if; ? := l_file;
end;
get_page FAILED:ORA-06502: PL/SQL: errore : buffer della stringa di caratteri troppo piccolo di numero o valore
ORA-06512: a line 32
^^^^^^^^^^^^ERROR^^^^^^^^
ORA-06502: PL/SQL: errore : buffer della stringa di caratteri troppo piccolo di numero o valore
ORA-06512: a line 32
***********ERROR***********
init: # headers=46
declare nm owa.vc_arr := ?;
vl owa.vc_arr := ?;
begin
owa.init_cgi_env( ?, nm, vl );
htp.init; htp.HTBUF_LEN := 63;
? := sys_context('USERENV','SID');
end;
SID:18
CALL:
begin
f(p=>?);
commit;
end;
BINDS
p:106:3:3777982020408238:::::PAGE CALL:
declare
nlns number := 999999;
l_clob CLOB;
lines htp.htbuf_arr;
l_buff varchar2(32767);
l_clob_init boolean:= false;
l_file varchar2(5);
begin
OWA.GET_PAGE(lines, nlns);
if (nlns > 1) then
for i in 1..nlns loop
if ( length(lines(i)) > 0 ) then
if ( ( lengthb(l_buff) + lengthb(lines(i))) > 32767) then
if (NOT l_clob_init) then
dbms_lob.createtemporary(l_clob, TRUE);
dbms_lob.open(l_clob, dbms_lob.lob_readwrite);
l_clob_init:=true;
end if;
dbms_lob.writeappend(l_clob,length(l_buff),l_buff);
l_buff := lines(i);
else
l_buff := l_buff || lines(i);
end if;
end if;
end loop;
end if;
if (l_clob_init) then
dbms_lob.writeappend(l_clob,length(l_buff),l_buff);
l_buff := '';
end if;
? := l_clob;
? := l_buff;
if (wpg_docload.is_file_download) then l_file:='TRUE'; else l_file := 'FALSE'; end if; ? := l_file;
end;
get_page FAILED:ORA-06502: PL/SQL: errore : buffer della stringa di caratteri troppo piccolo di numero o valore
ORA-06512: a line 32
^^^^^^^^^^^^ERROR^^^^^^^^
ORA-06502: PL/SQL: errore : buffer della stringa di caratteri troppo piccolo di numero o valore
ORA-06512: a line 32
Could you kindly help me.
Thanks in advance for your help
Best RegardsHi Paolo,
which APEX version do you use?
There are only a few reasons that might lead to the behaviour you describe. These are
- configured header size for Tomcat Connector is too small
- configured character encoding for Tomcat Connector doesn't fit for APEX (you need UTF-8)
- you don't have the required version of OWA_UTIL in your XE if you upgraded to a more recent APEX release (e.g. APEX 4.0)
Have you configured the Tomcat's HTTP Connector to use the appropriate header size and character encoding?
(see {thread:id=2174509})
If you've upgraded your XEs APEX, e.g. to 4.0, you also have to update the OWA_UTIL in your XE. APEX versions from 3.0 onwards require at least 10.1.2.0.6, which is the version provided in the installation package. You may just update to that version by changing to the subdirectory owa of your APEX installation package and running
@owainst.sqlas sys (just like in the steps before).
You can check if you have the appropriate version of OWA_UTIL installed by running
select owa_util.get_version from dual;In addition you may also want to check if you performed all steps of this small [url http://www.oracle.com/technetwork/developer-tools/apex/upgrade-apex-for-xe-154969.html]HowTo for the upgrade of APEX in XE databases.
-Udo -
Greetings:
If I simply want run a DML statement containing a variable, do I need to use the DBMS_SQL package or is there an easier way. For example:
PROCEDURE test_procedure IS
data_table_name VARCHAR2(20) := 'Table1';
BEGIN
DELETE FROM data_table_name;
COMMIT;
END;
When I do this, Oracle says I must define date_table_name. How do I get it to extract the value of the variable to use as the table name?
Thanks,
ChrisYou definitely have to use dbms_sql when you wish to have the table you work on defined at runtime.
One more piece of advice: instead of using deleate from tablename (with no where clause), you may use truncate tablename, which should be executed faster.
Regards,
BD -
Hello Everyone
I need to create a TRIGGER, and i want to use Java.
this is my java class:
import ...
public class manager {
public static void triggerOnDeleteUser(int u_id){
long dat=(long)System.currentTimeMillis();
try{
#sql{ DELETE FROM apn a WHERE (0 = (SELECT COUNT(*) FROM apn_auth aa WHERE (aa.a_id = a.a_id AND u_id <> :u_id))) };
#sql{ DELETE FROM charging_info c WHERE (0 = (SELECT COUNT(*) FROM users u WHERE (u.charging_set = c.c_id AND u.u_id <> :u_id))) };
#sql{ INSERT INTO test VALUES(:dat) };
#sql{ COMMIT };
}catch(Exception E){E.printStackTrace(); }
this is wrapper procedure:
CREATE OR REPLACE PROCEDURE TR1
(p1 IN NUMBER) AS LANGUAGE JAVA NAME 'manager.triggerOnDeleteUser(int)';
and this is TRIGGER:
CREATE OR REPLACE TRIGGER OnDeleteUser
BEFORE DELETE ON USERS
FOR EACH ROW
CALL TR1(:old.U_ID)
U_ID is a NUMBER column.
When I DELETE on USERS table, trigger doesn't work properly, but if I try this:
SQL> EXEC TR1(3)
STORED PROCEDURE works!!!
I try to change trigger in this way:
CREATE OR REPLACE TRIGGER OnDeleteUser
BEFORE DELETE ON USERS
FOR EACH ROW
DBMS_OUTPUT.PUT_LINE (:old.U_ID + 1)
and it works properly!! (I user +1 to try if was really a NUMBER)...
Maybe I forget some permissions....? Any idea?
Thanks in advance
Dariothanks, but i solved my problem.
I was triying to access a table during its modification (SELECT from USERS)
I change TRIGGER DECLARATION in this way:
CREATE OR REPLACE TRIGGER OnDeleteUser
BEFORE DELETE ON USERS
FOR EACH ROW
DECLARE
PRAGMA AUTONOMOUS_TRANSACTION;
BEGIN
TR1(:old.U_ID);
COMMIT;
END;
/ -
How to create a new user aaa with same rights as existing user bbb ?
Assume user bbb already exists in Oracla 10g database.
How can I create a new user aaa with the same rights/permissions as the old user bbb?
Is this procedure/command also working if the old user is user "system" (=dbadmin)?There is some possibilty to generate a EXPDP dump file which contains only DDL statements related to account and
privileges: EXCLUDE/INCLUDE parameter can help.
For example, following EXPDP statements seem to work with SYSTEM account:
expdp / schemas=system content=metadata_only exclude=table,sequence,package,function,procedure,synonym,,type view dumpfile=DPD:system.dmp logfile=DPD:system.log
Export: Release 10.2.0.2.0 - Production on Thursday, 14 February, 2008 9:41:36
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Produc
tion
With the Partitioning, OLAP and Data Mining options
Starting "OPS$XXX"."SYS_EXPORT_SCHEMA_01": /******** schemas=system con
tent=metadata_only exclude=table,sequence,package,function,procedure,synonym,type view dumpfile=DPD:system.dmp logfile=DPD:system.log
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/POST_SCHEMA/PROCACT_SCHEMA
Master table "OPS$XXX"."SYS_EXPORT_SCHEMA_01" successfully loaded/unload
ed
Dump file set for OPS$XXX.SYS_EXPORT_SCHEMA_01 is:
C:\TEMP\SYSTEM.DMP
Job "OPS$XXX"."SYS_EXPORT_SCHEMA_01" successfully completed at 09:41:41
impdp / sqlfile=dpd:system.sql dumpfile=DPD:system.dmp logfile=DPD:system.logImport: Release 10.2.0.2.0 - Production on Thursday, 14 February, 2008 9:42:46
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Produc
tion
With the Partitioning, OLAP and Data Mining options
Master table "OPS$XXX"."SYS_SQL_FILE_FULL_05" successfully loaded/unload
ed
Starting "OPS$XXX"."SYS_SQL_FILE_FULL_05": /******** sqlfile=dpd:system
.sql dumpfile=DPD:system.dmp logfile=DPD:system.log
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/POST_SCHEMA/PROCACT_SCHEMA
Job "OPS$XXX"."SYS_SQL_FILE_FULL_05" successfully completed at 09:42:50and system.sql is:
-- CONNECT OPS$XXX
-- new object type path is: SCHEMA_EXPORT/USER
-- CONNECT SYSTEM
ALTER USER "SYSTEM" IDENTIFIED BY VALUES '970BAA5B81930A40'
TEMPORARY TABLESPACE "TEMP";
-- new object type path is: SCHEMA_EXPORT/SYSTEM_GRANT
GRANT GLOBAL QUERY REWRITE TO "SYSTEM";
GRANT CREATE MATERIALIZED VIEW TO "SYSTEM";
GRANT SELECT ANY TABLE TO "SYSTEM";
GRANT CREATE TABLE TO "SYSTEM";
GRANT UNLIMITED TABLESPACE TO "SYSTEM" WITH ADMIN OPTION;
-- new object type path is: SCHEMA_EXPORT/ROLE_GRANT
GRANT "DBA" TO "SYSTEM" WITH ADMIN OPTION;
GRANT "AQ_ADMINISTRATOR_ROLE" TO "SYSTEM" WITH ADMIN OPTION;
GRANT "MGMT_USER" TO "SYSTEM";
-- new object type path is: SCHEMA_EXPORT/DEFAULT_ROLE
ALTER USER "SYSTEM" DEFAULT ROLE ALL;
-- new object type path is: SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
BEGIN
sys.dbms_logrep_imp.instantiate_schema(schema_name=>SYS_CONTEXT('USERENV','CURRENT_SCHEMA'), export_db_name=>'BAS002.REGRESS.RDBMS.DEV.US.ORACLE.COM', inst_scn=>'1456160');
COMMIT;
END;
-- new object type path is: SCHEMA_EXPORT/POST_SCHEMA/PROCACT_SCHEMA
BEGIN
SYS.DBMS_AQ_IMP_INTERNAL.CLEANUP_SCHEMA_IMPORT;
COMMIT;
END;
/ These export and import steps don't take into account privileges granted on schema objects belonging to another user likely due to to the EXCLUDE statements.
Message was edited by:
Pierre Forstmann -
How to include Drop index in PL/SQL
Hi,
In my PL/SQL, I put a drop index statement in between, but it gave me an error of
"PLS-00103: Encountered the symbol "DROP" when expecting one of the following:
begin declare exit for goto if loop mod null pragma raise
return select update while <an identifier>
<a double-q"
My statement is structured as:
DECLARE
BEGIN
DROP INDEX index_name;
COMMIT;
END;
Why is this error occuring? When I execute the drop index statement seperately it is ok. When i put it in the PL/SQL it gave me error.
Do I need special syntax to include a Drop index statement in a PL/SQL?
ThanksAny DDL commands in PL/SQL must be executed using dynamic SQL:
execute immediate 'drop index index_name';
Maybe you are looking for
-
3G - IOS 4 locked up on backup, Instead restored. Not connecting to I tunes
Downloaded new ITunes. Tried to install IOS4. On installation, and after 12 hrs of not completing the backup, I followed advice on a forum and did a restore. Now IOS4 is installed and working ok with just a few of my apps. Notes and contacts are all
-
What's a good External Hard Drive?
Need to free up my hard drive, iPhoto is killing my laptop. What is the best way to do so? I want to get a 1TB external Hard Drive, and am looking to stay reasonable priced and reliable. Any suggestions? Thanks in Advance!
-
Hey folks... Got myself the Apple iPod component cable today. I have it hooked up to my Sony HDTV - I have a question to see if anybody here might know.... I was under the impression that if I set the Widescreen option in the video settings of my iPo
-
Database Access delays-how to improve upon that?
Hi friends, I have this simple class,which takes in query and returns the results.I don't know why the database access is so slow,and if i try to add my driver load statements into the constructor the java class starts throwing "null pointer exceptio
-
Itunes wouldn't update,uninstalled - won't reinstall error code 2330
I could access Itunes itself but not the Itunes store. It would open briefly and then shut down. I was using version 9 and tried to update to version 10. The system wouldn't allow it. I followed the uninstall directions and tried to start over. It wo