Connecting R console with Oracle Database
Hi,
I had Oracle database client installed in my desktop which connects to the oracle Database 11g and 12c.
I also installed R console. How can I connect to Database from R console
Thanks & Regards
Surya
Surya,
To use ROracle to connect to Oracle Database, simply install and load the ROracle package in R and load the driver:
R> install.packages("ROracle")
R> library(ROracle)
Loading required package: DBI
R> drv <- dbDriver("Oracle")
Once the ROracle package is installed, create a database connection object and connect to Oracle Database as the OS user.
R> conn <- dbConnect(drv, username ="<your.username>", password="<your.password>",
dbname = "<your.connect.string>")
ROracle binaries (Windows, AIX, Solaris, SPARC) can be downloaded from OTN. The Linux source package can be downloaded from CRAN. You may also refer to OTN resources to Learn More about ROracle.
If you wish to take advantage of the features provided by Oracle R Enterprise, such as transparent access to R base functionality, in-database analytics, and interface to Oracle Data Mining functionality, you'll need to follow the installation instructions in the installation guide.
Best Regards,
Sherry
Similar Messages
-
How to Connect Forms or any version with Oracle Databases 8/6i/9i/10i/11i
I want to know that how can i cannect Developer Forms / Reports with Oracle Databases with various versions and say developer 2000 to Oracel 6i/9i/10i/11i etc
Using the appropriate setting in tnsnames.ora file located in your [Forms_Home]\network\admin directory.
Sim -
Problem in connecting SQL developer to Oracle database
Hi,I don't know this is the correct forum for my problem
I Just installed Oracle Sql developer 3.2.I encountered a problem while creating a new connection with Oracle database 11g..
The error message says "Status : Failure -Test failed: The Network Adapter could not establish the connection"..
The command response as follows
lsnrctl stop
LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 31-OCT-2013 21:52
:56
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
TNS-01190: The user is not authorized to execute the requested listener command
lsnrctl start
LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 31-OCT-2013 21:55
:49
Copyright (c) 1991, 2010, Oracle. All rights reserved.
TNS-01106: Listener using listener name LISTENER has already been started
lsnrctl status
LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 31-OCT-2013 21:57
:07
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Produ
ction
Start Date 31-OCT-2013 20:57:07
Uptime 0 days 1 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\app\RIYAS\product\11.2.0\dbhome_1\network\admin\lis
tener.ora
Listener Log File c:\app\riyas\diag\tnslsnr\RIYAS-PC\listener\alert\log.
xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
lsnrctl service
LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 31-OCT-2013 21:58
:28
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:102 refused:0 state:ready
LOCAL SERVER
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1022 state:ready
DISPATCHER <machine: RIYAS-PC, pid: 1828>
(ADDRESS=(PROTOCOL=tcp)(HOST=RIYAS-PC)(PORT=49911))
The command completed successfully
set
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\RIYAS\AppData\Roaming
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=RIYAS-PC
ComSpec=C:\windows\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\RIYAS
LOCALAPPDATA=C:\Users\RIYAS\AppData\Local
LOGONSERVER=\\RIYAS-PC
NUMBER_OF_PROCESSORS=4
OS=Windows_NT
Path=C:\app\RIYAS\product\11.2.0\dbhome_1\bin;C:\app\RIYAS\product\11.2.0\dbhome
_2\bin;C:\Program Files (x86)\PC Connectivity Solution\;C:\Program Files\Common
Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsof
t Shared\Windows Live;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\
Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\wi
ndows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPo
werShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;
C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program File
s (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\I
ntel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Open
CL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Progra
m Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\P
rogram Files (x86)\Windows Live\Shared
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=3a09
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\windows
TEMP=C:\Users\RIYAS\AppData\Local\Temp
TMP=C:\Users\RIYAS\AppData\Local\Temp
USERDOMAIN=RIYAS-PC
USERNAME=RIYAS
USERPROFILE=C:\Users\RIYAS
windir=C:\windows
windows_tracing_flags=3
windows_tracing_logfile=C:\BVTBin\Tests\installpackage\csilogfile.log
Pls help..You don't say what you have done to set up a connection.
This error is usually caused by something like using the wrong host name, or port number. -
Is it possible to connect Sqlfire server with oracle using DBSynchronizer using default license
is it possible to connect Sqlfire server with oracle using DBSynchronizer using default license
Sql fire is my machine
Oracle is another machine
When i connect sqlfire with oracle using DBsynchronizer It shows the error message as Wan is not supported for default license
When i connect Sqlfie(my system) with oracle( another system) using JDBC Rowloader .nothing is happening after some time it shows the error like"time out for pool connection to archive database.When i increase the time out also nothing is happening.
what is the reason for above two errors(I stated in the pragraph.)
is it beacuse of wan netwrok not supported by default evaluation license?
could you please explain?I don't think this has anything to do with a VMware product.
-
VB with Oracle Database as Backend
Hi,
I was trying to do some work in VB with Oracle Database as backend. i got the connection. but the arabic data in the database is not showing properly in VB form. the current values in the table is showing junk characters. if i'm updating a field in arabic from VB form and try to retrieve it after updation, it is returning question marks (?). can somebody tell me how can i get arabic data from Oracle database through VB forms.
thanks.
georgeHi Sonal Patel,
Yes it is possible. Check the below links for using oracle database in visual composer.
http://help.sap.com/saphelp_nw04s/helpdata/en/21/58feb70e884bc68a474429ac26f448/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/84/5a8340d990ce62e10000000a155106/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/e0/92583ab4da4b9cb524f61ba4267d25/frameset.htm
Regards
Basheer -
hello,
i would like to know if AWM 11.2.0.3.0A works against with oracle database 12c in pdb mode or not .
regards
jmI have attempted to connect 11g versions of AWM to 12c and get this error:
'This version of Analytic Workspace Manager is incompatible with the database instance. The Analytic Workspace Manager version is 11.2.0.3.0 and the database compatible version is 12.1.0.0.0'
So unfortunately it is not compatible, and there is currently no AWM for 12c
I also contacted Oracle support and they wont give me any information about a release date or any information on the xml template specification for 12c.
I guess we will just have to wait till they release a version of AWM that supports 12c...
Laszlo -
Problem with Oracle database Express Edition (Linux)
I installed oracle-xe on my machine (ArchLinux x64), and all worked fine before a reboot. After it, I still can connnect to the db with sqlplus, but can't connect to apex (http://localhost:8080/apex/f?p=4950) and can't get a connection using ojdbc:
Exception in thread "main" java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection.
I tried to reinstall the db several times, but the result was always the same: all is ok only before rebooting. I'm a newer with Oracle database and can't find a solution. Could you give me some tip about it?The problem was solved by changing permissions for log directory :
sudo chmod -R 777 /usr/lib/oracle/product/11.2.0/xe/log -
Bypass Login with Oracle Database
hello,
I am using Oracle forms 6i.
i want to create an application that does not require any connection with Oracle database.
My Application fetch all its data from an Excel file.
I do not want Login with Database,so i want to byapass it.
How can i do it..Akarsh wrote:
hello,
I am using Oracle forms 6i.
i want to create an application that does not require any connection with Oracle database.
My Application fetch all its data from an Excel file.
I do not want Login with Database,so i want to byapass it.
How can i do it..Hi Akarsh,
Use ON-Logon trigger at form lebel
and put your connection string. then when you run this , it will not ask for connection identifier.
Hope this works.. -
SAP BO Installation with Oracle Database
Hello all,
My client uses SAP R/3 with Oracle database. Now we have to install Business Objects on another machine.
I've read the documentation on Installing Procedures but there are some questions still not clarified.
1. Do I have to install Oracle in the new machine?
2. If not, can I connect BOBJ to the database of the SAP R/3 Server?
3. If I want to have three systems (Like in R/3, Productive, Tests and Development) do I have to install BOBJ in different machines?
Thanks in advance,
Regards1. you dont have to insall Oracle database at the BO machine side, you just need any database to hold the BO repository.
2. you cant connect directly using BO, only Crystal reports can connect directly to R3 database, you need to have a BW in between.
extract your data into the BW, and let BO connect to BW using the BO integration kit for SAP solutions.
3. no you dont have to have 3 different machines, using one BO machine you connect to them all, but you may need build a BO environment, (Development, Production servers)
good luck -
How to create connection to cluster of Oracle database server?
Hi, all!
I have to create connection to Oracle cluster. How to do that?
I can make a connection to one server but to cluster ....
I saw many documents but without any result.Hello
Two servers with oracle database server installed organized as a cluster.
Both server work in parallel, when one of them stop work the other takes connection automaticaly.
The connection to the cluster is not usual as a one server.
I have to specify both servers.Any time i can make a connection to one of them but when he stop work my connection will be broken.
Because of that the servers work under oracle server software.
So i can make a connection to one of them and both.
This is made because it is for production firm with many test computers that work 24/7 and send information to this oracle server.
So i have to make a connection to the general oracle cluster (the two servers simultaneously).
I saw some connection strings to do tha written on Visual Basic but i have no idea how to do that in C/C++.
There is no information about that in the Oracle tutorials and manuals.
I need this explanation because i make a connection without TNS config file.
Can you help me?
I will be very appreciated. -
How to connect pocket pc with oracle 9.2.0.6 databse
hi,
i have oracle 9 databse and erp which works with it.
i need to create application for pocket pc which must work with oracle 9 database.
how can i connect pda device with oracle databse?
how to use oracle databse lite to do this?
best regardsI know there was a problem in 6i where you would get a crash if your query returned more than {Max Length} characters of the field representing the CLOB column.
-
Installation BOBJ XI 3 on UNIX ( Sun Solaris ) with Oracle database
Hi All,
I want to deploy and install BOBJ XI Enterprise 3.1 on Sun Solaris with oracle database.
My question is, do we need to add some oracle licenses stuff in BOBJ XI Enterprise server or we just using a connection from Sun Solaris to oracle database ?
Pls Advise,
Rgds,
DennyHi Denny,
the risk is the same whatever DB server you are using. Once you have a setup where more than one application access the server, overload caused by one application can influence the performance of the other ones. You have to check if your DB vendor offers tools to monitor and limit the load on your DB server. But we are talking hypothetically now. I would recommend to check what's the actual load on your oracle DB server. If the server is not working at the limit (let's over 80% all the time), then I think that you can try to install BOBJ also in an existing oracle instance on the oracle server. You can reduce the risk and make the maintenance easier if you setup a dedicated oracle instance on your DB server just for the BOBJ repository.
Regards,
Stratos -
Memory consumption is more with oracle database compared to Sybase
Hi,
We are executing the same java source code with backend sybase and the oracle database. But with oracle database it is consuming more memory than Sybase.
Currently using 11g R2 with ojdbc6.jar driver
can you please provide the information to optimize the memory consumption when using the oracle.
Thanks,
Nagarajuser12569889 wrote:
We are executing the same java source code with backend sybase and the oracle database. But with oracle database it is consuming more memory than Sybase. That is not saying anything at all.
What memory in Oracle? Shared pool? Buffer cache? PGA? UGA? Library cache? Something else?
What memory in Sybase did you compare it to?
What type of client-server connection to Oracle was made? Dedicated or shared?
What commands/method were used to determine the memory consumption in Oracle and then Sybase?
What serves as the baseline for comparison?
Comparing product A with product B is a COMPLEX thing to do. And IMO, beyond the abilities of the majority of developers - as they lack the technical expertise to extract usable metrics and correctly compare these between products that can work VERY differently.
And unless you can provide technical details to backup your claim that you are observing that "+Memory consumption is more with oracle database compared to Sybase+", I would say that you have no idea what you are actually observing and in no position to deduce that Oracle consumes more memory. -
Connect as: normal with Oracle 12c and Toad 12 FAILS.
Connect as: normal with Oracle 12c and Toad 12 FAILS.
I've been looked at forums, blogs and wikies but I couldn't found why my new user, that I created before, can't connect as NORMAL but as SYSDBA it can.
I don't know why this occurs.
My intention is create a user/schema in a local DB to have my own db.
I can create a new user but when I go to connect to this new schema I only connect as SYSDBA, this is a big trouble because I can "see" object's DBA and I don't want this, I want create my own new schema db and not share name's object or name's tables with DBA.
For example, object JOB exists as SYSDBA and I can't create a new table with this name.
Please, help me.
Thanks very much for read me.Hello rp0428!!
I'll show you all step that you wrote.
In sql plus:
sho con_name
CON_NAME
CDB$ROOT
SELECT name, created, open_mode FROM v$database;
NAME CREATED OPEN_MODE
ORCL 23/07/2013 15:59:44 READ WRITE
SELECT username, account_status, lock_date, expiry_date FROM dba_users WHERE USERNAME like '%IMEI%' ORDER BY 1;
username account_status lock_date expiry_date
IMEILOCAL OPEN 22/01/2014 12:20:25
SELECT USERNAME,CON_ID,USER_ID FROM CDB_USERS WHERE USERNAME like '%IMEI%';
USERNAME CON_ID USER_ID
IMEILOCAL 3 117
select GRANTEE,con_id from cdb_ROLE_PRIVS where GRANTED_ROLE='CONNECT' AND GRANTEE LIKE '%IMEI%';
GRANTEE con_id
IMEILOCAL 3
SELECT NAME, CON_ID, DBID, CON_UID, GUID FROM V$CONTAINERS ORDER BY CON_ID;
NAME CON_ID DBID CON_UID GUID
ORCLC 3 2835062256 2835062256 14236144864B451C8E04D5C6453034FA
To create my user I did:
select con_id,dbid,NAME,OPEN_MODE from v$pdbs;
2 4064112103 PDB$SEED READ ONLY
3 2835062256 ORCLC MOUNTED
alter PLUGGABLE database ORCLC open;
select con_id,dbid,NAME,OPEN_MODE from v$pdbs;
--2 4064112103 PDB$SEED READ ONLY
--3 2835062256 ORCLC READ WRITE
alter session set container=ORCLC;
CREATE TABLESPACE DATA3 DATAFILE 'C:\app\X05699SA\oradata\orcl\DATA3.dbf' SIZE 50M;
CREATE USER IMEILOCAL IDENTIFIED BY IMEILOCAL DEFAULT TABLESPACE DATA3 TEMPORARY TABLESPACE TEMP PROFILE DEFAULT ACCOUNT UNLOCK;
select username, password, created, password_versions, default_tablespace from dba_users where username like '%IMEI%';
username password created password_versions default_tablespace
IMEILOCAL 24/07/2013 16:41:35 11G DATA3
GRANT CREATE SESSION TO IMEILOCAL;
GRANT CREATE TABLE TO IMEILOCAL;
GRANT CREATE VIEW TO IMEILOCAL;
GRANT CREATE procedure TO IMEILOCAL;
GRANT CREATE trigger TO IMEILOCAL;
GRANT CONNECT TO IMEILOCAL;
GRANT CREATE SEQUENCE to IMEILOCAL;
GRANT create any context TO IMEILOCAL;
GRANT create public synonym TO IMEILOCAL;
GRANT execute on dbms_rls TO IMEILOCAL;
GRANT administer database trigger TO IMEILOCAL;
SELECT user, osuser, terminal, program FROM gv$session WHERE sid = (SELECT sid FROM v$mystat WHERE rownum = 1);
user osuser terminal program
SYS SECTORIALES\X05699SA MX3500906DC1549 Toad.exe
SELECT u.username, u.default_tablespace, u.temporary_tablespace "TMP TBS", u.profile, r.granted_role,
r.admin_option, r.default_role
FROM sys.dba_users u, sys.dba_role_privs r
WHERE u.username = r.grantee and u.username like '%IMEI%'
GROUP BY u.username, u.default_tablespace, u.temporary_tablespace, u.profile, r.granted_role,
r.admin_option, r.default_role;
IMEILOCAL USERS TEMP DEFAULT CONNECT NO YES
SELECT tablespace_name FROM dba_tablespaces;
SYSTEM
SYSAUX
TEMP
USERS
EXAMPLE
DATA3
SELECT name, password FROM user$ where name like '%IMEI%';
IMEILOCAL passwordx
select USERNAME, USER_ID, CREATED, COMMON, ORACLE_MAINTAINED from all_users WHERE username like '%IMEI%' order by 1;
IMEILOCAL 117 24/07/2013 16:41:35 NO N
select * from user$ where name like '%IME%';
117 IMEILOCAL 1 passwordx 3 2 24/07/2013 16:41:35 26/07/2013 12:20:25 0 1 0 0 DEFAULT_CONSUMER_GROUP 0 S:566C0A818AC42C203D49706D3586926A7656F5B16AA6C37E8FE10A1F779B;H:6FB057BA9F5B0690B93FD9A20695654D
Here you're my tnsnames.ora
# tnsnames.ora Network Configuration File: C:\app\X05699SA\product\12.1.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
LISTENER_ORCL =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl.iecisa.corp)
# Here you're my listener.ora Network Configuration File: C:\app\X05699SA\product\12.1.0\dbhome_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\app\X05699SA\product\12.1.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\app\X05699SA\product\12.1.0\dbhome_1\bin\oraclr12.dll")
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
I think my problem source from about CDBs and PDBs, that is new in Oracle 12c and I'm not configure correcly my new DB and neither my new User
Thanks for all!!! -
Anyone seen issues like hung threads using OIM9.1.0 with Oracle Database 11.1.0.7?
Thanks guys for the quick responses.
But I have tried both the options for putting the jar in Third Party and also by uploading using the OOTB utility UploadJar.sh.
But it is giving the same error.
I have tired rebouncing the server and also Purge cached, but no success.
Just to mention again, I have tried with all the last 3 postgres JDBC4 driver available on the site (u mentioned).
So, any other clue?
Thanks in advance.
Maybe you are looking for
-
Toshiba Satellite P870 upgraded to Win 8.1 does not boot
I have a Toshiba Satellite P870 with Win 8 preinstalled. Soon after upgrade to Win 8.1 and basically successful removal of "watermark error" (secure boot activated) the machine stopped booting completely: after pressing the power button ventilator so
-
Spawn a new PDF using Java Script within LC Designer
I am trying to spawn a new PDF file to be created from an existing PDF using Java Script within the LC designer I have this example but I can't get it to work function createPdf() pdf = pdf$(); pdf.addText('Hello World'); pdf.writeToFile(
-
2 page PDF not exporting to docx (Word file) correctly
Good day to all, My professors sends his notes to us on a 2 slide per page PDF file. Each slide contains very little information, hence I find its best to convert it into a word file with columns. It usually reduces the total number of pages from 34
-
Just bought 1 iMac & have 2 more ordered to upgrade from OLD G4s. Tried Pondini's how to to set up from the old Mac but we get a message that the old does not have an OS X installed when trying to use firewire. What other options do we have? Need ste
-
How do I "see" the AF point I choose with a Nikon D700/D3?
How do I "see" the AF point I choose with a Nikon D700/D3? I hear a D3s and LR3.3 can see it. AND, how do I turn it ON/OFF ? HG