CREATE, DROP, ALTER .... WITH JAVA [message #141650] |
Tue, 11 October 2005 07:53 |
moody_4u
Messages: 16 Registered: May 2005
|
Junior Member |
|
|
Hello all;
is it a possible way that let me to create user within java application ??
i'm making admin Desktop Application for my ORACLE Graduate Project using pure java (not JDev), so i'm tried to use a create statement in the code and it dosen't work
any help plz
thanks for reading my problem
this is the code i used
-----------------------------------------------------------
private void jbInit() throws Exception {
contentPane = (JPanel) getContentPane();
contentPane.setLayout(null);
setSize(new Dimension(533, 444));
setTitle("Frame Title");
database1.setConnection(new ConnectionDescriptor(
"jdbc:oracle:thin:@moody:1521:ORCL", "system", "a", false,
"oracle.jdbc.driver.OracleDriver"));
jButton1.setBounds(new Rectangle(172, 202, 71, 23));
jButton1.setText("jButton1");
jButton1.addActionListener(new Frame1_jButton1_actionAdapter(this));
contentPane.add(jButton1);
}
public void jButton1_actionPerformed(ActionEvent e) {
queryDataSet1.setQuery(new com.borland.dx.sql.dataset.QueryDescriptor(null,
"create user r identified by r", null, true, Load.ALL));
}
}
|
|
|
|
|
|
|