Tutorial with examples to practice SQL
Hi,
I have read several tutorials related to the topics of "Oracle 11g- SQL Fundamental". But all of them describes SQL from theoretical point of view and none of them have any guided example, so that I can practice.
Please advice with some materials how I can practice in querying, joining, creating objects, etc, thus mainly working with database, not with administering.
Thank you.
These forums are stuffed full of people posing SQL questions. Some are simple, some are tricky. It's a very good way of learning how to write SQL. It's one of the reasons why old lags like me answer questions here: we still discover new things about Oracle.
cheers, APC
Similar Messages
-
Need one to many toplink+Jdeveloper tutorial with example
Hi
I need tutorial with example of one to many with Toplink+J developer
Thanks
Edited by: user11802935 on Aug 18, 2009 1:06 PMHi,
The following links should get you started.
EclipseLink JPA + Eclipse
http://wiki.eclipse.org/EclipseLink/Examples/JPA
JDeveloper tutorials
http://www.oracle.com/technology/products/jdev/index.html
TopLink + JDeveloper tutorial
http://www.oracle.com/technology/obe/obe11jdev/bulldog/ejb_jpa_jsf/ejb.html
@OneToMany documentation
http://wiki.eclipse.org/Introduction_to_EclipseLink_JPA_%28ELUG%29#.40OneToMany
thank you
/michael
www.eclipselink.org -
Searching OWB-Tutorial with Example to each component
Hi,
i search a tutorial with a typical example to each component of OWB 11g. I have found this two links which was good for the beginning and an overview, but anyone know a better tutorial if possible in german language (that would be the best for me) - but of course english is possible too.
Oracle® Database 2 Day + Data Warehousing Guide;
http://download.oracle.com/docs/cd/E11882_01/server.112/e10578/toc.htm
Oracle® Database 2 Day + Data Warehousing Guide;
http://apex.oracle.com/pls/apex/f?p=44785:24:1778744827384310::NO:24:P24_CONTENT_ID,P24_PREV_PAGE:5248,29
I look forward for your replies :)This OBE has some useful illustrations;
http://apex.oracle.com/pls/apex/f?p=44785:24:1753420051941801:::24:P24_CONTENT_ID,P24_PREV_PAGE:4262,24
I created the following blog to show the results of the debugger for some operations which is an alternative view - doesn't show how to setup though...
https://blogs.oracle.com/warehousebuilder/entry/owb_11gr2_debugging
Cheers
David -
Request for abap objects tutorial with examples
hi,
i am new to <b>abap objects</b>,
please send me a good tutorial for <b>abap objects</b> which contain good explanation with
good examples.
please send the tutorials to
<b>[email protected]</b>
thanks®ards
vamsi nHello,
<b>General Tutorial for OOPS</b>
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
<b>Have a look at these links for OO ABAP.</b>
http://www.sapgenie.com/abap/OO/
http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b5654f411d194a60000e8353423/content.htm
http://www.esnips.com/doc/375fff1b-5a62-444d-8ec1-55508c308b17/prefinalppt.ppt
http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
http://www.esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt
http://www.allsaplinks.com/
http://www.sapgenie.com/abap/controls/index.htm
http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
http://www.esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf
http://help.sap.com/saphelp_erp2005/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
<b>SDN Series:</b>
https://www.sdn.sap.com/irj/sdn/developerareas/abap?rid=/webcontent/uuid/35eaef9c-0b01-0010-dd8b-e3b0f9ed7ccb [original link is broken]
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf
<b>Basic concepts of OOPS</b>
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b6cae890-0201-0010-ef8b-f970a9c41d47
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1591ec90-0201-0010-3ba8-cdcd500b17cf
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20to%20display%20data%20in%20alv%20grid%20using%20object%20oriented%20programming.doc
http://www.henrikfrank.dk/abapuk.html
http://www.erpgenie.com/abap/OO/
Regards,
Beejal
**Reward if this helps -
What is the best way to practice SQL language?
I’m new in database world and want to practice SQL language. I’ve been playing around with Oracle XE, but I realized it’s not very practical to play around with SQL using XE since its sql editor is not user friendly to debug the script. I’m trying to build schemas from scratch and play around with it using SQL. What is the best way to do this?
Thanks in advanceValerie Debonair wrote:
I’m new in database world and want to practice SQL language. I’ve been playing around with Oracle XE, but I realized it’s not very practical to play around with SQL using XE since its sql editor is not user friendly to debug the script. I do not think that is a valid criticism at all. The basic tools needed to learn SQL is SQL*Plus and a willingness to learn.
There is no "+debugging+" for SQL either... except to break it into simpler steps, testing that... and perhaps using "+explain plan+" to get the execution plan.
Granted that SQL*Plus is not the best tool for displaying data... but then learning SQL should be done using small data sets (not too many columns and few rows) - as even a small data set can represent all the data model complexities needed for learning SQL.
The examples you use, the test tables and the practical exercises used in the learning process are by far more important how "pretty" the tool being used is.
FWIW, I do 99% of all my SQL work and PL/SQL development using SQL*Plus - it is a very capable tool. -
Step By Step creation of Smartform in ECC6.0 with example program.
Hi,
Can anyone give me the steps to create smartforms in ECC6.0 with example program call the function module created by form.
Regards,
ChandruHi Chandra Prakash,
Go through the following Links, here u can find example with step
by step.
http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
http://sap.niraj.tripod.com/id67.html
Check these step-by-step links
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/ccab6730-0501-0010-ee84-de050a6cc287
https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/8fd773b3-0301-0010-eabe-82149bcc292e
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985
Check these links also.
http://www.sap-basis-abap.com/sapsf001.htm
http://www.sap-press.com/downloads/h955_preview.pdf
http://www.ossincorp.com/Black_Box/Black_Box_2.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://www.sap-img.com/smartforms/smartform-tutorial.htm
http://www.sapgenie.com/abap/smartforms.htm
for Smartforms material
http://www.sap-basis-abap.com/sapsf001.htm
http://www.sap-press.com/downloads/h955_preview.pdf
http://www.ossincorp.com/Black_Box/Black_Box_2.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://www.sap-img.com/smartforms/smartform-tutorial.htm
http://www.sapgenie.com/abap/smartforms.htm
How to trace smartform
http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
http://www.sap-img.com/smartforms/smart-006.htm
http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
Re: Need FAQ's
http://www.sap-img.com/smartforms/smart-006.htm
http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
Re: Need FAQ's
Regards,
Eshwar. -
Explain me Auth_id and definer rights in detail with example.
Explain me Auth_id and definer rights in detail with example.
ibney wrote:
Explain me Auth_id and definer rights in detail with example.How do I ask a question on the forums?
SQL and PL/SQL FAQ
unwilling or incapable to Read The Fine Manual yourself?
http://docs.oracle.com/cd/E11882_01/server.112/e25789/toc.htm -
Wanted R/3 ISA B2C with example.
Hello All,
I am new in this field and would like to have document about creating Step by step an ISA project with NWDS for B2C scenario and B2B scenario NOT on CRM but on R/3 edition.
Please send it to me on my email address [email protected]
I really appreciate any one help in this matter and also pl. tell me if there are other helpful site on which I can read about how to start programming in r/3 ISA B2C with example.
Thanks in Advance.
RajeshHi Rajesh
I'm working with Rapidigm-Fujitsu Consulting Co. in pune..
Now I've successfully deployed and configured the ISA..
I've also created the users in the CRM and assign
respective roles to them ..
Below is the procedure to deploying and configuring
the CRM ISA B2B Application :
Before starting I assume that you have following
compoonents with you.
1.) SAP J2EE Engine 6.2
2.) ISA WAC SP03
3.) MSSQL SERVER 2000 (Optional, If u need to use
JavaBasket in ur application)
Procedure :
1.) Extract ISAWACSP03.sar file using command sapcar.exe
2.) You will get following archive files :
a.) Novell_LDAP.sda
b.) SAPPortalsUMRefrence.sda
c.) useradmin.ear
d.) webcatadmin.ear
e.) shopadmin.ear
f.) b2b.ear
g.) b2c.ear
h.) and many other files..
3.) Also download the latest JBasis Library from service.sap.com..
4.)Open the SDM tool integrated with SAP J2EE ..
5.)Deploy the JBasis_<LatestVersion>.sda using SDM.
6.)Deploy Novell_LDAP.sda using SDM
7.)Deploy SAPPortalsUMReference.sda using SDM
8.)Deploy Useradmin.ear using SDM .
Note before deploying the useradmin you have to specify the path of the xcm, always take it in the another directory eg. : C:\usr\sap\rp0945\java\xcm\useradmin
also give the other parameters before deploying the application
9.) Follow the above procedure for shopadmin.ear and webcatadmin.ear and deploy the application.
the xcm path
->for shopadmin: C:\usr\sap\rp0945\java\xcm\shopadmin
->for webcatadmin: C:\usr\sap\rp0945\java\xcm\webcatadmin
10.) To deploy the b2b.ear I'll suggest you to first build
the application using BuildTool(For more info on
Buildtool see the sapnotes on service.sap.com)
11.) After building deploy the application (b2b_<NameGiven>.ear eg. b2b_client.ear ) in the
"project_ear" folder of your buildtool directory.
Note: Before deploying b2b application you have to
provide certain paramters (like xcm path etc.) in the
lower left frame of the SDM window.
If the parameter option are denoted with red icon then there are certain parameters left for deployment..
The parameter icon should be green to successfully deploying the application ...
12.) Now test the application by opening the url
http://localhost:50000/b2b_client/b2b/init.do
13.) You will get the b2b index page on your Web Browser.
14.) Till now we have completed the deployment procedure of B2B, Now some configuration part is left to
successfully running the application ...
CONFIGURING THE ISA ..
There are 2 types of configuration involved in the ISA :
1.) At the CRM Server level
2.) At the Application level
1.) CRM Server level Configuration :
This configuration includes the creation of Users
and assigning the roles to the Users..
We have to create 2 type of users :
a.) Service User (RFC Enabled users)
b.) Dialouge User
a.) Service User :
1.) Open the transaction SU01 and give the username="WEBCONNECT"
2.) Assign the type of user = "Service"
Maintain a valid email address
3.) In the roles tab, add a user role = "SAP_CRM_ISA_ITS"
Give the alias name of the user : "WEBCONNECT"
4.) Click on "SAVE"
5.) Create another user namely "WEBCONNECT1" and assign
the same role to it.
Maintain a valid email address and give the alias
name : "WEBCONNECT1"
6.) Click on "SAVE"
b.) Dialog User
1.) Open transaction SU01
2.) Create another user namely "WEBADMIN"
3.) Maintain the email address for this user
4.) Assign the following roles to it :
-> SAP_CRM_INTERNET_CUSTOMER
-> SAP_CRM_ISA_UA_SUPERUSER
-> SAP_CRM_ISA_WEBSHOP_MANAGER
5.) Click on "Save"
6.) Close the CRM Gui client and login with this user
(WEBADMIN) and then change the password.
2.) Application Level configuration using XCM
a.) open url :
http://localhost:50000/useradmin/admin/xcm/init.do
Login with Username : Administrator
Password : <blank>
b.) Now in the Menu Components->Customers->jco
create ur own jco configuration for eg: I've created
with configuration name "jco_myconfig"
c.) Provide the Following Parameters
Base Configuration : SERVER_CONNECT
ashost : crmserver.company.com
client : 100
lang : en
maxcon : 100
passwd : <your WEBCONNECT password>
sysnr : 00
user : WEBCONNECT
d.) save the configuration and click on "run test"
e.) If you get the green screen then
"connection succeeded" else you will get a Red
Screen if the connection failed.
f.) Now in the Menu
Start->ApplicationConfiguration->Customer
Create your own configuration and assign ur jco
configuration to it ("jco_myconfig" in my case)
g.) Follow the same procedure for shopadmin,
webcatadmin .
h.) You can follow the above procedure for b2b but
with diffrent username and password (In my case
"WEBCONNECT1" )
RESTART THE J2EE ENGINE...
i.) open the url :
http://localhost:50000/useradmin/useradmin/init.do
provide the login Username : WEBADMIN
Password : <whatever u have provided>
j.) Create a user using this web application and
assign the roles according to it .(Remember now
you are creating a B2B User,so assign the roles
as needed).
k.) Save that user and open url :
http://localhost:50000/b2b_client/b2b/init.do
l.) Thats all ...
You can now run your b2b scenario application
online and can create online Sales Order and much more
I hope you will find this tutorial helpfull...
For any further queries mail me at
[email protected]
Cheers !!
Thanks & Regards
Sandeep -
Strange happenings with examples from Tom Kyte's book. 10 XE
Hi all,
I was twiddling my thumbs and decided to brush up on some of Oracle's fundamentals.
Tom Kyte's book - Effective Oracle by Design. Examples on pp. 141 - 142 (to do with
bind variables). Typed in the example and obtained a very strange system reaction.
It consists of a package "DEMO_141_PKG" with 1 procedure "parse_bind_execute_close"
which is called by the procedure QUICKFIX142.. The system then proceeds to go mental.
If anybody could explain to me what's going on, I would be grateful. I'm running 10 XE on
Ubuntu Linux.
On running the code (below) I get this in the "Run" window of SQLDeveloper.
Connecting to the database demo.
ORA-01000: maximum open cursors exceeded
ORA-06512: at "SYS.DBMS_SYS_SQL", line 884
ORA-06512: at "SYS.DBMS_SQL", line 9
ORA-06512: at "DEMO.DEMO_141_PKG", line 17
ORA-06512: at "DEMO.QUICKFIX142", line 8
ORA-06512: at line 2And the logging window of SQLDevloper just shows a continuous
stream of the text below - I have to kill the sessions as SYS from
within Oracle - the Terminate process from within SQLDeveloper
doesn't manage to kill this runaway process.
Logging output
SEVERE 2474100 1 oracle.dbtools.raptor.runner.DBStarterFactory logDbmsOutput: ORA-01000: maximum open cursors exceeded
SEVERE 2474099 1 oracle.dbtools.raptor.runner.DBStarterFactory logDbmsOutput: ORA-01000: maximum open cursors exceeded
SEVERE 2474098 0 oracle.dbtools.raptor.runner.DBStarterFactory logDbmsOutput: ORA-01000: maximum open cursors exceeded
SEVERE 2474097 0 oracle.dbtools.raptor.runner.DBStarterFactory logDbmsOutput: ORA-01000: maximum open cursors exceeded
SEVERE 2474096 1 oracle.dbtools.raptor.runner.DBStarterFactory logDbmsOutput: ORA-01000: maximum open cursors exceeded
<Millions of lines snipped - it just keeps going>Now, the code is here for those who would like to help me get to the bottom of this phenomenon.
create or replace
PACKAGE DEMO_141_PKG AS
procedure parse_bind_execute_close(p_input in varchar2);
END DEMO_141_PKG;
create or replace
PACKAGE BODY DEMO_141_PKG AS
g_first_time boolean := TRUE;
g_cursor number;
procedure parse_bind_execute_close(p_input in varchar2)
AS
l_cursor number;
l_output varchar2(4000);
l_status number;
BEGIN
l_cursor := dbms_sql.open_cursor;
dbms_sql.parse(l_cursor, 'SELECT * FROM Dual WHERE Dummy = :x', dbms_sql.native);
dbms_sql.bind_variable(l_cursor, ':x', p_input);
dbms_sql.define_column(l_cursor, 1, l_output, 4000);
l_status := dbms_sql.execute(l_cursor);
if(dbms_sql.fetch_rows(l_cursor) <= 0)
then
l_output := null;
else
dbms_sql.column_value(l_cursor, 1, l_output);
end if;
END parse_bind_execute_close;
END DEMO_141_PKG;and the above is called here
create or replace
PROCEDURE QUICKFIX142 AS
BEGIN
-- demo.runstats_pkg.rs_start; // Don't worry about runstats - it's a Tom Kyte package for
-- timings and measuring contention.
execute immediate 'alter session set session_cached_cursors = 0';
for i in 1..1000
loop
DEMO_141_PKG.parse_bind_execute_close('Y');
end loop;
-- runstats_pkg.rs_middle;
execute immediate 'alter session set session_cached_cursors = 100'; // reduced this to 50, 20, 10 & 5 - no effect.
for i in 1..1000
loop
DEMO_141_PKG.parse_bind_execute_close('Y');
end loop;
-- runstats_pkg.rs_stop;
END QUICKFIX142;Edited by: Paulie on Aug 12, 2011 2:18 PMIf you modify the called package by adding :
-- CLOSE THE CURSOR
dbms_sql.close_cursor(l_cursor);in
procedure parse_bind_execute_close(p_input in varchar2)
AS
l_cursor number;
l_output varchar2(4000);
l_status number;
BEGIN
l_cursor := dbms_sql.open_cursor;
dbms_sql.parse(l_cursor, 'SELECT * FROM Dual WHERE Dummy = :x', dbms_sql.native);
dbms_sql.bind_variable(l_cursor, ':x', p_input);
dbms_sql.define_column(l_cursor, 1, l_output, 4000);
l_status := dbms_sql.execute(l_cursor);
if(dbms_sql.fetch_rows(l_cursor) <= 0)
then
l_output := null;
else
dbms_sql.column_value(l_cursor, 1, l_output);
end if;
-- CLOSE THE CURSOR
dbms_sql.close_cursor(l_cursor);
END parse_bind_execute_close;
END DEMO_141_PKG;Then script runs with default OPEN_CURSORS setting:
SQL> connect / as sysdba
Connected.
SQL> show parameter open_c
NAME TYPE VALUE
open_cursors integer 300
SQL> connect test/test
Connected.
SQL> exec quickfix142;
PL/SQL procedure successfully completed. -
Searching for simple bluetooth to bluetooth messages tutorial or example
Hi,
I want to send messages from 1 mobile phone to another one using Bluetooth but I can't find any simple tutorial or example with this type of bluetooth use.
So i'm asking for your help :) any simple tutorial/example for bluetooth messages between devices?
Thanks in advanceimport java.util.Vector;
import java.io.IOException;
import javax.microedition.io.Connector;
import javax.microedition.io.ConnectionNotFoundException;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.TextField;
import javax.microedition.lcdui.StringItem;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.ChoiceGroup;
import javax.microedition.lcdui.Choice;
import javax.bluetooth.LocalDevice;
import javax.bluetooth.RemoteDevice;
import javax.bluetooth.DiscoveryAgent;
import javax.bluetooth.DataElement;
import javax.bluetooth.DeviceClass;
import javax.bluetooth.UUID;
import javax.bluetooth.DiscoveryListener;
import javax.bluetooth.ServiceRecord;
import javax.bluetooth.L2CAPConnectionNotifier;
import javax.bluetooth.L2CAPConnection;
import javax.bluetooth.BluetoothStateException;
import javax.bluetooth.BluetoothConnectionException;
import javax.bluetooth.ServiceRegistrationException;
public class ChatController extends MIDlet implements CommandListener
private Display display = null;
private Form mainForm = null;
private ChoiceGroup devices = null;
private TextField inTxt = null;
private TextField outTxt = null;
private Command exit = null;
private Command start = null;
private Command connect = null;
private Command send = null;
private Command select = null;
private StringItem status = null;
private LocalDevice local = null;
private RemoteDevice rDevices[];
private ServiceRecord service = null;
private DiscoveryAgent agent = null;
private L2CAPConnectionNotifier notifier;
private L2CAPConnection connection = null;
private static final String UUID_STRING = "112233445566778899AABBCCDDEEFF";
private boolean running = false;
public ChatController()
super();
display = Display.getDisplay(this);
mainForm = new Form("CHAT");
devices = new ChoiceGroup(null,Choice.EXCLUSIVE);
inTxt = new TextField("incoming msg:","",256,TextField.ANY);
outTxt = new TextField("outgoing msg:","",256,TextField.ANY);
exit = new Command("EXIT",Command.EXIT,1);
start = new Command("START",Command.SCREEN,2);
connect = new Command("CONNECT",Command.SCREEN,2);
send = new Command("SEND",Command.SCREEN,2);
select = new Command("SELECT",Command.SCREEN,2);
status = new StringItem("status : ",null);
mainForm.append(status);
mainForm.addCommand(exit);
mainForm.setCommandListener(this);
protected void startApp() throws MIDletStateChangeException
running = true;
mainForm.addCommand(start);
mainForm.addCommand(connect);
display.setCurrent(mainForm);
try
local = LocalDevice.getLocalDevice();
agent = local.getDiscoveryAgent();
catch(BluetoothStateException bse)
status.setText("BluetoothStateException unable to start:"+bse.getMessage());
try
Thread.sleep(1000);
catch(InterruptedException ie)
notifyDestroyed();
protected void pauseApp()
running = false;
releaseResources();
protected void destroyApp(boolean uncond) throws MIDletStateChangeException
running = false;
releaseResources();
public void commandAction(Command cmd,Displayable disp)
if(cmd==exit)
running = false;
releaseResources();
notifyDestroyed();
else if(cmd==start)
new Thread()
public void run()
startServer();
}.start();
else if(cmd==connect)
status.setText("searching for devices...");
mainForm.removeCommand(connect);
mainForm.removeCommand(start);
mainForm.append(devices);
DeviceDiscoverer discoverer = new DeviceDiscoverer(ChatController.this);
try
agent.startInquiry(DiscoveryAgent.GIAC,discoverer);
catch(IllegalArgumentException iae)
status.setText("BluetoothStateException :"+iae.getMessage());
catch(NullPointerException npe)
status.setText("BluetoothStateException :"+npe.getMessage());
catch(BluetoothStateException bse1)
status.setText("BluetoothStateException :"+bse1.getMessage());
else if(cmd==select)
status.setText("searching devices for service...");
int index = devices.getSelectedIndex();
mainForm.delete(mainForm.size()-1);//deletes choiceGroup
mainForm.removeCommand(select);
ServiceDiscoverer serviceDListener = new ServiceDiscoverer(ChatController.this);
int attrSet[] = {0x0100}; //returns service name attribute
UUID[] uuidSet = {new UUID(UUID_STRING,false)};
try
agent.searchServices(attrSet,uuidSet,rDevices[index],serviceDListener);
catch(IllegalArgumentException iae1)
status.setText("BluetoothStateException :"+iae1.getMessage());
catch(NullPointerException npe1)
status.setText("BluetoothStateException :"+npe1.getMessage());
catch(BluetoothStateException bse11)
status.setText("BluetoothStateException :"+bse11.getMessage());
else if(cmd==send)
new Thread()
public void run()
sendMessage();
}.start();
//this method is called from DeviceDiscoverer when device inquiry finishes
public void deviceInquiryFinished(RemoteDevice[] rDevices,String message)
this.rDevices = rDevices;
String deviceNames[] = new String[rDevices.length];
for(int k=0;k<rDevices.length;k++)
try
deviceNames[k] = rDevices[k].getFriendlyName(false);
catch(IOException ioe)
status.setText("IOException :"+ioe.getMessage());
for(int l=0;l<deviceNames.length;l++)
devices.append(deviceNames[l],null);
mainForm.addCommand(select);
status.setText(message);
//called by ServiceDiscoverer when service search gets completed
public void serviceSearchFinished(ServiceRecord service,String message)
String url = "";
this.service = service;
status.setText(message);
try
url = service.getConnectionURL(ServiceRecord.NOAUTHENTICATE_NOENCRYPT,false);
catch (IllegalArgumentException iae1)
try
connection = (L2CAPConnection)Connector.open(url);
status.setText("connected...");
new Thread()
public void run()
startReciever();
}.start();
catch(IOException ioe1)
status.setText("IOException :"+ioe1.getMessage());
// this method starts L2CAPConnection chat server from server mode
public void startServer()
status.setText("server starting...");
mainForm.removeCommand(connect);
mainForm.removeCommand(start);
try
local.setDiscoverable(DiscoveryAgent.GIAC);
notifier = (L2CAPConnectionNotifier)Connector.open("btl2cap://localhost:"+UUID_STRING+";name=L2CAPChat");
ServiceRecord record = local.getRecord(notifier);
String conURL = record.getConnectionURL(ServiceRecord.NOAUTHENTICATE_NOENCRYPT,false);
status.setText("server running...");
connection = notifier.acceptAndOpen();
new Thread()
public void run()
startReciever();
}.start();
catch(IOException ioe3)
status.setText("IOException :"+ioe3.getMessage());
//starts a message reciever listening for incomming message
public void startReciever()
mainForm.addCommand(send);
mainForm.append(inTxt);
mainForm.append(outTxt);
while(running)
try
if(connection.ready())
int receiveMTU = connection.getReceiveMTU();
byte[] data = new byte[receiveMTU];
int length = connection.receive(data);
String message = new String(data,0,length);
inTxt.setString(message);
catch(IOException ioe4)
status.setText("IOException :"+ioe4.getMessage());
//sends a message over L2CAP
public void sendMessage()
try
String message = outTxt.getString();
byte[] data = message.getBytes();
int transmitMTU = connection.getTransmitMTU();
if(data.length <= transmitMTU)
connection.send(data);
else
status.setText("message ....");
catch (IOException ioe5)
status.setText("IOException :"+ioe5.getMessage());
//closes L2CAP connection
public void releaseResources()
try
if(connection != null)
connection.close();
if(notifier != null)
notifier.close();
catch(IOException ioe6)
status.setText("IOException :"+ioe6.getMessage());
import java.util.Vector;
import javax.bluetooth.RemoteDevice;
import javax.bluetooth.DeviceClass;
import javax.bluetooth.DiscoveryListener;
import javax.bluetooth.ServiceRecord;
public class DeviceDiscoverer implements DiscoveryListener
private ChatController controller = null;
private Vector devices = null;
private RemoteDevice[] rDevices = null;
public DeviceDiscoverer(ChatController controller)
super();
this.controller = controller;
devices = new Vector();
public void deviceDiscovered(RemoteDevice remote,DeviceClass dClass)
devices.addElement(remote);
public void inquiryCompleted(int descType)
String message = "";
switch(descType)
case DiscoveryListener.INQUIRY_COMPLETED:
message = "INQUIRY_COMPLETED";
break;
case DiscoveryListener.INQUIRY_TERMINATED:
message = "INQUIRY_TERMINATED";
break;
case DiscoveryListener.INQUIRY_ERROR:
message = "INQUIRY_ERROR";
break;
rDevices = new RemoteDevice[devices.size()];
for(int i=0;i<devices.size();i++)
rDevices[i] = (RemoteDevice)devices.elementAt(i);
controller.deviceInquiryFinished(rDevices,message);//call of a method from ChatController class
devices.removeAllElements();
controller = null;
devices = null;
public void servicesDiscovered(int transId,ServiceRecord[] services)
public void serviceSearchCompleted(int transId,int respCode)
import javax.bluetooth.RemoteDevice;
import javax.bluetooth.DataElement;
import javax.bluetooth.DeviceClass;
import javax.bluetooth.DiscoveryListener;
import javax.bluetooth.ServiceRecord;
public class ServiceDiscoverer implements DiscoveryListener
private static final String SERVICE_NAME = "L2CAPChat";
private ChatController controller = null;
private ServiceRecord service = null;
public ServiceDiscoverer(ChatController controller)
super();
this.controller = controller;
public void deviceDiscovered(RemoteDevice remote,DeviceClass dClass)
public void inquiryCompleted(int descType)
public void servicesDiscovered(int transId,ServiceRecord[] services)
for(int j=0;j<services.length;j++)
DataElement dataElementName = services[j].getAttributeValue(0x0100);
String serviceName = (String)dataElementName.getValue();
if(serviceName.equals(SERVICE_NAME))
service = services[j];
break;
public void serviceSearchCompleted(int transId,int respCode)
String message = "";
switch(respCode)
case DiscoveryListener.SERVICE_SEARCH_COMPLETED:
message = "SERVICE_SEARCH_COMPLETED";
break;
case DiscoveryListener.SERVICE_SEARCH_ERROR:
message = "SERVICE_SEARCH_ERROR";
break;
case DiscoveryListener.SERVICE_SEARCH_TERMINATED:
message = "SERVICE_SEARCH_TERMINATED";
break;
case DiscoveryListener.SERVICE_SEARCH_NO_RECORDS:
message = "SERVICE_SEARCH_NO_RECORDS";
break;
case DiscoveryListener.SERVICE_SEARCH_DEVICE_NOT_REACHABLE:
message = "SERVICE_SEARCH_DEVICE_NOT_REACHABLE";
break;
controller.serviceSearchFinished(service,message);//calling a method from ChatController class
controller = null;
service = null;
} -
Had to upgrade my server to new Dell T320. Support wanted me to install OpenManage Essentials which unfortunately installed SQL Server 2912 native client. Now I have 2 sqlserv apps running at the same time.
Is there a problem with SBS 2011 Standard running two different SQL Server native clients?
I have no idea why Dell OpenManage did not use the existing 2008R2 native client, but that is the way it is.
Can I combine or upgrade the database so they all use one and not both?
Thanks
Gerald FayHi,
I have asked some who similar the SQL product, in general you can install the different version SQL client on the same operation system, but when the OpenManage Essentials
install a SQL instance on your SQL server, it will automatic upgrade same SQL component to the newer version.
For example, if your SQL server is 2008r2, you install the OpenManage Essentials built-in SQL instance which version is higher(such as 2012), by default it will automatic
upgrade the same SQL component to SQL 2012, I don’t similar with the OpenManage Essentials
tool, I think you can ask DELL® support for the further support.
Thanks.
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
I can not count the data from the module. Can prompt as it to make. It is desirable with examples (data read-out from the module and data transmission between channels. It is in advance grateful.
Hello. Most of the engineers in developer exchange are more familiar
with NI products. Contacting ICS for technical support is a better
course of action. -
Using REF with object table in SQL Developer
When i create object tables and fill them with data, then in SQL Developer de REF value isn't displayed.
I did the following:
CREATE TYPE adres_type AS OBJECT
(straat VARCHAR2(20)
,nummer VARCHAR2(10)
,postcode VARCHAR2(6)
,plaats VARCHAR2(50));
CREATE TABLE adressen of adres_type;
CREATE TYPE locatie_type AS OBJECT
(nr NUMBER
,naam VARCHAR2(20)
,adres REF adres_type);
CREATE TABLE locaties OF locatie_type;
CREATE TABLE locaties OF locatie_type
(SCOPE FOR (adres) IS adressen);
insert into adressen values (adres_type('Arnhemsestraatweg', '33','6881ND','Velp'));
insert into locaties values (1,'Directie', (select ref (a) from adressen a where a.plaats = 'Velp'))
Then in SQL Developer de REF(A) column is empty, while in SQL*Plus it displays the REF value:
In SQL Developer: SELECT a.*, REF(a) FROM adressen a;
STRAAT NUMMER POSTCODE PLAATS REF(A)
Arnhemsestraatweg 33 6881ND Velp
In SQLPLUS: SELECT a.*, REF(a) FROM adressen a;
STRAAT NUMMER POSTCODE PLAATS REF(A)
Arnhemsestraatweg 33 6881ND Velp 0000280209C70341FBB96B4F77813B27B50E53BB4332382E22ADD64AD9B755F651D416B6DA010134
Is this a bug or is there another reason why the ID doesnt display in SQL Developer.
(this didnt work in all the previous SQL Developer releases and still not in de 2.1 E.A. version)Hi <not sure of your first name>,
I have replicated the issues and logged a bug against this
Bug 9102579 - FORUM: REF FUNCTION NOT RETURNING CORRECT RESULT
Regards,
Dermot O'Neill
SQL Developer Team -
Execute procedure with out parameter in sql*plus
HI All,
I am executing an stored proc with OUT parameter from sql*plus.
Getting this error message:
SQL> execute sp1_cr_ln_num('01',0,3);
BEGIN sp1_cr_ln_num('01',0,3); END;
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to
'sp1_cr_ln_num'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
Whereas it works fine using Toad. 4th parameter is for output.
Thanks.then you can see the value either using print :var or execute dbms_output.put_line(:var)
-
How to export data with column headers in sql server 2008 with bcp command?
Hi all,
I want know "how to export data with column headers in sql server 2008 with bcp command", I know how to import data with import and export wizard. when i
am trying to import data with bcp command data has been copied but column names are not came.
I am using the below query:-
EXEC master..xp_cmdshell
'BCP "SELECT * FROM [tempdb].[dbo].[VBAS_ErrorLog] " QUERYOUT "D:\Temp\SQLServer.log" -c -t , -T -S SERVER-A'
Thanks,
SAAD.Hi All,
I have done as per your suggestion but here i have face the below problem, in print statment it give correct query, in EXEC ( EXEC master..xp_cmdshell @BCPCMD) it was displayed error message like below
DECLARE @BCPCMD
nvarchar(4000)
DECLARE @BCPCMD1
nvarchar(4000)
DECLARE @BCPCMD2
nvarchar(4000)
DECLARE @SQLEXPRESS
varchar(50)
DECLARE @filepath
nvarchar(150),@SQLServer
varchar(50)
SET @filepath
= N'"D:\Temp\LDH_SQLErrorlog_'+CAST(YEAR(GETDATE())
as varchar(4))
+RIGHT('00'+CAST(MONTH(GETDATE())
as varchar(2)),2)
+RIGHT('00'+CAST(DAY(GETDATE())
as varchar(2)),2)+'.log" '
Set @SQLServer
=(SELECT
@@SERVERNAME)
SELECT @BCPCMD1
= '''BCP "SELECT
* FROM [tempdb].[dbo].[wErrorLog] " QUERYOUT '
SELECT @BCPCMD2
= '-c -t , -T -S '
+ @SQLServer +
SET @BCPCMD
= @BCPCMD1+ @filepath
+ @BCPCMD2
Print @BCPCMD
-- Print out below
'BCP "SELECT
* FROM [tempdb].[dbo].[wErrorLog] " QUERYOUT "D:\Temp\LDH_SQLErrorlog_20130313.log" -c -t , -T -S servername'
EXEC
master..xp_cmdshell
@BCPCMD
''BCP' is not recognized as an internal or external command,
operable program or batch file.
NULL
if i copy the print ourt put like below and excecute the CMD it was working fine, could you please suggest me what is the problem in above query.
EXEC
master..xp_cmdshell
'BCP "SELECT * FROM
[tempdb].[dbo].[wErrorLog] " QUERYOUT "D:\Temp\LDH_SQLErrorlog_20130313.log" -c -t , -T -S servername '
Thanks, SAAD.
Maybe you are looking for
-
I Have three app updates on my iPhone 5c, and the App Store is asking me for my credit card information when it is on file and then it gets declined. What is the purpose of needing my CC info for free updates?? Do NOT make me drop my apple products a
-
I am unable to apply my downloaded update. When I try to apply it and restart firefox, it still says 'apply downloaded update now...'. Why can't I apply this update and what do I do about it?
-
Hi, what is business content cube for GL line items? is there is any corresponding cube for data source 0FI_GL_4 or its just ODS and we have to develop custom cube. Thank you, sam
-
Please answer this as soon as possible
I just downloaded an explicit song, how do you delete it? please respond as soon as possible
-
How would I go from my macbook out monitor to 3 compisite cables out?
basically I want to feed my macbook pro monitor feed out to a 3 way composite cable. Whats the best method. most composite cables I see are for vga not dvi. Should I use the dvi vga adapter and then connect a VGA composite to it, or is there an easie