Best way to create table at remote database side
Hi ..
I have one table around 60GB and i want to sync this table with remote side database table.
Options
1> Creat DB link and then fetch data.
Problem <<Performace issue and May be chance of Network chock >>
2> Using DBMS_REDFINITION package.
Problem <<Again we need 60GB Extra sapce to create New table and Related indexes >>
Can any one suggest me by any other way we can sync table at remote side with source with out adding space and no down time?
Thanks
Mahantesh
Still a duplicate thread. Still needs to be moved to the correct forum.
Similar Messages
-
What is the best way to create tables in Illustrator cs5
Hello everyone,
I am currently working on making a project board for a printer. It needs to have rows and colums so that a project can be tracked and assigned on a day by day basis. I figured I would just creat a table for this. Is there a good way to create tables in Illustrator cs5?1. Copy Excel table and paste in illustrator and Clipping Mask -> Release
2. Ungroup! Group or may not be released, so please ungroup twice.
3. Excute javascript.
* Document mode must be CMYK.
* All Layer On & Unlock!
* Excel table as shown above the line must be black in color.
http://uadream0.blog.me/70144704771 <--- javascript download blog -
Best way to copy table from one database to any other database
I need to write an application to perform database table copy from one kind of database to another kind of database.
I just wrote a simple JDBC program which essentially does the something like below:
PreparedStatement statement = null;
ResultSet rs = null;
try
System.out.println("insertSQL:" + insertSQL.toString());
statement = target.prepareStatement(insertSQL.toString());
System.out.println("selectSQL:" + selectSQL.toString());
rs = source.executeQuery(selectSQL.toString());
int rows = 0;
while (rs.next())
rows++;
for (int i = 1; i <= columns.size(); i++)
statement.setString(i, rs.getString(i));
statement.execute();
System.out.println("Copied " + rows + " rows.");
But problem with this one is that it takes lot of time( more than 60 mins) for 100k records transfer. Would there be any faster way to do this?
TIA...Thanks...
I am using now batch update mechanism and set the fetchsize of resultSet cursor.
Now I need to copy a table with almost 10 million records to the target database. My program works fine but it takes more than 3 hours.
I am copying from Postgres table to MS SQL server table.
Is there any other way or more better appraoch to make this more faster?
TIA.. -
What is the best way to create a database schema from XML
What is the best way to create a database schema from XML?
i have a complex XML file that I want to create a database from and consistently import new XML files of the same schema type. Currently I have started off by mapping the XSD into Excel and using Mysql for Excel to push into MySQL.
There must be a more .net microsoft solution for this but I cannot locate the topic and tools by searching. What are the best tools and way to manage this?
Taking my C# furtherHi Saythj,
When mentioning "a database schema from XML", do you mean the
XML Schema Collections? If that is what you mean, when trying to import XML files of the same schema type, you may take the below approach.
Create an XML Schema Collection basing on your complex XML, you can find
many generating tools online to do that.
Create a Table with the above created schema typed XML column as below.
CREATE TABLE youTable( Col1 int, Col2 xml (yourXMLSchemaCollection))
Load your XML files and try to insert the xml content into the table above from C# or some other approaches. The XMLs that can't pass the validation fail inserting into that table.
If you have any question, feel free to let me know.
Eric Zhang
TechNet Community Support -
What the best way to create User defined table with ADDON purpose
Hi folks, how are you ?
I´m beginner in development to business one, and I m studying to develop ISV addons.
But, during my exercises and analisys, I learned that have two ways to create tables and fields in business one. One way is throght by wizard in business one using Tools Menu > Configuration Tools > User Defined Tables >
Obs: I ´m using Business One Patch Level 9.
Other way, is create the tables and fields using DI API
But, my question is. When I develop one addon, or one UDO form that uses one set of user defined tables or used defined fields that where created by the first way (by wizard in B1), how I deploy this in other business one installation ? The package process will ensure the creation of this tables in another enviroment or I must implement the creation of user defined tables using DI API so that this code is called during the installation?
If in cases of addon develop I must use DI API to create user defined tables, How can I use my classes with this responsibility in package process ?
Thanks my friends.Hi Renan,
You just need to put your logic in to the startup of your application, after you've established your connection to the UI API and DI API. All this will be triggered in the constructor of your main class.
namespace MyNamespace
public class MyAddon
bool runAddon = true;
bool initialised = false;
const string ADDON_NAME = "My Addon";
public static void Main()
MyAddon addOn = new MyAddon();
if(runAddon)
System.Windows.Forms.Application.Run();
else
Application.Exit();
public MyAddon()
// Connect to SBO session for UI
if(!SetApplication()) runAddon = false;
private bool SetApplication()
// Code goes in here to establish UI API and DI API connections
// See SDK samples for examples
// You should also define and filter the UI API events your addon will trap at this stage and create any menus
// Call your routine to check if the required UDFs/UDTs exist on this company
initialised = CheckInitialisation();
if (!initialised)
// AddOn not yet intialised on this company so prompt the user to run the intialisation process
int iResponse = app.MessageBox("The " + ADDON_NAME + " addon will now create all required fields and tables."
+ System.Environment.NewLine + System.Environment.NewLine
+ "WARNING: It is strongly recommended that all other users are logged out of this company "
+ "before running this process. Are you sure you wish to continue?", 2, "Yes", "No", "");
if (iResponse == 1) initialised = InitialiseAddOn(); // Call your routine to create the objects
return true;
Kind Regards,
Owen -
What is the best way to create a SSRS 2005 Line Chart Report for a 12 month period?
I'm looking for advice on how to create a SQL Server 2005 query and line chart report for SSRS 2005.
I need to display the peak number of patients assigned to a medical practice each month for a 12 month period based on the end-user selecting a
single month and year.
I've previously created a report that displays all patients assigned to the practice for any single month but I’m looking for advice on how to
how to produce a resultset that shows the peak number of patients each month for a 12 month period. I thought about creating a query that returns the peak count for each month (based on my previously created report which displays all patients assigned to the
practice for any single month) and then use a UNION statement to join all 12 months but I'm sure that isn't the most efficient way to do this. The other challenge with this approach (twelve resultsets combined via a UNION) is that the end-user needs to be
able to select any month and year for the parameter and the report needs to display the 12 month period based on the month selected (the month selected would be the last month of the 12 month period).
For the report I’ve previously created that displays all patients assigned to the practice for any single month, the WHERE statement filters the
resultset on two fields:
Start Date - The date the patient was assigned to the practice. This field is never null or blank.
End Date - The date the patient left the practice. This field can be null or blank as active patients assigned to the practice do not have an End Date. When the patient
leaves the practice, the date the patient left is populated in this field.
Using these two fields I can return all patients assigned to the practice during Nov 2012 by looking for patients that meet the following criteria:
start date prior to 11/30/2012 (using the last day of the month selected ensures patients added mid-month would be included)
AND
end date is null or blank (indicates the patient is active) OR the end date is between 11/1/2012 -11/30/2012 (returns patients that leave during the month
selected)
Regarding the query I need to create for the report that displays the peak count each month for 12 months, I'm looking for advice on
how to count patients for each month the patient is assigned to the practice if the patient has been assigned for several months (which applies to most patients). Examples are:
John Doe has a start date of 6/01/2012 and an End Date of 10/07/2012
Sally Doe has a start date of 8/4/2012 and no End Date (the patient is still active)
Jimmy Doe has a start of 7/3/2012 and an End Date of 9/2/2012
Given these examples how would I include John Doe in the peak monthly count each month for May - October, Sally Doe in the peak monthly count for
August - December and Jimmy Doe in the peak monthly count for July – Sept if the end-user running the report selected December 2012 as the parameter?
Given the example above and the fact I'm creating a line chart I think the best way to create this report would be a resultset that looks like
this:
Patient Name
Months Assigned
John Doe
June 2012
John Doe
July012
John Doe
Aug 2012
John Doe
Sept 2012
John Doe
Oct 2012
Sally Doe
Aug 2012
Sally Doe
Sept 2012
Sally Doe
Oct 2012
Sally Doe
Nov 2012
Sally Doe
Dec 2012
Jimmy Doe
July 2012
Jimmy Doe
Aug 2012
Jimmy Doe
Sept 2012
From the resultset above I could create another resultset that would count\group on month and year to return the peak count for each month:
June 2012 - 1
July 2012 – 2
Aug 2012 - 3
Sept 2012 - 3
Oct 2012 - 2
Nov 2012 - 1
Dec 2012 - 1
The resultset that displays the peak count for each month would be used to create the line chart (month would be the X axis and the count would
be the y axis).
Does this sound like the best approach?
If so, any advice on how to create the resultset that lists each patient and each month they were assigned to the practice would be greatly appreciated.
I do not have permissions to create SPs or Functions within the database but I can create temp tables.
I know how to create the peak monthly count query (derived from the query that lists each patient and month assigned) as well as the line chart.
Any advice or help is greatly appreciated.Thanks for the replies. I reviewed them shortly after they were submitted but I'm also working on other projects at the same time (hence the delayed reply).
Building a time table and doing a cross join to my original resultset gave me the desired resultset of the months assigned between dates. What I can't figure out now is how to filter months I don't want.
Doing a cross join between my original resultset that had two dates:
08/27/2010
10/24/2011
and a calendar table that has 24 rows (each month for a two year period)
my new resultset looks like this:
I need to filter the rows in yellow as the months assigned for stage 3 that started on 8/27/2010 should stop when the patient was assigned to stage 4 on 10/24/2011.
You'll notice that Jan - Sept 2011 isn't listed for Stage 4 assigned on 10/24/2011 as I included a filter in the WHERE clause that states
the Months Assigned value must be greater than or equal to the date assigned value.
Any advice would be appreciated. -
What is the best way to create CRUD datagrids
What is the best way to create CRUD datagrids that tell CF
components to update sql tables. I find that I'm having to vreate
all these columns with custom properites and its a bit of a chore:
<mx:DataGridColumn id = "NatWest" dataField="NatWest"
headerText="NatWest" editable="false"
wordWrap="true"
textAlign="right"
headerStyleName="centered"
labelFunction="price_labelFuncNatWest"
sortCompareFunction="price_sortCompareFunc">
I don't really want to use any wizards as I want control over
my code.Hi Saythj,
When mentioning "a database schema from XML", do you mean the
XML Schema Collections? If that is what you mean, when trying to import XML files of the same schema type, you may take the below approach.
Create an XML Schema Collection basing on your complex XML, you can find
many generating tools online to do that.
Create a Table with the above created schema typed XML column as below.
CREATE TABLE youTable( Col1 int, Col2 xml (yourXMLSchemaCollection))
Load your XML files and try to insert the xml content into the table above from C# or some other approaches. The XMLs that can't pass the validation fail inserting into that table.
If you have any question, feel free to let me know.
Eric Zhang
TechNet Community Support -
What is the best way is to implement a friend database
Hi
I was wondering what the best way is to implement a friend database. E.g. facebook where a person can have friends.
Would you create a person table and a friendtable where each entry in the friendtable contains the owners personid and the friends personid?
I would like to to view the picture of Darwin Cabigas Cano?
Please..We call it as Database Design.
Yes, you can have one table as Person and Friends table which should refer to your Person table.
It should look like below: (Reference:
Facebook Style Friend Request System Database Design )
-Vaibhav Chaudhari -
Best way to create a conact list from the user profile properties
We have a customer looking for a phone book utility, starting with a table showing main user information and with some search options. We would like o base it on the user profile properties and not to create an indipendent studion record browser porlet.
What is best way to create a conact list from the user profile properties ?I did something like this using search. It can get messy, so you need to take care with it.
* Identify the properties you want to make accessible to search (ex: name, etc.)
- add them to the user property map
- flag them as searchable
* I broke down and used the native server API. I'd still suggest this approach.
* Write some simple code to do vcard export if you like
(my code is all in vb.net)
I really believe this is the "right" approach, but honestly, this was a bit painful and has been
messy for us given some other business issues. (to my chagrin we have users with 2-letter last
names...)
I have code you're welcome to poke at, but it's more or less slapped together and has various
different search methods commented out so you can see how I tinkered w/ the remote vs. server
API.
If you'd like it mail me at [email protected] and I'll send you a zipped copy w/ a
readme. I hope it may be useful to you as both a starting reference. -
Need help knowing best way to create record
What is the best way to create a new record... I have a form pulling info from about 20 tables. When the user wants to create a new record, I want a new form to open and allow them to select the values based on the foreign key fields so it makes more sense than just random numbers.
The problem I'm having is knowing when and how to insert. Should the "new record" form be it's own database block that inserts from within it. (but then when they go back to the original form they must requery to see the new value.) Or what about copying each field back to the original form. I'm new to forms and would appreciate any insight and tips.would a wire like this help me?
I doubt it. You want FireWire.
Take look at the Canopus ADVC300. It comes with a nice Macintosh application that works flawlessly with iMovie 06.
http://www.canopus.com/products/ADVC300/index.php
Yes, it does cost more but it works. -
Error while Creating form on remote Database
Hi All
I m getting error while creating form on remote database thru
Database link
Line/Column Error
7099/21 PLS-00454: with a returning into clause, the table
expression cannot be remote or a subquery
7099/9 PL/SQL: SQL Statement ignored
7749/16 PLS-00454: with a returning into clause, the table
expression cannot be remote or a subquery
7749/9 PL/SQL: SQL Statement ignored
and statement at line specified is insert statement. and at end
of insert statement Returning caluse is there as follows
RETURNING ROWID INTO "_ROWID";
This returning clause is causing error. Does anybody knows how
to handel it??
Thanks
YogeshYogesh
I haven't seen the ora-03116 problem.
What version of Portal are you running? Are the databases at the same version? Does your table have longs or anything strange in it?
Can you query the table via the synonyms and link in sqlplus as the application schema? This is a good test because it eliminates Portal.
You should try setting up synonyms etc for the emp table. If you still get the problem then Oracle may be able to replicate it. If not, then there's sth funny about your table maybe.
I agree with Vishnu about creating everything in sqlplus. I create all my links and synonyms in sqlplus. They are all public. I have 2 synonyms: one takes you over the link the other takes you to the right schema. It's flexible and it works.
data database: D grants to P (local schema) on table T
public syn T = D.T (sys) (get the right schema)
portal dbase : public db link to data database connecting as P
public syn T = T@dblink (sys) (over the link)
P is a schema created in both databases.
Test is: P in portal dbase can "select * from T" and gets the right data.
I never, ever refer to a schema when defining a form. ie. never P.T or D.T or whatever. I always refer simply to a synonym. For the above my form would be defined simply on the table T.
Hope this helps
Greg -
Best way to create and keep track of objects on the fly?
I'm making a script interpreter and am having some trouble with variables. Basically I have a class Variable. Whenever my interpreter finds the right code it should create a new Variable object with two parameters, the value and the name. Later these Variables have to be accessed of course. I thought of using an array instead but then the number of variables is limited.
So what is the best way to keep a sort of database for Variables? I thought a linkedlist might be good here but maybe there's an easier option?
Thanks in advance!I think this is exactly what I need. Thanks for the reply!
-
Best way to create menus [was: Queston]
What technique or is a template used to create the menu for this Adobe page? I have been studying web development (reading and tutorials) and the sections are always short on creating menus. Mostly, covers creating buttons with behaviors in Fireworks and inserting them into Navigation Bars and Tables? What are the best ways to create menus?
[Subject line edited by moderator]Howdy,
The best way is definately not the Fireworks way. Never has been.
Take RJweb's advise and check out the PVII Menu Magic. I use that all the time and its very easy to customize with its well laid out CSS files. I havn't found anything easier to use and customize yet.
Brad Lawryk
Community Expert: Dreamweaver
Usergroup Manager: Northern British Columbia Adobe Usersgroup -
Best way to create an html from application
I need connect to an Oracle database and generate a static report from the result Query.
Do you know what can be the best way to create this html file ?
There is exists some html library to use?
Thanks in advanceyou don't need a library. html is verry easy to use. you only have to write text to a file with html-tags.
hope it helps -
Best way to create a UI for a Composite app
Hi all,
What is the best way to create a UI for a Composite app that we are developing using CAF and GP.
1) WebDynPro Callable Object that implements GP Interface.
2) Consume the Application services(exposed as web services) in WebDynPro app
3) Creating a WebDynPro Model for the CAF Services.
4) Create a WebDynPro Application Callable Object (If yes how can we map the input and output params b/n WebDynPro app CO and CAF Application service).
Plz do remember we are using GP here.
Thanks in advance,
Best Regards,
Sudheer.Hi,
You can use Web Dynpro or Visual Composer for designing UI for your CA.
1) WebDynPro Callable Object that implements GP Interface.
You can use Web Dynpro Component CO to use a single Web Dynpro component in your GP Activity.
4) Create a WebDynPro Application Callable Object :This is for entire Web Dynpro Application(multiple components).
2) Consume the Application services(exposed as web services) in WebDynPro app :
3) Creating a WebDynPro Model for the CAF Services.
For example, in updating operations first we have to get the existing data from Database.For getting this data you can use application services in your Web Dynpro component.Later expose this WD component as CO insert in a GP activity.
For creating operations, you can use Web Service CO(Application Service) directly in GP Activity.
These links are useful for you.
[link1|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a00c07d0-61e0-2a10-d589-d7bc9894b02a]
[link2|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10b99341-60e0-2a10-6e80-b6e9f58e3654]
[lnk3|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1078e3b0-ec5d-2a10-f08a-c9b878917b19]
Maybe you are looking for
-
Convert video files to editable format to use on PrPro CS4
Hello, I'm using Adobe Premiere Pro CS4 v4.2.1 (I can't use CS5 because I have a 32-bit system). I'm running it on HP Pavilion dv9750, Windows 7, 2.2GHz Intel Core 2 Duo processor T7500, 2GB RAM (DDR2) and NVIDIA GeForce 8400M GS. I'm planning to cre
-
Takes/Comp "dead" area at beginning of swipe
In Logic 8, went to fix a vocal part in a track previously recorded in Logic 7. I did not have "Replace" enabled so it was recorded as a new "Take". A little startled but I did some manual diving and saw what was happening. But... Wherever I start my
-
Hi all, I need to update info type 0001. If BTRTL is '0002', i need to set PERSG = 9 and PERSK = U1. but my problem is that these fields PERSG and PERSK are disabled even in the change mode in transaction PA30. so i cannot record that. t
-
Delete Repository Service from portal
Hi. I want to completely remove a custom Repository Service from my NW04s/SP9 Portal. I already deleted the service config and undeployed the containing par. What else? Jan
-
I am currently building a site with flash / dreamweaver and am attempting to add two or three combo boxe that will display data and pictures from a database. Any ideas or assistance would be much appreciated... Many thanks in advance