how to duplicate Odoo v8 database? - odoo-8

I've been trying to duplicate Odoo's datebase in order to create a production database and a testing one. How can I do this? Once this is ready, how do I know which database I am working at?

You can do database related operation like create new , duplicate , drop, backup database or restore database from odoo ui it self.
http://server_address:port/web/database/manager
Here you will get all the option to manage database from ui.

just click on database manager just below the password field of login page then you can see Menu Named 'DUPLICATE' just click on that then there are two fields write there the source database name and new(Duplicated) Database and then click on Duplicate button on header. It duplicates DB in Seconds

Related

How to see the tables created on oracle cloud

I am new to DBaaS, I created a new oracle cloud account and instantiated a DB.
I am connecting to the DB using SQL developer and created a new table by logging in as sys user.
How do I see the newly created table on oracle cloud using web console?
I can see the data that I have added into the newly created table using SQL Developer, but is there any way or does oracle provides any web-console to see the data using a browser?
Thanks in advance.
This is possible using OEM Cloud Control. To view data, navigate to database homepage/summary. From the top menu, navigate to
Schema -> Database Objects -> Tables.
Fill in the desired schema and click "Go". This will populate a list of the tables within the schema. Click on the table name to view the table.
Once at the View Table page, select "View Data" from the Actions menu and click "Go". This will return the top 25 rows from the selected table. If there are more than 2000 rows, you will be given the option to select specific columns and add a where clause.

Cannot grab blob from Oracle APEX Data Load Wizard after upgrade to APEX 5.1

I am using Oracle APEX to provide a CSV File Upload function for our users, based on a data load definition. Apart from traditionally mapping the data, I also grabbed the BLOB column from the view wwv_flow_files and saved it to another table, so the users were always able to re-download their uploaded files at a later moment.
Now our testing environment got upgraded to APEX 5.1 and this option doesn't work anymore. There is no entry in the view wwv_flow_files for the corresponding file upload. The view apex_application_files doesn't contain one either. The application compatibility mode setting didn't help.
Is there any other way to grab the BLOB?
The APEX version installed is 5.1.2.00.09. The Oracle Database Version is 12.1.0.2.0 Enterprise Edition.
Since APEX 5.0, the file upload capability was changed from using the WWV_FLOW_FILES table to APEX_APPLICATION_TEMP_FILES. The new table has an additional attribute "Purge at", with values of "End of request" and "End of session". So developers do not have to care about cleaning up the WWV_FLOW_FILES table any more.
Data Loading, however, did not use that new capability in APEX 5.0, it moved there with APEX 5.1. That explains, why you don't see the files in the WWV_FLOW_FILES table any more.
The best way to get a hold on the uploaded file is to place a custom PL/SQL process - "copy_blob" on your "Data Load Source" Page, before the "Parse Uploaded Data" process. The Code in that process copies the BLOB from APEX_APPLICATION_TEMP_FILES(!) to your own table.

Association of foreign key to a table in different schema

Can anyone please tell me how can we create links and association for two tables in different schemas in ADF application, i am using jdeveloper 12c .
thanks in advance .
To access tables of a different schema (user) you need to grant select for that schema.
I have no idea how to do that with Jdeveloper IDE (never used it), but perhaps try doing it using SQLDeveloper and see how Jdeveloper reacts..:
So log in to the schema that already has the user table and then
GRANT SELECT ON TABLE yourusertable TO theotherschema
Perhaps after that you can see the table in Jdeveloper and you can create a FK reference on the table as usual.
These are the steps that helped me.
In JDeveloper click on the offline database schema that needs to see the other offline database schema. All the schemas are immediately under the folder icon, "Offline Database Sources".
Right mouse click and select "Properties...". It's the last option on the Context Menu.
A popup window titled, "Edit Offline Database" will appear. Select "Dependencies" on the left list and click on the + icon circled in red as shown in
image here.
Select from the list of available schemas and you are done. It should be possible to reference tables from the other schema when adding foreign keys in the current schema from JDeveloper.

phpMyAdmin has two database tables under one heading

I am in the process of moving my local website onto a live webhost and am having some confusion while exporting my database tables from phpMyAdmin.
I attached a screenshot for reference.
It seems as if there are two database tables that are being used for my website, I'm not sure how this happened though. What I am trying to figure out is which database table is the one that I need to export along with all my Joomla files?
I went into my htdocs to check the configuration.php file and it says that the database prefix is xxx (i made this up) BUT when I go look into that database table (on phpMyAdmin) the dates of creation don't match up but are current in the "other database table."
Thank you for your help.
Screenshot for reference
To ascertain which is the correct database, create a new user via the Joomla interface, then have a look at the users Joomla table via phpMyAdmin, in both databases, to see in which database the user got created.
This information can be found in your site's admin at Site => Global Configuration => Server

mtlanius theme issue - Site move from development to production server

Site move error:
1) We moved the entire site (zip format) and extracted on server.
2) Created the database instance
3) Updated the database urls in config table and local.xml updated with new details.
When I check in browser, it executes site correctly but templates settings and sliders images tables are deleted and recreated with default entries, because "sql" folder has commands like :
DROP TABLE IF EXISTS {$this->getTable('mtslideshow_slide')};
CREATE TABLE {$this->getTable('mtslideshow_slide')}
DROP TABLE IF EXISTS {$this->getTable('mtslideshow_category')};
CREATE TABLE {$this->getTable('mtslideshow_category')}
Same for some content pages also footer etc are roll backed to default.
How to deal with this issue?
Here I'm facing this issue: http://demo.aarnasystems.net/magento/lacxodemo/index.php/
Logo slider, Amasty filter settings, footer design changes are rolled back.
Please let me know, how to avoid to reinitializing the modules on database connection.
Thanks,
Kiran
But you did copy the entire database to a new server? Because if in core_resource table there would be entry for mtslideshow extension with the same version that it had on the last server, then sql shouldn't be run again.

Resources