I have been given some oracle database files and I need to retrieve data from them. The files include .ctl, .ora, .dbf, and .log. How can I attach/restore the database on a new install of oracle?
Try beginning here: Recreate Oracle Databse from .dbf files after re-installation of Oracle Enterprise 11gR2
With these files you should create a new instance, not try to "attach" it to an existing database.
Related
i download .sql file(add_students_table.sql), install oracle 11g XE database and SQL developer, i make connection but how i can add tables from book where i downloaded sql file to import tables so i can follow examples from book...thx
SQL file you downloaded is editable in any text editor, so - open it. What does it contain? There are two options I can think of:
the first one creates user and, afterwards, creates its objects (i.e. runs CREATE TABLE & INSERT INTO statements which populate created tables so that you could practice queries written in the book), or
there's no CREATE USER (which means that you should create it yourself, connecting as a privileged user - that would be SYS in your XE database, I'd say), but does create tables and inserts data into them
On the other hand, does the book not contain instructions which say what should be done with the SQL file?
Hi i'm connection my HSQL Embedded db using HSQL Database manager using hsqldb-2.3.3.jar.
But when i connected with the db i can't see any tables.
The application working good and i can even tables values while running app.
Each HSQLDB file: database has a name. The files for the database all have this name but different extensions.
I this example the database name is learn_ware and it is stored in learn_ware.script and learn_ware.properties.
To connect to a file database, append the database name (without an extension) to the path of the database directory.
I want to do the following two things:
Create a table "Lite AC" with two columns (id, lite_ac) in a Postgresql database via Microsoft SSIS package
Update that newly created table via another SSIS package
I want to use that table in order to integrate it into a WHERE SUBSTRING IN (Lite AC) statement.
I am using pgAdmin to connect with that Postgresql database. I know how I can export data from Postgreql via an SSIS package so all the drivers should be installed, but no idea how to do that the other way round.
Is that possible?
I do not have Postgres installed.
You need two connection managers. One for source and the other for destination.
In your case destination is Postgres DB. In order to test out, you may use a Flat File Connection to insert set of sample data from a .txt file. Following tutorial emphasizes on Login credentials to Postgres DB.
Install the relevant drivers (32bit and 62bit accordingly)
Follow this tutorial
Once you are able to connect to Postgres DB via SSIS and rows are inserted into the DB using .txt file - try to add a SQL Scripting Task to be executed after Data Flow Task, so to update the records in the new table.
I have a bunch of .btr and .lck files and I need to import those to a SQL Server Data Base.
How can I do that?
.LCK files are lock files. You can't (and don't need to) read those directly. The .BTR files are the data files. Do you have DDF files (FILE.DDF, FIELD.DDF, INDEX.DDF)? If so, you should be able to download a trial version of Pervasive PSQL v11 from www.pervasivedb.com. Once you've installed the trial version, you can create an ODBC DSN pointing to your data and then use SSIS or DTS or any number of programs to export the data from PSQL and import it to MS SQL.
If you don't have DDFs, you would need to either get them or create them. The DDFs describe record structure of each data file.
I have two backup files
1) is named 'backup.sql' with a bunch of SQL defining TABLES
2) is named 'backup' with a bunch of encoded data, which I believe are the ROWS
I need to restore these TABLES + ROWS, but all I am able to figure out is how to restore the tables.
Any tips on dealing with these files? It's the first time I ever deal with SQL Server.
The backup process would not create a file with actual SQL statements, it would create a binary file. So #1 is not a backup file (it's probably a script someone saved to re-create the schema).
I would try to use SQL Server Management Studio to restore the second file and see what happens. I don't think it will allow you to restore an invalid file, but I would take some basic precautions like backing up the system first.
What is the extension for the 'backup' file? Is the filename backup.bak? If you have a backup file created by sql server then it 'should' contain the logic to create both the tables and restore the data, but it could depend on how the backup was created.
---Edit
It is possible for a .SQL file to contain data values as well as the logic to create the tables/columns for a database. I used to run backups of a MySql database in this way a long time ago...it just is not seen very often with SQL server since it has built in backup/restore funcationality.
Seems unlikely they would export all the rows from all tables into CSV file, and given you said it looks encrypted, it's making me think that's your actual backup file.
try this, save a copy of the "backup" file, rename it to backup.bak and run this from SQL Server Management Studio
restore filelistonly from disk='C:\backup.bak'
(assuming your file is saved on the root of the C: drive)
Any results/errors?