Connecting to Oracle database from R using PL/SQL settings - r

I currently use PL/SQL to connect to a database, and I want to be able to do the same thing using R Studio.
I tried installing ROracle, but I got the following error:
ERROR: cannot find Oracle Client.
Please set OCI_LIB64 to specify its location.
I don't know if I have the client installed or not, but I don't have admin privileges anyway and I'm not comfortable editing registries.
I then tried RODBC based on several other posts, but I either don't have or I don't know where to find the right information to enter. I know the database name, the username and password.
If I can use PL/SQL, does that mean that I have the Oracle client installed? If it does, would I be able to find its location in PL/SQL and then tell ROracle where to find it?
If not, is all the information I would need to connect with RODBC (or another package) available inside PL/SQL?

Related

Trouble accessing recently created ODBC table

I have started using DBI and RODBC packages as a way to talk to the ODBC interface and write a dataframe as a ODBC table to be accessible during queries.
My problem is, while I can write a table by using either dbWriteTableor sqlSave, I can't access it.
When I explore the available tables on my ODBC connection, my test table appears in my personal schema but when I try to access it via SELECT or even desc the "table or view does not exist" error appears.
The problem is only accessing the database because I can properly update or remove the table using either ODBC R package or even using SQL Developer.
PS: If I create the table using the import function in SQL Developer I can properly access the table but my goal is to properly access it after writing it using an R function

How to create an access database to be used by runtime

How do you save a database in Access 2010 so that the database can be connected to and the queries run from a machine that does not have Access installed? I have read that I can use runtime but can't find how to actually make it so that it can be used in runtime. Is this what the Package Solution Wizard is for or is just a certain file extension? If I do that, will the user have to install it? On my network I am not sure if that is allowed. Can you just email it as a file that doesn't need to be installed? I am really struggling to find much info.
You don't need to make any special preparations in your database for launching under runtime. Launching Microsoft Access with your database is similar to the way you would do so with the regular version of Access. Simply launch the msaccess.exe followed by the name of your database.
You can read more about this for instance here.
Access runtime should be installed on PC first

Scala Slick and SQLite

I'm trying to create a database using Scala and SQLite. I'm using Slick as the library for the SQLite.
I've been googling around for hours and still can't figure out how to get this working. I have eclipse project with Slick installed. I'm trying to instanciate the database with
val db = Database.forUrl("url",driver = "org.SQLite.Driver")
I have no idea what to put in the url. I'm not very sure about the driver part either. Should I use that one or does "scala.slick.driver.SQLiteDriver" work too? Or does it even matter?
I'm really confused about all this.Any help is appreciated
Thanks!
JDBC relies on drivers that implement the JDBC API, and provide access to the low-level functionality of working with particular databases.
URLs are how you tell a JDBC driver which database you want to connect to. The first part of the URL is always jdbc:<driverId>:, where driverId is the specific name that the driver expects to see (e.g. postgresql, mysql or, in your case sqlite.) The format of the URL after the driver ID is specific to the particular driver implementation. With mysql and postgres, where you typically connect over TCP to the database server, you'll see a format like this:
jdbc:mysql://dbserver:dbport/databaseName
jdbc:postgresql://dbserver:dbport/databaseName
But, since SQLite is an in-process, local database, the part of the URL after the driver ID is just a filesystem path, like so:
jdbc:sqlite:/home/me/my-db-file.sqlite

ODBC. Able to test connection but unable to create dsn

Im trying to clone an database using ODBC. However I do not have the Windows login or password to create the DSN. I am able to make a successful test connection through PHP AND ODBC.
Is there anyway to dump an database or perhaps make it to a CSV safely using PHP? Or is there anyway around this without the windows auth?
If you are successfully connecting with PHP, then you should be able to use PHP to perform any ODBC calls necessary for duplicating or cloning the database supported via SQL Commands.
Since PHP is able to perform file io, you can choose to store the data from the database in any format you prefer; including csv.

Visio reverse engineering

I am new with Visio. Is it possible to generate an empty database from a database scheme? I am trying to generate a SQLite database from a Visio database scheme. I have tried to use reverse engineering with different SQLite drivers but could never see any tables to select in the reverse engineer wizard......
BTW, Is there any other tools that could build a SQLite database easier? I tried SQLite Manager, SQLite2009 pro enterprise manager. Either of them seems to be very user friendly. Also tried OsenXP Suite which did not work at all either...
Hope this could help
there is an answer here
https://stackoverflow.com/a/3867566
seems you have to install ODBC driver
I've also tried using MySQL database, and need ODBC to connect to VISIO. The steps are here
http://sajjadhossain.com/2009/02/12/reverse-engineering-mysql-database-with-microsoft-visio/
Maybe the step is same because using ODBC
Unfortunately, I found error, if the table name is longer than 16 characters, then the visio will error.

Resources