Case Study: Demo Database cannot be restarted - What to do

I just got a customer message 1424434 2008 where the MaxDB DB for a SAP demo installation.
The database (MaxDB 7.5) won't start up anymore.
1. Problem description and analysis:
In the knldiag file there are messages like this:
2008-03-02 23:44:16     7     20207 RTE      Kernel state changed from STARTING to ADMIN
======================================= end of startup part ====================
2008-03-02 23:44:16     7     11570 startup  complete
2008-03-02 23:44:18    21     12821 TASKING  Thread 21 starting
2008-03-02 23:44:18    21     11597 IO       Open '/sapdb/XXX/sapdata/DISKD0001' successfull, fd: 5
2008-03-02 23:44:18    21     11565 startup  DEVi started
2008-03-02 23:44:18    22     12821 TASKING  Thread 22 starting
2008-03-02 23:44:18    22     11597 IO       Open '/sapdb/XXX/sapdata/DISKD0001' successfull, fd: 11
2008-03-02 23:44:18    22     11565 startup  DEVi started
2008-03-02 23:44:18    15     11000 vattach  '/sapdb/XXX/sapdata/DISKD0001' devno 1 T61 succeeded
2008-03-02 23:44:18    23     12821 TASKING  Thread 23 starting
2008-03-02 23:44:18    23     11597 IO       Open '/sapdb/XXX/sapdata/DISKD0002' successfull, fd: 13
2008-03-02 23:44:18    23     11565 startup  DEVi started
2008-03-02 23:44:18    24     12821 TASKING  Thread 24 starting
2008-03-02 23:44:18    24     11597 IO       Open '/sapdb/XXX/sapdata/DISKD0002' successfull, fd: 14
2008-03-02 23:44:18    24     11565 startup  DEVi started
2008-03-02 23:44:18    15     11000 vattach  '/sapdb/XXX/sapdata/DISKD0002' devno 2 T61 succeeded
2008-03-02 23:44:18    25     12821 TASKING  Thread 25 starting
2008-03-02 23:44:18    25     11597 IO       Open '/sapdb/XXX/sapdata/DISKD0003' successfull, fd: 16
2008-03-02 23:44:18    25     11565 startup  DEVi started
2008-03-02 23:44:18    26     12821 TASKING  Thread 26 starting
2008-03-02 23:44:18    26     11597 IO       Open '/sapdb/XXX/sapdata/DISKD0003' successfull, fd: 17
2008-03-02 23:44:18    26     11565 startup  DEVi started
2008-03-02 23:44:18    15     11000 vattach  '/sapdb/XXX/sapdata/DISKD0003' devno 3 T61 succeeded
2008-03-02 23:44:18    27     12821 TASKING  Thread 27 starting
2008-03-02 23:44:18    27     11597 IO       Open '/sapdb/XXX/sapdata/DISKD0004' successfull, fd: 19
2008-03-02 23:44:18    27     11565 startup  DEVi started
2008-03-02 23:44:18    28     12821 TASKING  Thread 28 starting
2008-03-02 23:44:18    28     11597 IO       Open '/sapdb/XXX/sapdata/DISKD0004' successfull, fd: 20
2008-03-02 23:44:18    28     11565 startup  DEVi started
2008-03-02 23:44:18    15     11000 vattach  '/sapdb/GSC/sapdata/DISKD0004' devno 4 T61 succeeded
2008-03-02 23:44:18    29     12821 TASKING  Thread 29 starting
2008-03-02 23:44:18    29     11597 IO       Open '/sapdb/XXX/sapdata/DISKD0005' successfull, fd: 22
2008-03-02 23:44:18    29     11565 startup  DEVi started
2008-03-02 23:44:18    30     12821 TASKING  Thread 30 starting
2008-03-02 23:44:18    30     11597 IO       Open '/sapdb/XXXsapdata/DISKD0005' successfull, fd: 23
2008-03-02 23:44:18    30     11565 startup  DEVi started
*2008-03-02 23:44:18    15     11000 vattach  '/sapdb/XXX/sapdata/DISKD0005' devno 5 T61 succeeded*
*2008-03-02 23:44:18    31     12821 TASKING  Thread 31 starting*
*2008-03-02 23:44:18    31     11597 IO       Open '/sapdb/XX/saplog/DISKL001' successfull, fd: 25*
*2008-03-02 23:44:18    31 ERR 11000 page0io_ Illegal file format*
*2008-03-02 23:44:18    31 ERR 11000 page0io_ blocksize wanted: 8192, blocksize found: 0*
*2008-03-02 23:44:18    31     11566 stop     DEVi stopped*
*2008-03-02 23:44:18    15 ERR 11000 vattach  dev0_vattach returned FALSE*
*2008-03-02 23:44:18    15     11000 vattach  '/sapdb/XXX/saplog/DISKL001' T61 failed*
*2008-03-02 23:44:18    15 ERR 20014 IOMan    Attach error on log volume 1: Could not open volume*
2008-03-02 23:44:18    15     11000 vdetach  '/sapdb/XXX/sapdata/DISKD0001' devno 1 T61
2008-03-02 23:44:18    10     12822 TASKING  Thread 21 joining
2008-03-02 23:44:18    21     11566 stop     DEVi stopped
2008-03-02 23:44:18    15 ERR 20017 Admin    RestartFilesystem failed with 'I/O error'
2008-03-02 23:44:18    15 ERR 20010 Admin    ERROR 'disk_not_accessibl' CAUSED EMERGENCY SHUTDOWN
2008-03-02 23:44:18    15     12696 DBSTATE  Change DbState to 'SHUTDOWN'(25)
2008-03-02 23:44:18     3     12696 DBSTATE  Change DbState to 'KILL'(29)
2008-03-02 23:44:18     3     12697 DBSTATE  Resuming tracewriter
2008-03-02 23:44:18    13     12825 TASKING  state 29 before shutkill(1)
2008-03-02 23:44:18     3     12696 DBSTATE  Change DbState to 'TRACE_WRITER_WAIT'(29)
2008-03-02 23:44:18    13     12825 TASKING  state 29 before shutkill(1)
2008-03-02 23:44:18    13     12825 TASKING  state 29 before shutkill(1)
2008-03-02 23:44:18    13     12619 TASKING  Releasing tracewriter
+++++++++++++++++++++++++++++++++++++++ Kernel Exit ++++++++++++++++++++++++++++
2008-03-02 23:44:19     0     12845 DBSTATE  Kernel exited normal
2008-03-02 23:44:19     0     12890 DIAGHIST Backup of diagnostic files will be forced at next restart
2008-03-02 23:44:19     0     12808 DBSTATE  Flushing knltrace pages
2008-03-02 23:44:19     0     11560 COMMUNIC Releasing  T61
2008-03-02 23:44:19     0     12696 DBSTATE  Change DbState to 'OFFLINE '(29)
--------------------------------------- current write position -----------------  
2. The solution
Ok, we see here that all datavolumes could be read but that the logvolume is somehow broken.
What is necessary to do now is: recreate the logvolume.
But what about the data in the logvolume? The logdata would only be needed if the last shutdown of the database was NOT sucessfull. So we better check this in the krnldiag.err file:
2008-03-01 00:23:44                          ___ Stopping GMT 2008-02-29 23:23:44           7.5.0    Build 032-123-111-699
2008-03-01 01:07:37                          --- Starting GMT 2008-03-01 00:07:37           7.5.0    Build 032-123-111-699
2008-03-01 01:07:43    31 ERR 11000 page0io_ Illegal file format
2008-03-01 01:07:43    31 ERR 11000 page0io_ blocksize wanted: 8192, blocksize found: 0
2008-03-01 01:07:43    15 ERR 11000 vattach  dev0_vattach returned FALSE
2008-03-01 01:07:43    15 ERR 20014 IOMan    Attach error on log volume 1: Could not open volume
2008-03-01 01:07:43    15 ERR 20017 Admin    RestartFilesystem failed with 'I/O error'
2008-03-01 01:07:43    15 ERR 20010 Admin    ERROR 'disk_not_accessibl' CAUSED EMERGENCY SHUTDOWN
From here we see that the last shutdown before the error occured was indeed successful and that the error occured right the next time the database was started. So the logvolume cannot contain any data changes that are not yet in the data area.
Therefore it is safe to recreate the log area.
How can that be done? Up to MaxDB 7.7 there are only two ways to create the logarea and the logarea files:
1. create a database
or
2. recovery with initialization.
From MaxDB 7.7 onwards a *clear log' will do the same - but here we are on MaxDB 7.5.
For this problem only option 2 is feasible: RECOVERY WITH INITIALIZATION.
Although this is a standard DBA task, the customer told me that there is no experience available on his site he needs a step-by-step description how to perform this recovery.
Even more: the DBMGUI tool is not installed on this machine, so he needs a explanation for the dbmcli.
Here we go:
1. bring the database in ADMIN mode:
dbmcli -d <DBSID> -u control,<pw>
dbmcli on ... > db_admin
2. connect to the Utility Session
dbmcli on ...> util_connect
3. perform a complete data backup
dbmcli on ... > backup_start <medium_name> DATA
(this is needed because we want to recover the current data area)
4. perform a recovery with initialization:
!!! ATTENTION THIS IS THE POINT OF NO RETURN! MAKE DOUBLE SURE THAT THE BACKUP TAKEN IN STEP 3 IS OK !!!
dbmcli on ... >  db_activate RECOVER <medium_name>  DATA
After this db_activate has been sucessfully finished the database will be online but in HISTLOST-state.
Now a new backup is required to be able to perform new log backups again.
That's it sofar.
Anyhow it's HIGHLY recommended to use the DBMGUI tool which can be downloaded in SAP Service Marketplace or here in the SDN download area.
The whole process of backup/recovery is of course fully described in the [MaxDB documentation|http://maxdb.sap.com/documentation/].
P.S.
The <medium_name> is the name of the backup template to be used for backup or recovery.
To display all available mediums use the
medium_getall
command.
If a new medium should be created (for the backup of step 3 this is recommended to avoid the overwriting of any existing backups) the following command can be used
medium_put FULLDATABACK /tmp/fulldatabak file data
The medium_name here is FULLDATABACK. The backup will be written to a file  - the file will be /tmp/fulldatabak (the complete filename has to be put in here).
The medium can only be used to perform complete data backups.

a3fae627-3a4e-4efc-9a09-0200c1a958ca wrote:
guys also tell me what all possible reasons are there for a db to not get started(like a missing control file etc.). guys help me im new to this.
I will if you will tell me what all possible reasons are there for an automobile to not get started(like a dead battery, etc.). guys help me im new to this.
In your case, you start by working the error messages, which didn't think were important enough to share with us

Similar Messages

  • What feature I can use in SQLServer 2014/SQLAzure to Horizontal scaling in case a single machine cannot handle the load

    Hi all,
    I need advise for 
    What feature I can use in SQLServer 2014/SQLAzure to Horizontal scaling  in case a single machine cannot handle the load.
    Please some body suggest.
    I know some features :
    1.AlwaysOn
    2.Peer to Peer replication
    Thanks in advance.

    Hello,
    Windows Azure SQL database is not on-premise SQL Server 2014.
    SQL database not support Always on Availability Group and Replication. Scaling out in Azure SQL Database requires sharding, which horizontally partitions data across multiple databases. You should design custom sharding solutions by using application
    code across multiple databases.
    If you use Azure virtual machines (VMs) with SQL Server 2014, you can configure Alwayson Availability Groups. Please refer to the following article:High Availability and Disaster Recovery
    for SQL Server in Azure Virtual Machines
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • I created an administrator pseudo profile and made my profile standard. but when i restarted there another profile in my log-in page. when i log in to that unknown profile i cannot log-in. what is that profile and how can i delete it? thanks

    i have a rmbp 15" osx.. my case is this: i created an administrator pseudo profile and made my profile standard. wel i read from another forum, to strengthen my malware security.. but when i restarted there's another profile in my log-in page stating "needs updating". when i log in to that unknown profile i cannot log-in. what is that profile and how can i delete it? thanks

    Resetting User Account Password (10.7 +)
    1) Boot into your Recovery Partition holding down command + R at the startup chime
    2) Select 'Terminal' from your Utilities Menu Bar
    3) Type the following bolded command in: resetpassword
    4) From the window that appears, select your boot volume and the appropriate user account
    5) Type in the new password and confirm the new password
    6) Click Save, close this pane and quit Utilities
    7) Select your boot volume when presented with choose startup disk and reboot your machine

  • I have downloaded some software,later restart my computer,but cannot log in,what it is cause?

    i have downloaded some software,later restart my computer,but cannot log in,what it is cause

    Hello Bruarong,
    It sounds like you are unable to print to your printer from Mac OS X Lion. I recommend the troublehsooting from the article named:
    Troubleshooting printer issues in OS X
    http://support.apple.com/kb/ts3147
    Follow these steps until the issue is addressed:
    Make sure that the printer is powered on, has ink / toner, and that there are no alerts on the printer’s control panel. Note: If you cannot clear an alert on the printer's control panel, stop here and check the printer's documentation or contact the manufacturer for support.
    Ensure the printer is properly connected to a USB port on the Mac or AirPort base station / Time Capsule. If the printer is a network-capable printer, make sure that it is properly connected to your home network.
    Use Software Update to find and install the latest available updates. If an update is installed, see if the issue persists.
    Open the Print & Scan pane or Print & Fax (Snow Leopard) pane in System Preferences.
    Delete the affected printer, then add the printer again.
    If the issue persists, try these additional steps:
    Reset the printing system, then add the printer again.
    If the issue still persists, reset the printing system again.  Download and install your printer's drivers. Then, add the printer again.
    Contact the printer vendor or visit their website for further assistance.
    Thank you for using Apple Support Communities.
    Take care,
    Sterling

  • Hi, i cannot shut down my mac, and there is several times lagging, hanging, and auto restart. what should I do ?

    Hi, i cannot shut down my mac, and there is several times lagging, hanging, and auto restart. what should I do ?

    Hold the power button till it shuts off (10 seconds or so)
    Then try a SMC reset:
    http://support.apple.com/kb/HT3964
    Follow directions for a battery you should not remove yourself.
    You can also try a pram reset, which has a link at the bottom of the page of the first link above.

  • Pb to connecting to the demo database

    hi ,
    i'm newbie :)
    i have just installed TimesTen with demo ,
    i can't see how can i connect to the demo database in the command line (i'm on Linux)
    what's the name of the demo database ?
    thanks for help
    :)

    Y.Brunet, I can not be as sure in my words as you are, since I don't know how other companies and programmers solve these problems, but I cannot easily accept your advice to code dates as Strings.
    In our company's projects everywhere in DB handling code we use PreparedStatements because AFAIK they provide better performance than CallableStatements if frequently used. Also they provide abstraction level - why should I know how the f!@# the Database expects dates/int/float/String... in SQL statements?
    We use several DB servers - M@SQL, Access, Oracle, Ingres - they all handle dates in different way(not to mention that in most DBs date format is customizable). But code written for one server works on others (most of it, of course) because of this level of abstraction.
    Let's leave the driver format the stuff as the DB expects and concentrate on the real work - pass correct values, perform logical checks, improving performance.....
    Mike

  • How NOT to do Direct grant on "Demo database" Method filter

    Hello,
    When I add a new user in BPA, on the 5 step of the wizard
    The "Demo database" is checked under the"'Direct" assign AND is greyed out.
    I do not want the user to have this filter.
    What is worse is that I cannot go in after user creation to REVOKE this filter either.
    Q1 : How do I revoke this filter?
    Q2 : What is causing this behaviour (of auto grant) to happen ?
    This happens
    Thanks in advance
    regards
    Sanjiv

    Hi Sanjiv,
    I have been working on ARIS and i havnt faced the problem that you have mentioned. we can easily assign any filter to any user and not just only one we can also assign more thn one filter.
    As you said you have raised it to Oracle, have they acknowledge it as an bug in Oracle BPA?
    Please provide me with your mail ID and i will send you procedure to create user and assign filter.
    It is possible that there is a Bug in Oracle release or may be you have missed some thing while performing the procedure.
    Regards
    Gaurav Sharma :)

  • Just yesterday I downloaded the newest update for iTunes, a few days before doing this I purchased music, but after doing the update my songs will not play. It shows a message that says this file cannot be located, what can I do to find the location?

    Just yesterday I downloaded the newest update for iTunes, a few days before doing this I purchased music, but after doing the update my songs will not play. It shows a message that says this file cannot be located, what can I do to find the location?

    The path C:\users\owner\appdata\local\apple\apple software update\bonjour64.msi cannot be found. verify that you have access to this location and try again or try to find the installation package "bonjour64.msi" in a folder from which you can install the product bonjour.
    Unfortunately, this sort of trouble has gotten more complicated to deal with ever since Microsoft pulled the Windows Installer CleanUp utility from their Download Center on 25 June 2010. First we have to find a copy of the utility.
    Let's try Googling. (Best not to use Bing, I think.) Look for a working download site for at least version 3.0 of the Windows Installer CleanUp utility. (The results from mydigitallife and Major Geeks are worth checking.)
    After downloading the utility installer file (msicuu2.exe), scan the file for malware, just in case. (I use the free version of Malwarebytes AntiMalware to do single-file scans for that.)
    If the file is clean, to install the utility, doubleclick the msicuu2.exe file you've downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any Bonjour entries and click "Remove".
    Quit out of CleanUp. Restart the PC, and try another iTunes install. Does it go through properly this time?

  • Study: Oracle database software has more flaws than SQL Server

    Hi,
    Study: Oracle database software has more flaws than SQL Server
    Microsoft is often unfairly slammed for security issues, says NGSS
    http://www.computerworld.com/action/article.do?command=viewArticleBasic&articleId=9005383&intsrc=hm_list
    Post your comments on this stupid artical.
    Thanks!
    M T

    This is a case where size does matter.
    When they say errors reported on oracle are about 4 times more than the ones reported on SQL server they forgot to say something like: SQL server is able to do... what a 10%, a 5% or whatever of what oracle can do.
    Anyway who sayd this forgot to say that they worked with microsoft trying to improve SQL sever security features as well.
    http://www.nextgenss.com/press-releases/ngs-and-the-sql-server-security-essential-guide/
    They have a reason to say it. Who would say "I made a bad job!"
    In my opinion there is no way yet to compare oracle to any other DBMS under any point of view.
    Bye Alessandro

  • EURent Case Management demo - start case

    I have deployed the case management composite and UI and I can log perfectly into the UI and I can see in Enterprise Manager that EURent has been deployed.
    Now I want to test it by creating a case, and use the sample XML payload for the EURent.startCase service, and when I send the request (http://localhost:port/soa-infra/services/default/EURent/EURent.service), I get an "Accepted" response and by looking in enterprise manager it seems that a case has been started. My problem is, that I cannot see this case when I log into the UI as the mmitch user as specified in the guide.
    Is anybody else experiencing problems with actually viewing the cases in the demo UI?

    Can you tell me what environment you are using when succesfully trying the UIRent demo?
    I am having A LOT of trouble with even the most simple case management projects and I am out of ideas.
    I have installed JDeveloper 11g which includes a WebLogic 10.3.5 server and I have installed the SOA/BPM Suite too. I have added patches p15995111 and p14526899 which according to Oracle are the required patches for Case management.
    Even when I create the simplest case manegement demo with a single automatic BPM process which doesn't do anythign and a rule which sets a milestone after the activity is completed doesnt work. I can see in Enterprise Manager that the BPM process is completed but the rule is never fired.  Is there something special which have to be configured on the WL server to be able to run case management projects?

  • Something wrong when installing then demo database schema

    rdbms server 9.2.0.5 win32
    jdev904
    bibeans904
    Something is wrong when installing the demo database schema.While executing cwm2_olap_metadata_refresh.mr_refresh at last ,system hint that cwm2_olap_metadata_refresh.mr_refresh must be declared.That means there is not cwm2_olap_metadata_refresh.
    Why and What should I do ?
    Thanks a lot!

    After executing the file catpatch.sql,the demo database schema completed successfully.But there is something wrong during bi_checkconfig.
    BI Beans Diagnostics(v1.0.2.0) 04-6-30
    ==========================================================JDEV_ORACLE_HOME .......................... = d:\jdev904
    JAVA_HOME ................................. = d:\jdev904\jdk
    JDeveloper version ........................ = 9.0.4.0.1419
    BI Beans release description .............. = BI Beans 9.0.4 Production Release
    BI Beans component number ................. = 9.0.4.23.0
    BI Beans internal version ................. = 2.7.5.32
    Connect to database ....................... = Successful
    JDBC driver version ....................... = 9.2.0.4.0
    JDBC JAR file location .................... = D:\jdev904\jdev\lib\patches
    Database version .......................... = 9.2.0.5.0
    OLAP Catalog version ...................... = 9.2.0.5.0
    OLAP AW Engine version .................... = 9.2.0.5.0
    OLAP API Server version ................... = 9.2.0.5.0
    BI Beans Catalog version .................. = N/A; not installed in bibdemo
    OLAP API JAR file version ................. = N/A
    OLAP API JAR file location ................ = d:\jdev904\jdev\lib\ext
    Load OLAP API metadata .................... = Unsuccessful
    Error: BIB-10100 Cannot connect to the database. (Reason: See error BIB-16626)
    ============================================================================
    1) BIB-10100 Cannot connect to the database. (Reason: See error BIB-16626)
    2) BIB-16626 Cannot connect to the database because OLAP client classes are missing.
    1) BIB-10100 Cannot connect to the database. (Reason: See error BIB-16626)
    ============================================================================
    oracle.dss.metadataManager.common.MetadataManagerException: BIB-10100 Cannot connect to the database. (Reason: See error BIB-16626)
         at oracle.dss.metadataManager.client.MetadataManager.setConnectionObjects(MetadataManager.java:4015)
         at oracle.dss.metadataManager.client.MetadataManager.attach(MetadataManager.java:862)
         at oracle.dss.metadataManager.client.MetadataManager.attach(MetadataManager.java:799)
         at BICheckConfig.checkConnection(BICheckConfig.java:277)
         at BICheckConfig.main(BICheckConfig.java:1348)
    2) BIB-16626 Cannot connect to the database because OLAP client classes are missing.
    ============================================================================
    oracle.dss.connection.common.ConnectionException: BIB-16626 Cannot connect to the database because OLAP client classes are missing.
         at oracle.dss.connection.server.drivers.mdm.MDMConnectionDriverImpl.connect(MDMConnectionDriverImpl.java:182)
         at oracle.dss.connection.server.ConnectionImpl.connect(ConnectionImpl.java:286)
         at oracle.dss.connection.client.Connection.connect(Connection.java:409)
         at oracle.dss.connection.client.Connection.connect(Connection.java:326)
         at oracle.dss.metadataManager.client.MetadataManager.setConnectionObjects(MetadataManager.java:3997)
         at oracle.dss.metadataManager.client.MetadataManager.attach(MetadataManager.java:862)
         at oracle.dss.metadataManager.client.MetadataManager.attach(MetadataManager.java:799)
         at BICheckConfig.checkConnection(BICheckConfig.java:277)
         at BICheckConfig.main(BICheckConfig.java:1348)
    What should I do ,any help?
    Thanks !

  • What's wrong with the activation server? i just bought my ipad wifi celllular... and have a 3g cellular network connection... when i press the bottom to activate my ipad it says the activation server cannot be reached. what to do then?

    what's wrong with the activation server? i just bought my ipad wifi celllular... and have a 3g cellular network connection... when i press the bottom to activate my ipad it says the activation server cannot be reached. what to do then?

    Hey aries35,
    I found the following that goes over troubleshooting the same issue for the iPhone. I know you have an iPad, but the steps should still apply:
    Perform the following steps:
    Restart the iPhone.
    Try another means of reaching the activation server and attempt to activate.
    Try connecting to a known-good Wi-Fi network if you're unable to activate using a cellular data connection.
    Try connecting to iTunes if you're unable to activate using Wi-Fi.
    Restore the iPhone.
    If you receive an alert message when you attempt to activate your iPhone, try to place the iPhone in recovery mode and perform a restore. If you're still unable to complete the setup assistant due to an activation error, contact Apple for assistance.
    via: iPhone: Troubleshooting activation issues
    http://support.apple.com/kb/TS3424
    Cheers,
    Delgadoh

  • Organization structure for Case study .... need yr advice

    Hi …I am in process of preparing an org structure for one of the company.
    The company operations is like ….
    The company has four factories in different locations and have 3 Regional distribution centers (RDC) across india. Each distribution center has 5 branches (Sales Offices), in this way they 15 Sales offices across India.
    Most of the materials are procured by factories independently while some materials are centrally procured. Factories produce Finish goods and they are either sale to customer directly ( big regular customers) , or transferred to RDC to cater the requirements of other MID size customers and the other possibility to transfer it to Branches for Retail customers. RDCs also transfer FG to Branches.
    All factories , RDC and branches have warehouse facility , however branches have limited warehouse facility as the customers supported by them are very few and generally deliveries are made directly from RDC / Factory.
    They also have one R&D department in another location to develop new products and material is generally transferred from factories to R&D department.They also have one project division at the same (R&D) location which handles commissioning of new plants and procurement of capital goods.
    Raw Material , Semi finish and FG are transferred between factories and FG material is also transferred between RDCs.
    The group also has another Company which produces another line of products. RDCs and Branches of first company also work for second company (which means same RDC can store FG produced by both companies) and also Branches can also have FG material of both companies. Second company doesn’t have any specific R&D or capital division and R&D and capital of first company also work for second company.
    Inter company transfer between both companies is a regular practice.
    > Proposed Org structure
    Company – Group Company
    Company Code – First company and Second company
    Factory Configurations
    For first company
    4 Factories will be 4 plants
    Factories Structure (Storage locations / warehouses and storage type)
    Since factories have different type of material ( like FG , Raw material , WIP ) therefore I am confused what option I should select 
    1) 3 storage location ( for each plant) and one warehouse, 1 storage type
    2) 1 storage  location and three warehouses (I think this is not possible in SAP , not sure ?? )
    3) 1 storage location , 1 warehouse and 3 storage types
    RDC structure
    RDCs have full fledged warehouse facility and therefore thinking of making them also as Plant. Every RDC will have 6 Storage locations , 1 for First company RDC itself, 5 for associated branches and I feel each “RDC storage locations” should be a associated to a separate warehouse also.
    ( Since both companies produce different set of products therefore they will have different material and hence thinking of handling products of both companies in same plant and same storage location and warehouse , may be two storage type/area can be defined to differentiate material of both companies.)
    Branches: Will be storage locations under RDC …..
    While making branches as Storage location …. I have another question about valuation , since material from Plant and RDC is being transferred to Branches and  from there it is distributed to customers therefore the valuation of FG at BRANCH and RDC should be different as transportation cost , packing , unpacking etc cost should get added at Branch level.
    Therefore in case I make branch as Storage location , I will miss the valuation part while if I make them as Plant then there will be lot of documents get generated for each movement. Hence not sure for what option I should go.
    R&D:
    Since R& D department is involved in testing in New Product development and generally material is required to be scrapped after testing therefore thinking of making it as Plant with one storage location and may be here I don’t need any warehouse (WM) here.
    Project Division
    Project division may also be a separate plant with one storage location and NO WAREHOUSE is required to linked with it.
    Purchase Organizations
    4 purchase organizations for each plant respectively and 1 centralized purchase Org for central procurement.
    Your all valuable inputs are welcome .... looking foward to have a best possible configuration for above mentioned case study.
    Regards

    Phew... long long question
    The rule I generally follow is that the org structure should map reality.
    Company code - where Balance Sheet and Profit and Loss are prepared at the end of the year. If an entity does not do this, it is not a company code.
    Plant
    1) Each manufacturing facility is a plant (could be in 1 location or separate).
    2) Each separate location is a plant (even if it only stores goods). May be an overkill, but helps when legal requirements change or the location is upgraded.
    So in your case, RDC will be a plant (may be more than 1 if necessary). R&D should be a separate plant without warehouse management
    Storage location
    The only rule I follow is that there should not be any overlap of storage locations. So physically, any area of say 1 square foot should belong to one and only one storage location. Otherwise there is a lot of confusion during physical inventory. So logical locations are a no-no.
    I usually use a lot of storage locations.
    Don't have a warehouse spanning multiple plants (even though it is allowed).
    Purchasing organizations
    Have one for each location of purchase. If there is a team sitting in each plant procuring for only that plant, have it as a separate purchasing org (not strictly necessary, but makes authorization simple). For central purchasing, a central purchasing org should do nicely...
    Hope this helps,
    Lakshman

  • How to create this case study in oracle

    Orient Courier Service is a leading provider of courier services to international/domestic destinations.  The service has offices all over the country where it picks up parcels for delivery. When a customer walks in for handing over packets for delivery the clerk at the desk keys in the customer’s name, address, email, hp no,weight (package) as well as the receiver’s name, address, hp no, city and country. All the fields are compulsory except the email address. Amount is also entered and is calculated based on fixed charges which are stored in the database. For example.
    City
    Charges
    Johor Bahru
    10/kg
    Sydney
    30/kg
    London
    25/kg
    Based on the above scenario you have to come up with a physical database with the following.
    A stored function to calculate delivery charges given city and weight
    Hint (create two parameters city and weight)
    A stored procedure to insert records into deliveries table
    HINT create stored procedure with parameters for each field in the deliveries table for ex customer address, phone, email and receivers’s address etc
    please help me to solve this case study, i new in  oracle..

    How about starting here:
    Oracle® Database PL/SQL Language Reference
    http://docs.oracle.com/cd/E11882_01/appdev.112/e25519/toc.htm

  • Case study: "Large?" labview programs flooded with different VIT's

    Case study: "Large?" labview programs flooded
    with different VIT's
    Type of application:
    Computer with loads of individual hardware connected or other software (either
    onsite (different buses) or offsite (Satelite/GSM/GPRS/radio etc.).
    Hardware
    description: little data "RPM" but communications to all devices are intact.
    More "RPM" when many VITs are involved.
    Size: 1000+
    VITS in memory (goal). Total software has been tested and simulated with 400.
    I'm posting
    this post after reading this thread (and actually I cant sleep and am bored as
    hell).
    Note: I do
    not use LVOOP (but sure post OOP examples, am starting to learn more and more
    by the day.)
    Things I
    will discuss are:
    Case 1: Memory usage using a plugin
    architecture
    CASE 2: memory usage using VITs (!)
    CASE 3: updating datastructures:
    CASE 4: shutdown of the whole system
    CASE 5: stability & heath monitoring
    CASE 6: Inifiles
    CASE 7: When the hardware is getting crappy
    Total
    application overview:
    We have a
    main application. This main application is mainly empty as hell, and only holds
    a plugin functionality (to register and administer plugins) and holds an
    architecture that holds the following items:
    Queue state
    machine for main application error handling
    Queue state
    machine for status messages
    Queue state
    machine for updating virtual variables
    Event state
    machine for GUI
    Some other
    stuff
    Other
    global functionality is:
    User
    logins, user configurations and unique access levels
    Different
    nice tools like the good old BootP and other juicy stuff
    Supervision
    of variables (like the NI tag engine, but here we have our own datastructures)
    Generation
    of virtual variables (so that the user can configure easy mathematical
    functions and combining existing tags)
    Licensing
    of plugins (hell we free-lance programmers need some money to don't we?)
    Handles
    all communication between plugins themselves, or directly to a plugin or vice
    versus.
    And now we don't
    talk about that (or marketing) the main application .
    Message Edited by Corny on 01-20-2010 08:52 AM

    CASE 3: updating datastructures:
     As we do NOT use clusters here (that would
    just be consuming) we only use an 1D array of data that needs to be updated in
    different functional globals. If the the number of VITS exceeds so that the
    updating of this datastructures becomes the bottleneck, this would cause
    delays. And since in this example we use 250 serial interfaces (lol) we do not
    want to disrupt that by any delays. When this happends, does anyone know a good
    solution to transfer data?
    A thought:
    perhaps sending it down to the plugin and let the plugin handle it, this should
    save some time, but then again if more VITs are added again this would become a
    bottleneck and the queue would fill up after a while unable to process it fast
    enough. Any opinions?
    CASE 4: shutdown of the whole system
    Lets say we
    want to close it all down, but the VITs need perhaps to do some shutdown
    procedure towards the hardware, that can be heavy.
    If we ask
    them to shutdown all together we can use an natofier or userevent to do this
    job. Well, what happends next is that the CPU will jump to the roof, and well
    that can only cause dataloss and trouble. The solution here was to let the
    plugin shut them all down one by one, when one has been shutdown, begin at the
    next. Pro; CPU will not jump to the moon. Con's: shutdown is going to take a
    while. Be ready with a cup of coffee.
    Also we
    want the main application not to exit before we exit. The solution above solved
    this as the plugin knows when all have been shut down, and can then shut itself
    down. When all plugins are shutdown - the application ends.
    Another
    solution is to use rendovous (arg cant spell it) and only shut the system down
    when all rendezvous have met.
    CASE 5: stability & heath monitoring
    This IS
    using a lot of memory. How to get it down. And has anyone experienced any
    difficulties with labview using A LOT of memory? I want to know if something
    gets corrupt. The VITs send out error information in case, but what if
    something weird happens, how can I surveillance all the VIT's in memory to know
    one is malfunctioning in an effective way/code (as backup
    solution  so the application knows
    something is wrong?
    CASE 6: Inifiles
    Well, we
    all like them. Even if XML is perhaps more fahionally. Now Ive runned some
    tests on large inifiles. And the labview Inifile functions use ages to parsing
    all this information. Perhaps an own file structure in binary format or
    something would be better? (and rather create an configuration program)?
    CASE 7: When the hardware is getting crappy:
    Now what if
    the system is hitting the limit and gradually exceeds the hardware req. of the
    software. What to do then (thinking mostly of memory usage)? Needing to install
    it on more servers or something and splitting configurations? Is that the best
    way to solve this? Any opinions?
    Wow.  Time for a coffee cup. Impressive if someone
    actually read all of this. My goal is to reach the 1000 VIT mark.. someday.. so
    any opinions, and just ask if something unclear or other stuff, Im open for all
    stuff, since I see the software will hit a memory barrier someday if I want to
    reach that 1000 mark hehe

Maybe you are looking for