[10g] Best way to populate and update multiple workday calendars?

I would like to create multiple workday calendars, and be able to update them as needed. Each workday calendar would be for at most 5 years (right now), although it is possible that at some point in the future, I might want to extend that.
A workday calendar can apply to a single resource or a group of resources. Each individual is part of a resource group. What I'm thinking is that if an individual resource has an associated workday calendar, that calendar gets used, but if it doesn't, it uses the calendar of it's resource group, and if the group doesn't have one, the default calendar gets used. Theoretically, each resource could have its own workday calendar, and there would be probably 500 resources at most. In practice, many resources will have the same or similar workday calendars.
Each calendar will be based on one of 3 standards: all calendars days are work days, all days but weekends are workdays, or all days except weekends and holidays are workdays. (Weeks start on Sunday, and Saturday and Sunday are weekends.) The standard calendar would then be modified to create each unique calendar as needed. For example, if a resource was an employee, their calendar might be the standard of not working weekends or holidays, but could also include a one week vacation in February and a one week vacation July. I'm not sure what the best approach is for defining a calendar in the first place and then being able to update it as an employee decides on vacations (or whatever other situation might affect workdays).
Furthermore, I'd really like to be able to incorporate work hours, which could vary by day, though would likely be fairly standard. I don't know if this information belongs in the workday table, or as something separate to be combined with the workday table.
My ultimate purpose in doing all of this is to try to schedule a very large project amongst many resources.
Here is some sample data illustrating where I'm at so far:
CREATE TABLE     work_groups
(     group_id     VARCHAR2(5)     NOT NULL
,     group_name     VARCHAR2(25)     
,     group_desc     VARCHAR2(200)
,     CONSTRAINT     work_groups_pk     PRIMARY KEY (group_id)
INSERT INTO     work_groups
VALUES     ('A','Group A','Group A description');
INSERT INTO     work_groups
VALUES     ('B','Group B','Group B description');
INSERT INTO     work_groups
VALUES     ('C','Group C','Group C description');
INSERT INTO     work_groups
VALUES     ('D','Group D','Group D description');
CREATE TABLE     resources
(     resource_id     VARCHAR2(20)     NOT NULL
,     type          VARCHAR2(1)
,     description     VARCHAR2(200)
,     group_id     VARCHAR2(5)     
,     CONSTRAINT     resources_pk     PRIMARY KEY (resource_id)
,     CONSTRAINT     group_id_fk     FOREIGN KEY (group_id)
                         REFERENCES  work_groups (group_id)
INSERT INTO     resources
VALUES     ('A001','M','text here','A');
INSERT INTO     resources
VALUES     ('A002','M','text here','A');
INSERT INTO     resources
VALUES     ('A003','M','text here','A');
INSERT INTO     resources
VALUES     ('B001','M','text here','B');
INSERT INTO     resources
VALUES     ('B002','M','text here','B');
INSERT INTO     resources
VALUES     ('C001','M','text here','C');
INSERT INTO     resources
VALUES     ('C002','M','text here','C');
INSERT INTO     resources
VALUES     ('C003','M','text here','C');
INSERT INTO     resources
VALUES     ('D001','M','text here','D');
INSERT INTO     resources
VALUES     ('12345','L','text here','A');
INSERT INTO     resources
VALUES     ('12346','L','text here','A');
INSERT INTO     resources
VALUES     ('12347','L','text here','B');
INSERT INTO     resources
VALUES     ('12348','L','text here','B');
INSERT INTO     resources
VALUES     ('12349','L','text here','C');
INSERT INTO     resources
VALUES     ('12350','L','text here','C');
INSERT INTO     resources
VALUES     ('12351','L','text here','D');I'm not sure if I should have a separate table to define a relationship between a resource or resource group and a calendar id (each resource or group would only be able to be assigned 1 unique calendar id, though multiple resources/groups could share the same calendar id), or if I should add an extra column to each of the above tables to assign the calendar id.
CREATE TABLE     calendars
(     cal_id          NUMBER(4)     NOT NULL
,     cal_title     VARCHAR2(25)
,     cal_desc     VARCHAR2(200)
,     CONSTRAINT     calendars_pk     PRIMARY KEY (cal_id)
INSERT INTO     calendars
VALUES     (1,'Default','This is the default calendar to use for workdays');
INSERT INTO     calendars
VALUES     (2,'All Days','This calendar treats all days as workdays');
INSERT INTO     calendars
VALUES     (3,'Weekends Off','This calendar gives weekends off, but no holidays');
INSERT INTO     calendars
VALUES     (4,'Holidays Off','This calendar gives weekends and holidays off');
CREATE TABLE     workdays
(     cal_id          NUMBER(4)     NOT NULL
,     cal_date     DATE          NOT NULL
,     cal_year     NUMBER(4)
,     work_day     NUMBER(3)
,     work_date     DATE
,     work_week     NUMBER(2)
,     work_year     NUMBER(4)
,     work_days     NUMBER(5)
,     cal_days     NUMBER(6)
,     CONSTRAINT     workdays_pk     PRIMARY KEY (cal_id, cal_date)
,     CONSTRAINT     cal_id_fk     FOREIGN KEY (cal_id)
                         REFERENCES  calendars (cal_id)
);cal_id     - refers to calendars table
cal_date - the actual calendar date
cal_year - the actual calendar year for the given calendar date
work_day - workday in that work year (resets each year, starting at 1, is 0 if that calendar date is not a work day)
work_date - if a work day, the calendar date, if not, the calendar date of the last work day (or in the first week of the calendar, the next work day)
work_week - work week of the work date (numbered starting at 1 , reset each year at the first Sunday of the year, before first Sunday will have last week of previous year, and the first year of the calendar will have all days prior to Sunday included in the first week, so the first week of a calendar could be more than 7 days)
work_year - year of the work date
work_days - shop day of the work date (except in first week of the calendar, before first shop day is 0), starts at 1 (at the beginning of the calendar), cummulative (does not reset each year)
cal_days - calendar day of the work date, starts at 1 (at the beginning of the calendar), cummulative (does not reset each year)
Assuming the calendar starts on 1/1/2010 (these values are approximately correct--I just made my best guess to provide sample data):
INSERT INTO     workdays
VALUES     (3, TO_DATE('01/01/2010','mm/dd/yyyy'),2010,0,TO_DATE('01/04/2010','mm/dd/yyyy'),1,2010,0,1);
INSERT INTO     workdays
VALUES     (3, TO_DATE('01/02/2010','mm/dd/yyyy'),2010,0,TO_DATE('01/04/2010','mm/dd/yyyy'),1,2010,0,2);
INSERT INTO     workdays
VALUES     (3, TO_DATE('01/03/2010','mm/dd/yyyy'),2010,0,TO_DATE('01/04/2010','mm/dd/yyyy'),1,2010,0,3);
INSERT INTO     workdays
VALUES     (3, TO_DATE('01/04/2010','mm/dd/yyyy'),2010,1,TO_DATE('01/04/2010','mm/dd/yyyy'),1,2010,1,4);
INSERT INTO     workdays
VALUES     (3, TO_DATE('01/05/2010','mm/dd/yyyy'),2010,2,TO_DATE('01/05/2010','mm/dd/yyyy'),1,2010,2,5);
INSERT INTO     workdays
VALUES     (3, TO_DATE('12/23/2010','mm/dd/yyyy'),2010,250,TO_DATE('12/23/2010','mm/dd/yyyy'),51,2010,250,357);
INSERT INTO     workdays
VALUES     (3, TO_DATE('12/24/2010','mm/dd/yyyy'),2010,0,TO_DATE('12/23/2010','mm/dd/yyyy'),51,2010,250,358);
INSERT INTO     workdays
VALUES     (3, TO_DATE('01/01/2011','mm/dd/yyyy'),2011,0,TO_DATE('12/23/2010','mm/dd/yyyy'),51,2010,250,366);
INSERT INTO     workdays
VALUES     (3, TO_DATE('01/02/2011','mm/dd/yyyy'),2011,0,TO_DATE('12/23/2010','mm/dd/yyyy'),1,2011,250,367);
INSERT INTO     workdays
VALUES     (3, TO_DATE('01/03/2011','mm/dd/yyyy'),2011,1,TO_DATE('01/03/2010','mm/dd/yyyy'),1,2011,251,368);I've tried googling workday calendars and similar things, but I can't seem to find anything that fits my situation. If anyone could even point me in the right direction, I'd appreciate it.
I'm working in 10g (XE).
Edited by: user11033437 on Jul 19, 2011 3:05 PM
Also, I don't know if it would make more sense to just somehow store the days each resource/group doesn't work, and generate a workday calendar on the fly as needed, rather than trying to store possibly thousands of dates in the database??

Hi,
Interesting problem!
I'm not sure exactly what you want, however. Are you looking for a way to answer questions such as "For resource A001, what are the first 6 work days on or after January 4, 2010?" or "How many work days does resource A001 have between January 4 and January 12, 2010?" Post a few examples of the questions you might ask, and the results you would want, given the sample data you posted.
user11033437 wrote:
I would like to create multiple workday calendars, and be able to update them as needed. Each workday calendar would be for at most 5 years (right now), although it is possible that at some point in the future, I might want to extend that.
A workday calendar can apply to a single resource or a group of resources. Each individual is part of a resource group. Is a "resouce group" the same as a "work group"?
if a resource moves from one resource group to another, do you need to keep track of the historical information? For example, if resource A001 does not havfe its own calendar, and is part of work_group A on Juanuary 1, 2010, but then moves to work_group B on July 1, 2010, will you need to answer questions like "How many work days did A001 have in 2010", where you have to remember that the work_group A calendar apllied during the first half of the year, but the work_group B calendar was in use for the second half?
What I'm thinking is that if an individual resource has an associated workday calendar, that calendar gets used, but if it doesn't, it uses the calendar of it's resource group, and if the group doesn't have one, the default calendar gets used. Theoretically, each resource could have its own workday calendar, and there would be probably 500 resources at most. In practice, many resources will have the same or similar workday calendars.
Each calendar will be based on one of 3 standards: all calendars days are work days, all days but weekends are workdays, or all days except weekends and holidays are workdays. (Weeks start on Sunday, and Saturday and Sunday are weekends.) The standard calendar would then be modified to create each unique calendar as needed. For example, if a resource was an employee, their calendar might be the standard of not working weekends or holidays, but could also include a one week vacation in February and a one week vacation July. I'm not sure what the best approach is for defining a calendar in the first place and then being able to update it as an employee decides on vacations (or whatever other situation might affect workdays).It seems like the simplest thing would be to record only the exceptions to the base calendar. That is, given that the employee normally abides by the "no weekends or holidays" schedule, just enter 5 rows for that particular employee to mark the 5 work days he'll miss in February. If the emplyoee is going to work Saturdays in June (in addition to his regular schedule), then enter one row for each Saturday in June.
>
Furthermore, I'd really like to be able to incorporate work hours, which could vary by day, though would likely be fairly standard. I don't know if this information belongs in the workday table, or as something separate to be combined with the workday table. That depends on exactly what you want. Post a couple opf examples of questions you would want to answer, and the actual answers, given the sample data you post.
My ultimate purpose in doing all of this is to try to schedule a very large project amongst many resources.
Here is some sample data illustrating where I'm at so far:
CREATE TABLE     work_groups
(     group_id     VARCHAR2(5)     NOT NULL
,     group_name     VARCHAR2(25)     
,     group_desc     VARCHAR2(200)
,     CONSTRAINT     work_groups_pk     PRIMARY KEY (group_id)
INSERT INTO     work_groups
VALUES     ('A','Group A','Group A description');
INSERT INTO     work_groups
VALUES     ('B','Group B','Group B description');
INSERT INTO     work_groups
VALUES     ('C','Group C','Group C description');
INSERT INTO     work_groups
VALUES     ('D','Group D','Group D description');
CREATE TABLE     resources
(     resource_id     VARCHAR2(20)     NOT NULL
,     type          VARCHAR2(1)
,     description     VARCHAR2(200)
,     group_id     VARCHAR2(5)     
,     CONSTRAINT     resources_pk     PRIMARY KEY (resource_id)
,     CONSTRAINT     group_id_fk     FOREIGN KEY (group_id)
                         REFERENCES  work_groups (group_id)
INSERT INTO     resources
VALUES     ('A001','M','text here','A');
INSERT INTO     resources
VALUES     ('A002','M','text here','A');
INSERT INTO     resources
VALUES     ('A003','M','text here','A');
INSERT INTO     resources
VALUES     ('B001','M','text here','B');
INSERT INTO     resources
VALUES     ('B002','M','text here','B');
INSERT INTO     resources
VALUES     ('C001','M','text here','C');
INSERT INTO     resources
VALUES     ('C002','M','text here','C');
INSERT INTO     resources
VALUES     ('C003','M','text here','C');
INSERT INTO     resources
VALUES     ('D001','M','text here','D');
INSERT INTO     resources
VALUES     ('12345','L','text here','A');
INSERT INTO     resources
VALUES     ('12346','L','text here','A');
INSERT INTO     resources
VALUES     ('12347','L','text here','B');
INSERT INTO     resources
VALUES     ('12348','L','text here','B');
INSERT INTO     resources
VALUES     ('12349','L','text here','C');
INSERT INTO     resources
VALUES     ('12350','L','text here','C');
INSERT INTO     resources
VALUES     ('12351','L','text here','D');
It looks like all the rows have the same description. if description matters in this problem, wouldn't it be better to illustrate how it matters, by having different descrioptions that appeared in different outputs? On the other hand, if description doesn't play any role in this problem, then why include in the sample data at all?
I'm not sure if I should have a separate table to define a relationship between a resource or resource group and a calendar id (each resource or group would only be able to be assigned 1 unique calendar id, though multiple resources/groups could share the same calendar id), or if I should add an extra column to each of the above tables to assign the calendar id.
CREATE TABLE     calendars
(     cal_id          NUMBER(4)     NOT NULL
,     cal_title     VARCHAR2(25)
,     cal_desc     VARCHAR2(200)
,     CONSTRAINT     calendars_pk     PRIMARY KEY (cal_id)
INSERT INTO     calendars
VALUES     (1,'Default','This is the default calendar to use for workdays');
INSERT INTO     calendars
VALUES     (2,'All Days','This calendar treats all days as workdays');
INSERT INTO     calendars
VALUES     (3,'Weekends Off','This calendar gives weekends off, but no holidays');
INSERT INTO     calendars
VALUES     (4,'Holidays Off','This calendar gives weekends and holidays off');
What is is cal_id=1? How will it differ from the other three?
CREATE TABLE     workdays
(     cal_id          NUMBER(4)     NOT NULL
,     cal_date     DATE          NOT NULL
,     cal_year     NUMBER(4)
,     work_day     NUMBER(3)
,     work_date     DATE
,     work_week     NUMBER(2)
,     work_year     NUMBER(4)
,     work_days     NUMBER(5)
,     cal_days     NUMBER(6)
,     CONSTRAINT     workdays_pk     PRIMARY KEY (cal_id, cal_date)
,     CONSTRAINT     cal_id_fk     FOREIGN KEY (cal_id)
                         REFERENCES  calendars (cal_id)
);I suspect there's a simpler way, especially if there's a regular order to day types (e.g., people who get holidays off normally get weekeneds, too).
Perhaps you could have a table like this, that had one row per day:
CREATE TABLE  days
(       a_date      DATE     PRIMARY KEY
,     day_type    NUMBER (1)              -- 1=Weekend, 2=Holiday, 3=Other
INSERT INTO days (a_date, day_type) VALUES (DATE '2010-01-01', 2) /* New Years Day */;
INSERT INTO days (a_date, day_type) VALUES (DATE '2010-01-02', 1) /* Saturday */;
INSERT INTO days (a_date, day_type) VALUES (DATE '2010-01-03', 1) /* Sunday */;
INSERT INTO days (a_date, day_type) VALUES (DATE '2010-01-04', 3) /* Monday - back to work */;
...Another table (I'll call it work_sched) shows what resources work when:
CREATE TABLE  work_sched
(       p_key          NUMEBR     PRIMARY KEY     -- Arbitrary Unique ID
,     group_id         VARCHAR2 (5)          -- Exactly one of the columns group_id or ...
,     resource_id      VARCHAR2 (20)          --     ... resource_id will always be NULL
,     a_date              DATE
,     works_on     NUMBER (1)          -- works when days.day_type >= this value
,     remarks          VARCHAR2 (40)
);To indicate that work_group 'L' normally works on type 3 days only (that is, weekends or holidays):
INSERT INTO work_sched (group_id, a_date, works_on) VALUES ('L', NULL, 3);(Let's assume that p_key is populated by a trigger.)
The NULL in the a_date column indicates that this applies to all days, unless overridden by another row in the work_sched table. Instead of NULL, mabe some impossible date (such as Jan. 1, 1900) would be more convenient to indicate defaults.
Exceptions to this schedule would be indicated by other rows in work_sched. For example, if '12345' is the employee who's on vacation for a week in February:
INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-02-08', 4, 'Vacation');
INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-02-09', 4, 'Vacation');
INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-02-10', 4, 'Vacation');
INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-02-11', 4, 'Vacation');
INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-02-12', 4, 'Vacation');And if that same employee works Satudays in June:
INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-06-05', 1, 'Fiscal year-end crunch');
INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-06-12', 1, 'Fiscal year-end crunch');
INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-06-19', 1, 'Fiscal year-end crunch');
INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-06-26', 1, 'Fiscal year-end crunch');When finding the number of work days, we would join work_sched to days using both conditions:
ON   work_sched.date           = days.a_date
AND  work_sched.works_on  <= days.day_type
cal_id     - refers to calendars table
cal_date - the actual calendar date
cal_year - the actual calendar year for the given calendar date
work_day - workday in that work year (resets each year, starting at 1, is 0 if that calendar date is not a work day)
work_date - if a work day, the calendar date, if not, the calendar date of the last work day (or in the first week of the calendar, the next work day)
work_week - work week of the work date (numbered starting at 1 , reset each year at the first Sunday of the year, before first Sunday will have last week of previous year, and the first year of the calendar will have all days prior to Sunday included in the first week, so the first week of a calendar could be more than 7 days)
work_year - year of the work date
work_days - shop day of the work date (except in first week of the calendar, before first shop day is 0), starts at 1 (at the beginning of the calendar), cummulative (does not reset each year)
cal_days - calendar day of the work date, starts at 1 (at the beginning of the calendar), cummulative (does not reset each year)This is a lot of denormalized data. that is, you should be able to easily deduce cal_year from cal_date, but sometimes it is convenient to store denormalized data.
Assuming the calendar starts on 1/1/2010 (these values are approximately correct--I just made my best guess to provide sample data):
INSERT INTO     workdays
VALUES     (3, TO_DATE('01/01/2010','mm/dd/yyyy'),2010,0,TO_DATE('01/04/2010','mm/dd/yyyy'),1,2010,0,1);
INSERT INTO     workdays
VALUES     (3, TO_DATE('01/02/2010','mm/dd/yyyy'),2010,0,TO_DATE('01/04/2010','mm/dd/yyyy'),1,2010,0,2);
INSERT INTO     workdays
VALUES     (3, TO_DATE('01/03/2010','mm/dd/yyyy'),2010,0,TO_DATE('01/04/2010','mm/dd/yyyy'),1,2010,0,3);
INSERT INTO     workdays
VALUES     (3, TO_DATE('01/04/2010','mm/dd/yyyy'),2010,1,TO_DATE('01/04/2010','mm/dd/yyyy'),1,2010,1,4);
INSERT INTO     workdays
VALUES     (3, TO_DATE('01/05/2010','mm/dd/yyyy'),2010,2,TO_DATE('01/05/2010','mm/dd/yyyy'),1,2010,2,5);
INSERT INTO     workdays
VALUES     (3, TO_DATE('12/23/2010','mm/dd/yyyy'),2010,250,TO_DATE('12/23/2010','mm/dd/yyyy'),51,2010,250,357);
INSERT INTO     workdays
VALUES     (3, TO_DATE('12/24/2010','mm/dd/yyyy'),2010,0,TO_DATE('12/23/2010','mm/dd/yyyy'),51,2010,250,358);
INSERT INTO     workdays
VALUES     (3, TO_DATE('01/01/2011','mm/dd/yyyy'),2011,0,TO_DATE('12/23/2010','mm/dd/yyyy'),51,2010,250,366);
INSERT INTO     workdays
VALUES     (3, TO_DATE('01/02/2011','mm/dd/yyyy'),2011,0,TO_DATE('12/23/2010','mm/dd/yyyy'),1,2011,250,367);
INSERT INTO     workdays
VALUES     (3, TO_DATE('01/03/2011','mm/dd/yyyy'),2011,1,TO_DATE('01/03/2010','mm/dd/yyyy'),1,2011,251,368);I've tried googling workday calendars and similar things, but I can't seem to find anything that fits my situation. If anyone could even point me in the right direction, I'd appreciate it.
I'm working in 10g (XE).
Edited by: user11033437 on Jul 19, 2011 3:05 PM
Also, I don't know if it would make more sense to just somehow store the days each resource/group doesn't work, and generate a workday calendar on the fly as needed, rather than trying to store possibly thousands of dates in the database??That's what I was thinking, too.
Post some sample data (if it's not what you've already posted), a couple of sample questions, and the exact answers you want from each question given that sample data.

Similar Messages

  • Best way to control and run multiple (up to 20) processes independantly in LV

    Hi all, 
    I'm trying to build an application in LV to independantly control and run multiple (up to 20) processes, ie, it should be able to start and stop any of the processes at any given time. What would the best way to code for this? Off the top of my head would be to use a unique notifier to control each of the process, but I'm thinking that the code upkeep may be a handful with this number of notifiers being defined. Are there better ways of doing this?
    Appreciate any help and insight on this.Thanks a bunch in advance!
    Solved!
    Go to Solution.

    I forgot some more important questions:
    How large is your development group?
    How much "discipline" do you want to program into the Process Commands framework? For instance, is it OK for any VI to command a process into a certain state, or should your program generate a broken wire or run-time error if a command is sent from a non-authorized source?
    Where do your needs fall on this spectrum: simplicity that gets the job done and the product out the door and will probably not need much maintenance or upgrading, or flexible framework that will likely undergo multiple upgrades or fall into the hands of multiple developers?
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

  • Best way to backup and restore multiple iPhones??

    hi everyone,
    I am a pretty computer savvy person and I have a friend with an iPhone and a contact list who is having some problems with it... he wants me to backup and restore his phone on my mac as he has no computer of his own (his son set up his iPhone with music etc before and is back at school now)
    so I wonder what is the easiest way to create the backup of the contacts SMS etc?
    I have my mac with the latest iTunes running os x 10.5.6
    can iTunes create multiple backups of phones? should I look into a third part solution?
    thanks for any insight.

    You can sync multiple iPods and/or iPhones with iTunes on the same computer. iTunes will create a separate backup for each iPhone as long as each iPhone has a different name.
    In regards to iTunes content, an iPhone can be synced with an iTunes library on a single computer only. If you sync his iPhone with your iTunes content, the iTunes account logged in to with iTunes when syncing will be transferred to his iPhone - but not the password for the account. If he tries to access your iTunes account too many times with the incorrect password, your iTunes account will be placed on hold.
    You can create a backup of his iPhone when the iPhone is connected to iTunes. Control-click on the name of his iPhone in the iTunes source list under devices and select Back Up.
    You can restore the iPhone with iTunes on your computer from his iPhone's backup, but do not sync his iPhone with iTunes on your computer. This should restore the contact info from the backup. The backup includes data such as most iPhone settings, email account settings, contact info, SMS messages, recent calls, call favorites, photos available in the iPhone's Camera Roll, and 3rd party app settings and data created and stored by a 3rd party app.
    The backup does not includes iTunes content including apps, photos transferred from a computer to the iPhone, and calendar events.

  • The best way to deploy and redploy of a multiple SOA application

    Hi all,
    I'm looking for the best way to deploy and redeploy a multiple SOA application.
    1) The multiple SOA application contains many projects. Some projects depend on another projects.
    2) WebLogic is in productive mode.
    I wound like automaticly deploy and redeploy my multiple SOA application.
    Does anyone have any experience of this?
    Many thanks
    PG

    We use ant scripts to automatically deploy and redeploy multiple composites.
    The ant scripts gets shipped along with the SOA installation. The ant script that is used for the deployment is:
    ${oracle.home}/bin/ant-sca-deploy.xml
    You can also use the same for your deployment.

  • Best way to populate fields ARF OR PL/SQL

    I'm building a form that requires data from two tables. The tables have a 1:1 relationship and share the same field as a primary key (I know they should be one table if normalized but unfortunately the tables have to be separate for various reasons).
    The fields from the first table are populated using an ARF process before header
    An ARP(DML) then handles the updating of the data.
    What I want to know is what is the best way to populate the data from the second table.
    Is it best to use a customPL/SQL process to populate the 10 fields ?
    Or can I use a second set of DML processes ? Can you actually use two ARF processes on the same page?
    Would really appreciate any advice.
    Thanks

    I find using VIEWS with 'INSTEAD OF' triggers very useful in this situation where you are dealing with more than one table. The view would just be the two tables joined and in the trigger you would write your own custom DML code to update the two tables.
    Then as far as APEX is concerned, it's just a standard form on a table / view.
    Hope this helps,
    Anthony.
    http://anthonyrayner.blogspot.com

  • What is the best way to secure and harden a Macbook Pro against unwanted surveillance?

    What is the best way to secure and harden a Macbook Pro against unwanted surveillance? Tor, VPN, Little Snitch, etc. This would be for that latest version of Mavericks.

    djbabybokchoy wrote:
    Nothing specific, just speaking in general. Ex-wives, governments, bad guys...anyone really. I'm just looking to make my Mac a bit more private and secure, especially when on public networks.
    Governments and ex's will/may have recourse to the legal process (or in the case of the Gov they can choose to ignore the legal system if they feel like it) when they want to see something of yours, good luck hardening your Mac against that. The best way to avoid the possibility of snooping over public networks is to avoid them but if you can't then Kappy's suggestion will help.
    Strong passwords (everywhere) and don't use the same password in multiple locations.
    If you really want to secure your home wireless use Mac address connection authentication, do not allow unknown Mac addresses to connect. It's much stronger than a WPA password alone.

  • Can you suggest a best way to store and read arabic from oracle database?

    Hi ,
    can you suggest a best way to store and read arabic from oracle database?
    My oracle database is Oracle Database 10g Release 10.1.0.5.0 - 64bit Production on unix HP-UX ia64.
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CHARACTERSET WE8ISO8859P1
    I have presently stored the data in nvarchar2 field. But i am not able to display it correctly.

    Using the national characterset should work but there are other factors that you have to consider when working with NCHAR/NVARCHAR2/NCLOB.
    If possible, changing the characterset is usually the best solution if it's a possiblity for you.
    For more info:
    Dear Gurus: Can u pls explain the difference between VARCHAR2 & NVARCHAR2??

  • What is the best way to get an update/status on my MBP repair?

    Apple store in Nashville had to send one of my machines to their repair depot in Tennessee due to the lid failing to open/close/latch properly. Any suggestions on the best way to get an update on the status of the repair (besides parking on hold with the store)? I was told it would take 4-5 business days and we are past that by two days now...
    TIA --
    Trent

    http://www.apple.com/support/repairstatus doesn't show QuickDrops (reference numbers start with the letter 'Q') - the store had to use this because Apple's back office systems were "down' when I dropped the machine off. Thanks for the input....

  • What is the best way to store and search 2D data

    Hi,
    There is a set of data (~10k records ) in 2D dimension.
    like this :
    Col 1, Col 2, Col3....
    What is the best way to store and search those records ?
    Thanks in advance
    Wilson

    Hi,
    Either userObjet[][] if you know how much data you have, and the data size is fixed, or use a list of lists. E.g. A Vector of Vectors (some will probably say that you should use an ArrayList instead, and that could be the case, but it sounds like you would want to display the data later on, and a DefaultTableModel (for JTables) uses a Vector as data holder).
    Kaj

  • What is the best way to scan and sort old photos in iPhoto

    What is the best way to scan and sort old photos in iPhoto?  They do not have digital dates.

    Hey Chicago Sue,
    Once you scan them and have them on your desktop. You should use Automator and assign the common IPTC tags to the images, so that when you do import them into iPhoto, they get recorded.
    Here is an example of an action in Automator:

  • How is the best way to backup and organize Adobe layered .PSD files on iMac OSX maverick?

    How is the best way to organize and backup Adobe layered PSD files on iMac desktop OSX maverick?
    I lost all my Adobe Photoshop files + everything else on my IMAC when it crashed. They reinstalled Operating System.  But now i must install programs such as MS Word & Adobe indesign suite.
    Please help me determine what is the bestway to backup Adobe layered  PSD files? I believe these are my choices to be assured this doesn't ever hapen again. Please comment.
    Buy Apple Airport Time capsule $280.  But I am not sure if it can store PSD layers. Can it or do you have to have Apple Apperture  software to act be sure layers are saved
    I had had trouble getting Adobe Cloud to sync to save files and so just trusted my computer to not ever crash.  Any hints on this procedure
    Are there any hints on PhotoShop image organization for a current IMac usser ?
    Please help.
    Teann  ucreateit

    My backup plan is to use Time Machine to make a backup to an external disk drive plus I also do a clone of my system disk. So far between the bootable clone and the Time Machine backup this plan has covered all of my needs.
    Allan

  • HT1364 I just bought a new PC and now have ample space on my C drive to house my music Library which is currenlty installed on a external drive.  What is the best way to install and move the itunes library to my C Drive?

    I just bought a new PC and now have ample space on my C drive to house my music Library which is currenlty installed on a external drive.  What is the best way to install and move the itunes library to my C Drive?

    If the entire library is on the external drive then simply copy the iTunes folder into <User's Music> on the new computer, then install iTunes. If you've already installed iTunes you will want to remove the empty iTunes folder in <User's Music> first.
    If it turns out you only have the media folder on the external drive then take a look at this post...
    tt2

  • Best way to import data to multiple tables in oracle d.b from sql server

    HI All am newbie to Oracle,
    What is the Best way to import data to multiple tables in Oracle Data base from sql server?
    1)linked server?
    2)ssis ?
    If possible share me the query to done this task using Linked server?
    Regards,
    KoteRavindra.

    check:
    http://www.mssqltips.com/sqlservertip/2011/export-sql-server-data-to-oracle-using-ssis/
          koteravindra     
    Handle:      koteravindra 
    Status Level:      Newbie
    Registered:      Jan 9, 2013
    Total Posts:      4
    Total Questions:      3 (3 unresolved)
    why so many unresolved questions? Remember to close your threads marking them as answered.

  • Best way to declare and use internal table

    Hi all,
    As per my knoledge there are various techeniques (Methods) to declare and use the internal tables.
    Please Suggest me the Best way to declaring and using internal table ( WITH EXAMPLE ).
    Please Give the reason as well how the particular method is good ?
    What are benefits of particular method ?
    Thanks in advance.
    Regards
    Raj

    Hello Raj Ahir,
    There are so many methods to declare an internal table.
    Mainly I would like to explain 2 of them mostly used.
    1. Using Work Area and
    2. With header line.
    This with header line concept is not suggestable, because, when we shift the code to oops concept.. it doesn't work... Because OOPS doesn't support the Headerline concept...
    But it all depends on the situation.
    If you are sure that your program doen't make use of the OOPs concept, you can use HEADER LINE concept. If it invols OOPs use WORK AREA concept.
    Now I'l explain these two methods with an example each...
    1. Using Work area.
    TABLES: sflight.
    DATA: it_sflight TYPE TABLE OF sflight.
    DATA: wa_sflight LIKE LINE OF it_sflight.
    SELECT *
      FROM sflight
      INTO it_sflight
      WHERE <condition>.
      LOOP AT it_sflight INTO wa_sflight.
        WRITE / wa_sflight.
      ENDLOOP.
      In this case we have to transfer data into work area wa_sflight.
    We can't access the data from the internal table direclty without work
    area.
    *<===============================================
    2. Using Header line.
      DATA: BEGIN OF it_sflight OCCURS 0,
              carrid LIKE sflight-carrid,
              connid LIKE sflight-connid,
              fldate LIKE sflight-fldate,
            END OF it_sflight.
      SELECT *
        FROM sflight
        INTO it_sflight
        WHERE <condition>.
        LOOP AT it_sflight INTO wa_sflight.
          WRITE / wa_sflight.
        ENDLOOP.
    In this case we can directly access the data from the internal table.
    Here the internal table name represents the header. for each and every
    interation the header line will get filled with new data. If you want to
    represnent the internal table body you can use it_sflight[].
    *<======================================================
    TYPES: BEGIN OF st_sflight,
             carrid LIKE sflight-carrid,
             connid LIKE sflight-connid,
             fldate LIKE sflight-fldate,
           END OF st_sflight.
    DATA: it_sflight TYPE TABLE OF st_sflight,
          wa_sflight LIKE LINE OF it_sflight.
    This is using with work area.
    DATA: it_sflight LIKE sflight OCCURS 0 WITH HEADER LINE.
    This is using header line.
    <b>REWARD THE POINTS IF IT IS HELPFUL.</b>
    Regards
    Sasidhar Reddy Matli.
    Message was edited by: Sasidhar Reddy Matli
            Sasidhar Reddy Matli

  • Best way to sync and view other videos formats

    hi all,
    me and my wife both have iphones and  have recenly bought a ipad and apple tv. I am getting a bit frustrated as i cant work out the best way to store and easily view my old pics and video files.
    the shops salesman convinced me to by knowhow cloud which seemed brilliant but it wont back up al photos so ill go back to the shops. its just app on the phone that shows all pics stored on my windows pc
    i also want to know what way is best to store and view some .mod files or moi files. I have air video which works great for divx files but not the ones i want ex my video camera
    any help greatly received
    main reason for the ipad is to create a central hub for viewing pics and videos on and streaming to tv in background when we have parties or just remenicising
    alistair

    Unfortunately, the playback of non-iOS-native video formats (everything except mov / mp4 / m4v) is horrible through Apple TV and it, because of the inherent speed restrictions of Wi-Fi, can't be helped other than:
    - pre-converting your video files to mov / mp4 / m4v before playing them. (THis is the best solution.) For this, you will want to use the absolutely best and fastest video converter, the free(!!!) HandBrake. Don't ever think of paying any money for any video converter - most other titles are way inferior to HandBrake. (See http://www.iphonelife.com/blog/87/benchmark-excellent-multimedia-converter-handb rake-vs-commercial-apps for more info on this q.)
    - using a VGA or HDMI adapter and connecting your TV directly to the iPad.
    In the thread at https://discussions.apple.com/message/18697551?ac_cid=sa123456#18697551 , we've also discussed this problem (AirPlay vs. cabled playback)

Maybe you are looking for

  • Copying photos from one computer to another, with descriptions

    After editing photo descriptions and locations in iPhoto, it is desireable to be able to copy them to iPhoto on another computer, with the associated photo descriptions and locations.  In principle, this is possible by selecting all desired photos, t

  • Wbs in customer/vendor and gl document lines during initial balance upload

    Hi gurus, Can we enter wbs in customer/vendor and gl documents lines during upload of opening balance upload? What is the impact of this?? Do we need to run project settlement on 1st day after go live to get data in cost center from ar, ap and gl????

  • Passing Page Parameters back to a Form

    Hi, I was thinking how I could retain a value that I choose from a Combobox that comes from an LOV. When I press on my button it refreshes the page (tabs) but the field with the LOV populated COMBOBOX keeps resetting itself back to the original value

  • IMac G4 plays through one speaker on stereo system through headphone jack

    Ok so for some reason the headphone jack won't allow me to play music on my stereo in surround sound. It just plays music through one speaker. i have adjusted the balance on my amp but now i can only play through 2 out of 5 speakers? help please! hea

  • PIR issue

    Hi all, We have the header material as type KMAT. For this material demand is coming through sales order. When we run MRP planned order is generated for lower level i.e semi finished. When we convert it to production order and complete the prod. orde