We are using ODI 12c version 12.1.2 in windows server 2012 with repository in Oracle 11g on a remote server , we are experiencing slow performance when using odi studio with repository being on s remote server we are trying to migrate our repository to be local on the same windows server , so we are asking about best practice to move the repository from database instance to another.
I found on this source the steps to migrate the repository:
The best way to relocate an ODI Repository from one RDBMS instance/server to another is to use the standard Import / Export tools delivered with database software and set the new connection parameters for the Repository.
For example, the following procedure show how to relocate a Repository to a new Oracle instance:
Physically copying the database schemas
Use IMP/EXP or similar database tools, export the database and / or schemas containing the ODI Repositories and import them to the new database instance.
Setting the new connection parameters with ODI
Launch Topology Manager. In the login window, edit the login parameter set and change the connection parameters to point to the new server which hosts the Master repository and logon to Topology Manager.
Expand the tree structure of the repositories.
Edit each Work Repository that is now hosted on a new server and edit its connection parameters by clicking on the Connection button
Modify the connection parameters (URL and user) of the Work Repository and save it by clicking ‘OK’
Launch Designer. In the Login Window, edit the login properties and change the connection to the Master Repository to comply with the new server properties.
Modify your odiparams.bat (.sh) script to reflect the new connection parameters to your Master Repository.
For each ODI Agent configuration do not forget to update the odiparams.bat (.sh) script as indicated in step 6 above.
Related
I have created a PostgreSQL database on Heroku. I have downloaded pgAdmin 4 on my macOS machine and I was able to connect pgAdmin to my remote Heroku database server instance I have just created. But now I can't do anything:
The option to create a new database is disabled for me (Object -> Create -> Database)
When I extend the databases node, I can't see the database name created in Heroku. But I see a long list of database names for which I don't have access rights
Finally I can't write any SQL scripts; the SQL editor is read-only.
Basically I can't do nothing apart from starting the pgAdmin application.
I suppose it is a matter of my user privilege. But how can I change my user privilege if the SQL editor is read-only?
You won't be able to create a database on Heroku Postgres with pgAdmin.
When you provision a database on Heroku Postgres you are given a single database, not administrative access to the whole server:
As part of the provisioning process, a DATABASE_URL config var is added to your app’s configuration. This contains the URL your app uses to access the database
You can connect to that existing database with pgAdmin, but you won't be able to create another database. The value of DATABASE_URL is a standard URI that will look something like
postgres://user:password#host:port/database
Feel free to pull individual values out of the DATABASE_URL and use them in pgAdmin.
I have a SQL Server database on a remote web host provider. I want to update the database (with add-migration and update-database commands for package manager) on the remote host.
But the host does not provide remote access.
How can I update the database?
You can use the MigrateDatabaseToLatestVersion database initializer to have the application update on startup.
Automatically Upgrading on Application Startup
If you are deploying your application you may want it to automatically
upgrade the database (by applying any pending migrations) when the
application launches. You can do this by registering the
MigrateDatabaseToLatestVersion database initializer
Entity Framework Code First Migrations
Or you can use update-database to generate a SQL script that will perform the upgrade. See Entity Framework Code First . Then have your application somehow run that script.
Can some body tell me that whether I can access my oracle database from my notebook, if I select the Desktop class when I install oracle database in my server.
And if I can, what I should do? (I just want to try to connect my oracle database in server from my notebook using SQL developer tool.)
enter image description here
Accessibility doesn't differ based on Server / Desktop class. This two class is basically for configuration. For example, if you select server class, then it is expected that you are installing it for production environment which may require to configure it with different options. So, if you select desktop class, it will take you to the simple screen with minimum configuration items. So, you can install desktop class on the server too.
To connect, you need connection string. Yes, you can connect from sqldeveloper too from your laptop. You need to create connection string by providing username, password, server ip/address, port, sid name.
Check the screen shot in this link:
https://www.google.com/imgres?imgurl=http://www.oracle.com/webfolder/technetwork/tutorials/obe/cloud/paas/accessdbinstance/images/AccessDBInstance_OBE_connect_db_service.jpg&imgrefurl=https://apexapps.oracle.com/pls/apex/f%3Fp%3D44785:112:2859948781695::::P112_CONTENT_ID,P112_PREV_PAGE:11368&h=417&w=670&tbnid=oQJTUwkQNk7MDM:&tbnh=131&tbnw=211&usg=__5lgQ5gu8SrkZL9KoGkU0HP0mugk=&vet=10ahUKEwielOGHgvTTAhUTSI8KHTtJDOEQ9QEIJTAA..i&docid=d34NHq-Krt96NM&sa=X&ved=0ahUKEwielOGHgvTTAhUTSI8KHTtJDOEQ9QEIJTAA
I publish my SQL Server database on my local machine to Azure via Management Studio.
Say I name the database on Azure "California". The first time I do it its ok.
Then I made changes on my database on local, adding columns, adding data, etc. Then I want to deploy this database to Azure again.
But now Management Studio won't let me do it. It says database "California" already exists on Azure.
I can get away with this problem by deleting existing "California" on Azure first, then deploy again. But this seems not correct...Every time I make database changes on local, I need to delete the one on Azure before I deploy?
Does anyone know how to solve this problem?
The best way is to create a database project in Visual Studio to maintain your database schema and then you can do a database compare to create a script to update the database on Azure.
http://weblogs.asp.net/gunnarpeipman/archive/2013/01/28/using-visual-studio-database-projects-in-real-life.aspx
RedGate Schema Compare will also do a similar thing.
Update Jan 2020
(I'm assuming the question is to update the schema on Azure, not update data)
If you are using Code First for creating your database. Then it is really simple.
Assuming your connection string is pointing to a local database (the one you want to update to Azure)
Make the changes to your entities
Create a new migration for those changed (Add-Migration etc)
Update the migrations to your local database.
Now just change the connection string to point to your Azure database
Update the migrations again, which will now update to the Azure database
Voila! That simple
I know its been a while since the question was asked, however, there is no accepted answer. Thus to aid anyone coming here with a similar issue the following link describes a number of methods.
I prefer deploying a SqlDb from SQL Management Studio
http://azure.microsoft.com/en-us/documentation/articles/sql-database-deploy/
How to: Deploy to SQL Database
In Management Studio, connect to an on-premises SQL Server instance that has a database you want to migrate.
1) Right-click the database --> Tasks and click Deploy Database to SQL Azure.
2) In Deployment Settings, enter a name for the database.
3) Click Connect.
4) In Server name, enter the 10-character server name, followed by .database.windows.net.
5) In Authentication, choose SQL Server Authentication.
6) Enter the administrator login name and password that you provisioned when creating the SQL Database logical server.
7) Click Options.
8) In Connection Properties, in Connect to database, type master.
9) Click Connect. This step concludes the connection specification and takes you back to the wizard.
10) Click Next and click Finish to run the wizard.
If you are using SQL 2012, you can export a data tier application (bacpac) file, then import that when you login to your SQL Azure instance.
this is my first project ^_^
and I have no previous experience.
I did create the database in my project from within the MVC.
Add New Item > SQL Server Database
then I use ADO.NET Entity DataModel
and I don't need to open my connection each time I deal with the database.. it's only the connection string in the Web.config..
my question is :
how can I upload my database?
is there any resource for such beginner as me :$ ?
I did Google it but I found it very hard for me to know if this is what I want or not, that's why I came here :$
It really depends on what type of access you have to your server.
If you have remote desktop access then run remote desktop (mstsc in run) and connect to your server.
This article shows how to install your web application in IIS on server.
This blog post from Scott Guthrie shows you how to deploy your sql database to your server.
In case you only have access to your server via a control panel (plesk) you should still be able to do the same via a different interface. (you need to go through the instructions given for the specific control panel you are using).
Hope this helps.
For ASP.Net website, just upload all files using FTP, in wwwroot folder of your hosting.
For SQL Server database there are following option.
Attach your MDF file on hosting database server (if you have remote desktop).
Generate a script of whole database with full data, schema, and indexes etc. and run the script in query editor of your hosting panel.
First of all create a database from your hosting panel and a user for your database then Use SQL Serer 2008 (R2 most preferable) and connect with your hosting SQL Server using hosting server name in Server name, your db user id in User Name, and same for password. And then connect, you will find a long list of databases including your own database. Now right click on your database and import data from your local database server to remote database server.