PRO*C에서 MULTIPLE CONNECTION 방법

제품 : PRECOMPILERS
작성날짜 : 1997-02-04
=================================
Pro*C에서 Multiple Connection 방법
=================================
1. Explicit Connection
EXEC SQL DECLARE database_name DATABASE;
EXEC SQL CONNECT :username IDENTIFIED BY :password
AT database_name USING :database_string;
. database_name : Precompiler에서의 identifier
. database_string : remote node에 접속하는 SQL*Net syntax
1) SQL Operation
EXEC SQL AT database_name SELECT ...
EXEC SQL AT database_name INSERT ...
EXEC SQL AT database_name UPDATE ...
EXEC SQL AT database_name COMMIT ...
2) PL/SQL Block
EXEC SQL AT database_name EXECUTE
begin
/* PL/SQL block here */
end;
END-EXEC;
3) Cursor Control
EXEC SQL AT database_name DECLARE cursor_name CURSOR FOR ...
EXEC SQL OPEN cursor_name ...
DECALRE문장에만 AT database_name이 들어가며 OPEN, FETCH,
CLOSE문에서는 AT 문을 사용하지 않는다.
4) Dynamic SQL
Dynamic Method 1에서는 execute시점에 At문을 사용한다.
EXEC SQL AT database_name EXECUTE IMMEDIATE :sql_stmt;
Dynamic Method 2,3,4에서는 DECLARE STATEMENT에서만 AT문을
사용한다.
EXEC SQL AT database_name DECLARE sql_stmt STATEMENT;
EXEC SQL PREPARE sql_stmt FROM :sql_string;
* host variable로 선언하여 사용할 수도 있다.
char username[10] = "scott";
char password[10] = "tiger";
char db_name[10] = "oracle1";
char db_string[20] = "NYNON";
EXEC SQL CONNECT :username IDENTIFIED BY :password
AT :db_name USING :db_string;
EXEC SQL AT :db_name DELETE ...
- DECLARE DATABASE 문이 필요하지 않으나 SQL Operation시에
사용되는 table들에 대해서 DECLARE TABLE 문을 사용해야
precompile시에 warning을 발생시키지 않는다.
2. Implicit Connection
database link를 사용하여 non-default database를 access한다.
EXEC SQL SELECT ENAME,JOB INTO :emp_name, :job_title
FROM emp@db_link
(database link는 미리 create 되어 있어야 한다.
CREATE DATABASE LINK db_link
CONNECT TO scott IDENTIFIED BY tiger
USING 'T:krhost:SID'; )
이것은 v1 방법이고 , v2 에서는 tnsnames.ora file 의 alias 를 ' ' 안에 써준다.

Hi @seperiz
Have you tried rebooting your router? try unplugging it for 10 seconds, akkow it 2-3 minutes to start till you able to access the web and then turn the printer off and on again.
May you see any difference then?
If the same persists, how far the printer is located from your router? I suggest ensuring it is not too far, but not too close either... 203 meters away would be an optimal distance.
Hope that may help.
Shlomi 
Say thanks by clicking the Kudos thumb up in the post.
If my post resolve your problem please mark it as an Accepted Solution

Similar Messages

  • My Mac Pro won't connect to Wifi?

    My Mac Pro won't connect to the Wifi that it has been for the past 2+ years. All other devices in our home that use the same Wifi are working just fine.

    Tried doing Network Diagnostics multiple times, did not work. Keeps saying it can't connect or times out.
    What color was the light pertaining to Wifi in the left column?  Red, Green, or Yellowish/Orange?
    Some of the following you may have already tried:
    Try the basics first:
       Change your router channel number.  Most times this works & is all you have to do.
    Disconnect & reconnect your modem.  unplug it for about 10 seconds.  Plug it back in.  Do the same for Apple’s routers.  Wait for everything to reboot.
    System Preferences>Network
    Click the Assist Me button.
    In the next window that pops up, click the Diagnostic button & do the necessary.
    Research Knowledge Base for network problems that pertain to the OS that is currently installed on your computer.   See these basic networking KB Articles:  http://support.apple.com/kb/HT1401 AirPort troubleshooting guide
    http://support.apple.com/kb/HT4628  Wi-Fi: How to troubleshoot Wi-Fi connectivity
    http://support.apple.com/kb/HT2712 Using network locations in Mac OS X
    Manually provided DNS server addresses are higher priority than DHCP's
    http://support.apple.com/kb/HT1714 Solutions for connecting to the Internet, setting up a small network, and troubleshooting
    ============================
    What to do when you can't connect to the Internet
    Also, run the Airport Utility app which is located inside the Utilities folder.
    =====================
    If using a  Linksys router, contact LinkSys Customer Support and/or post in their forums.
    If using Apple's Airport, please re-post over in one of the AirPort Forums.

  • Macbook Pro suddenly stops connecting to wifi

    So yesterday, my macbook pro suddenly stopped connecting to any wifi sources at all. Instead after trying to connect, it just gives me the icon with the ! mark, saying that there is no connection made. I've tried multiple routers/sources, and they all don't work. The only reason I'm even connected to the internet right now is through tethering via usb (when I try to make my phone a hotspot, my computer doesn't read it, of course).
    Does anyone have any idea why this would happen?
    My software is up to date, completely. Macbook Pro, 2010 model, OS X Lion 10.7.3

    Give a call to ISP tech support.
    If you have time to read, the link below will take you to the Apple support site.
    http://support.apple.com/kb/HT4628?viewlocale=en_US

  • My macbook pro no longer connects to my TV with the mini dvi to hdmi adapter. A while ago the computer fell down and hit the cable. How can I tell if the computer is working ok. Doesn't show mirroring any more.

    My macbook pro no longer connects to my TV with the mini dvi to hdmi adapter. A while ago the computer fell down and hit the cable. How can I tell if the computer is working ok. Doesn't show mirroring any more. Was working while watching a movie but when I pulled it out from the computer and put it back in the system would no longer mirrorr the screen on the TV.

    The best option is an appointment at an Apple store genius bar.  The evaluation will be for FREE!
    Ciao.

  • I have OS 10.8.2 and use wireless at home just fine. When I visit a friend with only a cable modem internet my Mac Book Pro will not connect. What do I need to do?

    I have OS 10.8.2 and use wireless at home just fine.
    When I visit a friend with only a cable modem internet my Mac Book Pro will not connect.
    I see that the Mac Book Pro is picking up the internet when I check the internet preference section but it will not open Safari.
    What do I need to do connect via a cable modem?

    You need to power off the modem for 15-30 seconds, then power back up and then connect. The modem is remembering the last connection (your friend).

  • TS3048 My early 2009 Mac Pro does not connect via bluetooth to my sound bar or bluetooth mini speakers. Both my wireless keyboard and mouse have no problems connecting. What do I need to do to connect to external bluetooth devices?

    My early 2009 Mac Pro does not connect via bluetooth to my sound bar or bluetooth mini speakers. Both my wireless keyboard and mouse have no problems connecting. What do I need to do to connect to external bluetooth devices?

    I would always have a wired keyboard and mouse on hand (need not be expensive ... any cheap wired devices will work).  "Emergency recovery" procedures can activate features in random order, so the opportunity to select a recovery partition may pass before the wireless devices are recognized.
    That will let you select the "turn on Bluetooth" icon.

  • I have my HP OfficeJet Pro 8500 A connected to my Mac Book Pro on a Wireless network. It works and

    I have my Hp Officejet Pro 8500 A connected to my MAc Book Pro which is running Lion OS on a wireless network.  It works just fine and prints and everything.  The problem is a "HP Utility" window that pops up on my screen and says it is "connecting to device" and lists my printer.  It just runs and runs and the entire thing is gray - meaning I can't close it, cancel it, or anything. When you try to click on it, the arrow becomes the color wheel of death.   It is driving me crazy.  I have gone through settings, I have downloaded the latest drivers, I have looked in utilities, I have opened the printer folder and can't find where this thing is coming from or how to turn it off.  Please help.  And yes I have turned offf the computer and rebooted.  

    If you are using Snow Leopard or Lion and have HP software for pre-Snow Leopard (either from a CD not marked as compatible with 10.6 or you recently upgraded to Snow Leopard or Lion and had the HP software on your Mac before you upgraded - even if you did a standard uninstall of the old software or installed new software over the top of it) you must uninstall the software using the 'scrubber' option:
    Go to Applications/Hewlett Packard/ click on HP Uninstaller
    Click on Continue
    Highlight your device on the left pane
    Press and hold Control + Alt + Cmd keys on the keyboard simultaneously while you click on Uninstall <<<< This IS the Scrubber Option, there is no button labeled "Scrubber"
    There will be a pop up that asks if you are sure you want to uninstall ALL hp software. (At this point, if you continue, any HP printers you have installed will need to be reinstalled)
    Click Continue and let it finish
    Restart your Mac
    Download and install this: http://support.apple.com/kb/DL907
    Now reset the printing system:
    - Sys Prefs, Print & Fax
    - Right (control) click in the rectangle listing your printers and select Reset Printing System.
    WARNING - this will delete ALL of your printers!
    - Select the plus sign to re-add it. Look for the printer, select it and wait until the "Add" button becomes available. Click it.
    If you want more features, you can download and install the Full Featured software from the "Support & Drivers" button at the top of this page, otherwise, basic printing and scanning will work without it.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • How do I print from wifi-connected MacBook Pro to printer connected via USB to Win7 PC?

    This is really frustrating, and I did not think that anything could be this difficult on a Mac. I have a Windows 7 Home Premium desktop PC connected via ethernet cable to wireless router, and a printer connected to the PC via USB. I recently bought my first ever Mac - a MacBook Pro, which is connected via wifi through the same router. All I want to do is to print files from the MacBook Pro on the printer connected to the PC. I have spent a LOT of time searching all over the web. Have tried some 2 or 3 different methods but none of them work for me, e.g. I shared the printer on the Win7 desktop and then added the printer on the MBP with the IP option with LPD/LPR Protocol, after enabling LPD Print Service on the PC. The printer gets added but when I give the command to print from the Mac, the print job shows up on the printer queue but the "Printing" soon changes to "Error Printing" (or something like that) and nothing gets printed. Then, I have to switch off the printer, remove the print job from the queue and switch on the printer again to get it out of the error state.
    I also tried setting up the printer on the MBP using CUPS Admin interface, i.e. localhost:631. Again, printer gets added but document does not print. The third way I tried to add the printer was using the Windows option in the Add Printer dialog, and typing in an smb: URL but no luck with that, either.
    Please, can anyone help me? This is driving me crazy
    Oh, and the devices are:
    1) Windows 7 Home Premium Desktop PC
    2) MacBook Pro running OS X Mountain Lion
    3) HP Deskjet F2110 printer
    Thanks...
    - Ajoy

    First Install Bonjour for Windows on your Windows machine. This will allow the printer to be discovered.
    http://support.apple.com/kb/DL999
    Then use this article:
    OS X Mountain Lion: Set up a printer shared by a Windows computer via SMB/CIFS

  • Macbook pro keeps saying connection timeout, and it used to connect to the internet fine. what's up, why can't it find and automatically connect to the internet anymore???

    Macbook Pro keeps saying connection timeout and it used to connect to the internet fine. What's up, why can't it find and automatically connect to the internet anymore???

    Like this: https://discussions.apple.com/thread/2775868?tstart=0  ?

  • My macbook 13 pro is not connecting to the internet even though the airport says it's connected. Can someone help me?

    My macbook 13 pro is not connecting to the internet even though the airport says it's connected. Can someone help me? My iphone and other macbook connect and work no problem. What steps can I take?

    Ok....
    Now go to your router's settings.  Not sure who makes your router...
    Look at wireless part of it and see how many computers are actually hooked up to it.
    Delete your computer from it (in your router).
    Restart your router.
    After your router has restarted, try to connect to it with your MB and see if you can browse the net.

  • My MacBook Pro won't connect to the Internet, but my phone and PC will.

    My MacBook Pro won't connect to the Internet. My iPhone has no problem doing so, and neither does my PC. I think it's something to do with my DNS, but I'm not sure. My network connections say that both my Ethernet or FireWire are failed. What's wrong with my MacBook? Is there a simple way to fix this?

    Hello Rattisate,
    Sorry to hear you are not able to connect to Wi-Fi on your MacBook Pro.  I would be concerned about this too.  You can find information on how to troubleshoot this in the following article:
    Troubleshooting Wi-Fi issues in OS X Lion and Mac OS X v10.6
    http://support.apple.com/kb/HT4628
    Follow the steps in the section labeled, "Symptom: My Mac does not connect to the Internet."
    Thank you for posting in the Apple Support Communities.
    Best,
    Sheila M.

  • My MacBook Pro won't connect to the Internet via wifi but it worked fine on ethernet cord...I tried running diagnostic but it didn't work:((((  it happen every time if I restart the modem and/or router

    My MacBook Pro won't connect to the Internet via wifi but it worked fine on ethernet cord...I tried running diagnostic but it didn't work:((((  it happen every time if I restart the modem and/or router.. Any idea how to fix this?

    Hello Rattisate,
    Sorry to hear you are not able to connect to Wi-Fi on your MacBook Pro.  I would be concerned about this too.  You can find information on how to troubleshoot this in the following article:
    Troubleshooting Wi-Fi issues in OS X Lion and Mac OS X v10.6
    http://support.apple.com/kb/HT4628
    Follow the steps in the section labeled, "Symptom: My Mac does not connect to the Internet."
    Thank you for posting in the Apple Support Communities.
    Best,
    Sheila M.

  • MacBook Pro will not connect to the internet

    Suddenly, my MacBook Pro will not connect to the Internet--even when I take the cable from the Time Capsule and plug it into the laptop...
    -Internet is good
    –WiFi is connected
    -both work with my iPad...

    You should show WiFi:
    Do you have it turned on?
    Clinton

  • My MacBook pro will not connect to the Internet through wifi yet all other devices do

    My MacBook pro will not connect to the Internet through wifi. I have several other wifi enabled devices and they are all connected to the Internet just fine... What could/would cause this?

    Disable your AirPort and enable in a second. Or check, maybe you need to type in correct digits in; Settings/Network/Advanced/Configure...

  • Shall I use one datasource for multiple connection pool?

    Hi,
    I need to clarrify that, Shall I use one Datasource for multiple connection pool in distributed transaction?
    Thanks with regards
    Suresh

    No. If its transactions across multiple databases you should use different datasources.

Maybe you are looking for