Problem with one to one unidirectional relation

Hi,
I have one problem with one to one relation ship. While i am trying to persist the objects it is showing that "parent key not found" exception. Is there any problem with my class configuration ?..
Table description:having two tables with same composite primary key
ECommSchema table has one composite primay key and the ECommSchemaDet table also has the same composite primary key. In second table (ECommSchemaDet) composite primary key fields are refering(foreign key relation ship) from the first table.
My entity classes are....
@Entity(name = "E_COMM_SCHEMA")
@Table(name = "E_COMM_SCHEMA", uniqueConstraints = {})
public class ECommSchema extends ParentEntity implements java.io.Serializable{
// Fields
private ECommSchemaDet eCommSchemaDet;
// Constructors
/** default constructor */
public ECommSchema(){
/** minimal constructor */
public ECommSchema(ECommSchemaId id, String descBriefEng, Date effectiveFrom, Currencies currencies){
this.id = id;
this.descBriefEng = descBriefEng;
this.effectiveFrom = effectiveFrom;
this.currencies = currencies;
/** full constructor */
@OneToOne(cascade = { CascadeType.ALL })
@PrimaryKeyJoinColumns({ @PrimaryKeyJoinColumn(name = "COMP_CODE", referencedColumnName = "COMP_CODE"),
@PrimaryKeyJoinColumn(name = "CODE", referencedColumnName = "SCHEMA_CODE") })
public ECommSchemaDet getECommSchemaDet(){
return eCommSchemaDet;
public void setECommSchemaDet(ECommSchemaDet commSchemaDet){
eCommSchemaDet = commSchemaDet;
@SuppressWarnings("serial")
@Entity(name = "E_COMM_SCHEMA_DET")
@Table(name = "E_COMM_SCHEMA_DET", uniqueConstraints = {})
public class ECommSchemaDet implements java.io.Serializable{
private ECommSchema ECommSchema;
// Constructors
/** default constructor */
public ECommSchemaDet(){
/** minimal constructor */
public ECommSchemaDet(ECommSchemaDetId id, ECommSchema ECommSchema, String calcBase, String multiTier, String distMethod,
Double brokerRebate, Double ticketCharge){
this.id = id;
this.ECommSchema = ECommSchema;
this.calcBase = calcBase;
this.multiTier = multiTier;
this.distMethod = distMethod;
this.brokerRebate = brokerRebate;
this.ticketCharge = ticketCharge;
/** full constructor */
public ECommSchemaDet(ECommSchemaDetId id, ECommSchema ECommSchema, String calcBase, String multiTier, String distMethod,
Double brokerRebate, Double ticketCharge, String distMethodClient){
this.id = id;
this.ECommSchema = ECommSchema;
this.calcBase = calcBase;
this.multiTier = multiTier;
this.distMethod = distMethod;
this.brokerRebate = brokerRebate;
this.ticketCharge = ticketCharge;
this.distMethodClient = distMethodClient;
// Property accessors
@OneToOne(cascade = { CascadeType.REFRESH }, fetch = FetchType.EAGER, mappedBy = "eCommSchemaDet")
public ECommSchema getECommSchema(){
return this.ECommSchema;
public void setECommSchema(ECommSchema ECommSchema){
this.ECommSchema = ECommSchema;
Error message is
Local Exception Stack:
Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: ORA-02291: integrity constraint (ETRADE_4BM.FK_ECOMM_SCH_DET) violated - parent key not found
Error Code: 2291
Call: INSERT INTO E_COMM_SCHEMA_DET (DIST_METHOD, BROKER_REBATE, CALC_BASE, TICKET_CHARGE, DIST_METHOD_CLIENT, MULTI_TIER, SCHEMA_CODE, COMP_CODE) VALUES (?, ?, ?, ?, ?, ?, ?, ?)
     bind => [T, 23.0, A, 23.0, T, N, 8, 1]
Query: InsertObjectQuery(com.path.tradeManager.entities.ECommSchemaDet@44fbf5)
     at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:311)
     at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:654)
     at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeNoSelect(DatabaseAccessor.java:703)
     at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:492)
     at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:452)
     at oracle.toplink.essentials.internal.sessions.AbstractSession.executeCall(AbstractSession.java:690)
     at oracle.toplink.essentials.internal.sessions.IsolatedClientSession.executeCall(IsolatedClientSession.java:150)
     at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:228)
     at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:214)
     at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.insertObject(DatasourceCallQueryMechanism.java:346)
     at oracle.toplink.essentials.internal.queryframework.StatementQueryMechanism.insertObject(StatementQueryMechanism.java:191)
     at oracle.toplink.essentials.internal.queryframework.StatementQueryMechanism.insertObject(StatementQueryMechanism.java:205)
     at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.insertObjectForWrite(DatabaseQueryMechanism.java:564)
     at oracle.toplink.essentials.queryframework.InsertObjectQuery.executeCommit(InsertObjectQuery.java:89)
     at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.performUserDefinedWrite(DatabaseQueryMechanism.java:750)
     at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.performUserDefinedInsert(DatabaseQueryMechanism.java:714)
     at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.insertObjectForWriteWithChangeSet(DatabaseQueryMechanism.java:602)
     at oracle.toplink.essentials.queryframework.WriteObjectQuery.executeCommitWithChangeSet(WriteObjectQuery.java:162)
     at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.executeWriteWithChangeSet(DatabaseQueryMechanism.java:390)
     at oracle.toplink.essentials.queryframework.WriteObjectQuery.executeDatabaseQuery(WriteObjectQuery.java:109)
     at oracle.toplink.essentials.queryframework.DatabaseQuery.execute(DatabaseQuery.java:628)
     at oracle.toplink.essentials.queryframework.DatabaseQuery.executeInUnitOfWork(DatabaseQuery.java:555)
     at oracle.toplink.essentials.queryframework.ObjectLevelModifyQuery.executeInUnitOfWorkObjectLevelModifyQuery(ObjectLevelModifyQuery.java:138)
     at oracle.toplink.essentials.queryframework.ObjectLevelModifyQuery.executeInUnitOfWork(ObjectLevelModifyQuery.java:110)
     at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2233)
     at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:952)
     at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:909)
     at oracle.toplink.essentials.internal.sessions.CommitManager.commitNewObjectsForClassWithChangeSet(CommitManager.java:269)
     at oracle.toplink.essentials.internal.sessions.CommitManager.commitAllObjectsForClassWithChangeSet(CommitManager.java:246)
     at oracle.toplink.essentials.internal.sessions.CommitManager.commitAllObjectsWithChangeSet(CommitManager.java:202)
     at oracle.toplink.essentials.internal.sessions.AbstractSession.writeAllObjectsWithChangeSet(AbstractSession.java:2657)
     at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.commitToDatabase(UnitOfWorkImpl.java:1044)
     at oracle.toplink.essentials.internal.ejb.cmp3.base.RepeatableWriteUnitOfWork.commitToDatabase(RepeatableWriteUnitOfWork.java:403)
     at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.commitToDatabaseWithPreBuiltChangeSet(UnitOfWorkImpl.java:1160)
     at oracle.toplink.essentials.internal.ejb.cmp3.base.RepeatableWriteUnitOfWork.writeChanges(RepeatableWriteUnitOfWork.java:276)
     at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerImpl.flush(EntityManagerImpl.java:350)
     at com.sun.enterprise.util.EntityManagerWrapper.flush(EntityManagerWrapper.java:626)
     at com.path.tradeManager.dao.ECommSchemaDaoBean.save(ECommSchemaDaoBean.java:86)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1067)
     at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:176)
     at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2895)
     at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3986)
     at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:203)
     at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:117)
     at $Proxy133.save(Unknown Source)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:233)
     at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:152)
     at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:225)
     at com.path.tradeManager.daoInterface.__ECommSchemaDaoInterface_Remote_DynamicStub.save(com/path/tradeManager/daoInterface/__ECommSchemaDaoInterface_Remote_DynamicStub.java)
     at com.path.tradeManager.daoInterface._ECommSchemaDaoInterface_Wrapper.save(com/path/tradeManager/daoInterface/_ECommSchemaDaoInterface_Wrapper.java)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at com.path.tradeManager.tunnelGate.RequestHandler.callMethodByReflection(RequestHandler.java:181)
     at com.path.tradeManager.tunnelGate.RequestHandler.handle(RequestHandler.java:150)
     at com.path.tradeManager.tunnelGate.TunnelServlet.doPost(TunnelServlet.java:37)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
     at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:290)
     at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
     at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
     at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
     at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
     at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
     at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
     at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
     at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
     at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
     at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
     at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
     at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
     at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
     at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
     at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
     at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:380)
     at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
     at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
Caused by: java.sql.SQLException: ORA-02291: integrity constraint (ETRADE_4BM.FK_ECOMM_SCH_DET) violated - parent key not found
     at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:124)
     at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:304)
     at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:271)
     at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:622)
     at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:180)
     at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:542)
     at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1027)
     at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2887)
     at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:2959)
     at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:647)
     ... 92 more
Jul 8, 2008 4:17:07 PM com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream flush
INFO: FATAL[08-07-08 16:17:07][com.path.tradeManager.dao.ECommSchemaDaoBean->save][javax.persistence.PersistenceException: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: ORA-02291: integrity constraint (ETRADE_4BM.FK_ECOMM_SCH_DET) violated - parent key not found
Thanks in advance
Anish

Hello,
I'm not sure what the FK_ECOMM_SCH_DET constraint refers to, but I assume it is to the only OneToOne reference defined. Based on the mappings shown, you have told TopLink that ECommSchema has a 1:1 to ECommSchemaDet, so that ECommSchemaDet has to be inserted first. My guess is your constraint is the oposite, requiring that ECommSchema be inserted before ECommSchemaDet. If so, just change the by directional 1:1 so that ECommSchema->ECommSchemaDet is mapped by the ECommSchemaDet->ECommSchema relationship (ie switch things).
Best Regards,
Chris

Similar Messages

  • HT1725 I cannot download  my purchased songs to my new iPhone 5. I have not any problems with my previous one or my ipad

    I cannot download my purchased songs from iTunes in my new iPhone5. I have not any problems with my previous one or my ipad

    Hello, Strakat.
    The attached article will walk you through the process of downloading past purchases.  If you are experiencing issues with this, see the section labeled Related Articles. 
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/HT2519
    Cheers,
    Jason H. 

  • I created one apple I'd when I started using the iPad.  After some days, I had to create a new apple I'd as there was some problem with the first one. Now at some places still my old apple I'd is appearing.  Pls adv how I change this to my new apple Id.

    I created one apple I'd when I started using the iPad.  After some days, I had to create a new apple id
    as there was some problem with the first one. Now at some places still my old apple Id is appearing.  Pls adv how I change this to my new apple Id.

    Anything you downloaded with the first Apple Id will forever be tied to it, and will always require it to update.
    The question here is, why did you think you needed to create a new Apple ID? What was the problem with the first one?
    To get rid of th old one, you'll need to delete everything you downloaded with it, and then sign out of the ID in several places around the iPad. 
    Go to Settings->iTunes & App Stores->Apple ID->Sign out.
    Repeat the process, for Facetime, Messages, Mail and any other App you need to sign out of.

  • Having serious problems with calendar duplications, one birthday now showing 174 times on one day! Help!

    Having serious problems with calendar duplications, one birthday now showing 174 times on one day! Help!

    Having serious problems with calendar duplications, one birthday now showing 174 times on one day! Help!

  • I have problem with this add-one "down them all" , Recently it doesn't show me Size of files !!

    I have problem with this add-one "down them all" , Recently it doesn't show me Size of files !!
    also regular download doesn't show my any thing !! and I can not even resume my files ....
    i know these are direct links and i should be able to resume my downloads any time ( i have this option before )

    If an extension isn't working properly then you need to take this up with its developer.
    *http://www.downthemall.net/

  • PDF Exaprom, problem with multitext in one header

    Problem is,that according to my simply thiking when I connect two elements Append Text HF one by one serialy with some text in header, and in their properties I set alligment both of them at left- MIDDLE in my opinion it suppose to overwrite one text on secand. When I set one text at left-MIDDLE and secont text in center-MIDDLE is should firstly create one text at left side, another at the middle. I doesn't.... When you try to combine with alligment of text,you easly notice,that when it's creating first text at the left side,it devide page on 3 and locate it at 1 collumn, and then when you pass this PDF Report to second Append Text HF this subVI divide not the same lenght of the side, but those 2-3 columnt whose left!!!! In effect text wich suppose to be at center of document is the center of 2-3 parts of document. 
    Do I doing something wrong or is it program bug? 
    Attachments:
    pdf_report_test.vi ‏53 KB
    Report.pdf ‏20 KB

    Now I see,
    I just haven't know about this specyfication of that subvi.
    I managed to deal with that, but unfortanatly I have another problem.
    In help context of create table.vi you can read that in cell can be eiter text or pictures. I want to add 2D array of pictures and it show mistake. Do I ones again don't understand description or I have to do it in other way? I just wanted to create table ona the page,which will contain pictures, let's say 2x2 size table, picture in each cell. Is it possible to using this program? 
    Attachments:
    pdf_report Folder.zip ‏2270 KB
    pdf report.JPG ‏402 KB
    pdf_report Folder.zip ‏2270 KB

  • Problem with more than one item in a track

    DVDSP 4.0.2 / OSX.4.2 I've built a DVD with several tracks. In each track I've placed several .m2v files, one after another. Finished build plays fine on my Mac and on one of my stand alone DVD players. But on another stand alone (Sony DVP-S360) something very odd happens. DVD begins to play just fine, but whenever it encounters a track with more than one source file, it will play until it gets to the spot in the program where the second source file is in the track and then it hangs and won't do anything. I'm just curious if anyone has any insight into this problem. Is it a DVDSP conflict thing with certain players? Or is this Sony player just not capable of playing a DVD built this way? Thanks.

    This page here:
    http://www.videohelp.com/dvdplayers.php?DVDnameid=428&Search=Search&
    has someone talking about finally getting burned DVDs to work, which suggests they previously had problems. I can't think why the track would not seem like continuous video, as if it had always been that way. Our Sony DVD player at work seems sensitive to higher data rates. What data rate did you use?

  • Problems with hdd, new one ?

    I seem to be having some problems with my current hdd, and i was wondering if I was better off just buying a new hdd all together. It doesn't want to 'unmount' or format. I called certain Apple service centers and their diagnostics fee is $90 - About how much a new hard drive would be on it's own. Can anyone help or give feedback?

    Are you talking about your internal HDD?
    If so, how are you trying to unmount or reformat?
    It's tough to do it to the startup disk, right?
    ETA: You might just need to run Disk Utility on it - what OS are you using?
    cahrlie

  • Problem with 2 iPods one computer

    My grandson is using my computer for his iPod. I just got my own iPod and followed the instructions on how to use multiple iPods with one computer using Method 3. http://support.apple.com/kb/HT1495 I was able to put some of music on my iPod but then my grandson wasn't able to find his own library. Obviously I did something wrong so we ended up deleting my library and I need to start over. Does anyone have any advice on how I can prevent this problem from happening again?

    LizaBJ wrote:
    Thank you for the reply. I would really prefer two libraries rather than just playlists especially since Apple says it can be done.
    Why?

  • 10.6.8 introduces several problem with mail, on one machine doesn't start on another it can't be seen from Safari, is that normal?

    I don't what's going on with 10.6.8
    Mail is suffering several problems.
    first of all, I made all the standard routines... permissions, etc.
    1) on one machine it starts, the dock icon is bouncing endless, and even forcing the index rebuilt, doesn't help.
    2) on another machine, mail is not recognized by Safari, it is not there it says (My fear is that is Safari the problem? Strange)...
    Do you have any other issue with Mail?

    I have reinstalled the combo update, last night... The Mail app works ok on one mac, but is isolated, so no other app can send to Mail.app any email content.
    Here you have the snapshots.
    and this is the info.
    I don't know what to do more... Shall I fill a bug report?

  • Problem with WiFi on one netbook but not the other

    I have a curious problem in that I am able to connect and browse via the wireless network on one netbook using the home hub no problem, but another netbook connects the wireless network but does not allow me to browse. Curiously it works no problem on ethernet. The netbook with the problem is running Windows 7 Home Pro with Microsoft Essentials as the AV protection. The netbook without the problem is running Windows XP Home Pro with AVG.
    I have tried all sorts from rolling back Windows updates, reinstalling the wireless device drivers, refreshing/flushing dns and various command prompts but nothing seems to work.
    I took the netbook away and tried connecting to another wireless network and it worked straight away no problem which leads me to believe it is a dns issue with the BT connection on my netbook.
    I have enclosed the IPCONFIG for both the wireless and ethernet connection in case anyone can spot anything and make suggestions...
    Microsoft Windows [Version 6.1.7600]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
    C:\Users\Samsung>ipconfig /all
    Windows IP Configuration
      Host Name . . . . . . . . . . . . : Samsung-PC
      Primary Dns Suffix  . . . . . . . :
      Node Type . . . . . . . . . . . . : Mixed
      IP Routing Enabled. . . . . . . . : No
      WINS Proxy Enabled. . . . . . . . : No
    Wireless LAN adapter Wireless Network Connection:
      Connection-specific DNS Suffix  . :
      Description . . . . . . . . . . . : Realtek RTL8192E Wireless LAN
    802.11n PCI
    -E NIC
      Physical Address. . . . . . . . . : 00-26-B6-86-AA-8C
      DHCP Enabled. . . . . . . . . . . : Yes
      Autoconfiguration Enabled . . . . : Yes
      Link-local IPv6 Address . . . . . :   fe80::d578:aa58:5b09:e6a5%16(Preferred)
      IPv4 Address. . . . . . . . . . . : 192.168.1.64(Preferred)
      Subnet Mask . . . . . . . . . . . : 255.255.255.0
      Lease Obtained. . . . . . . . . . : 03 November 2012 09:18:19
      Lease Expires . . . . . . . . . . : 04 November 2012 09:18:19
      Default Gateway . . . . . . . . . : 192.168.1.254
      DHCP Server . . . . . . . . . . . : 192.168.1.254
      DHCPv6 IAID . . . . . . . . . . . : 285222582
      DHCPv6 Client DUID. . . . . . . . :
    00-01-00-01-17-E0-DE-2A-00-24-54-3B-6C-E9
      DNS Servers . . . . . . . . . . . : 192.168.1.254
                                          192.168.1.254
      NetBIOS over Tcpip. . . . . . . . : Enabled
    Ethernet adapter Bluetooth Network Connection:
      Media State . . . . . . . . . . . : Media disconnected
      Connection-specific DNS Suffix  . :
      Description . . . . . . . . . . . : Bluetooth Device (Personal Area
    Network)
      Physical Address. . . . . . . . . : 0C-60-76-FF-A0-3B
      DHCP Enabled. . . . . . . . . . . : Yes
      Autoconfiguration Enabled . . . . : Yes
    Ethernet adapter Local Area Connection:
      Connection-specific DNS Suffix  . :
      Description . . . . . . . . . . . : Realtek PCIe FE Family Controller
      Physical Address. . . . . . . . . : 00-24-54-3B-6C-E9
      DHCP Enabled. . . . . . . . . . . : Yes
      Autoconfiguration Enabled . . . . : Yes
      Link-local IPv6 Address . . . . . : fe80::5964:d9f5:c44:93d7%11(Preferred)
      IPv4 Address. . . . . . . . . . . : 192.168.1.71(Preferred)
      Subnet Mask . . . . . . . . . . . : 255.255.255.0
      Lease Obtained. . . . . . . . . . : 03 November 2012 09:19:31
      Lease Expires . . . . . . . . . . : 04 November 2012 09:19:31
      Default Gateway . . . . . . . . . : 192.168.1.254
      DHCP Server . . . . . . . . . . . : 192.168.1.254
      DHCPv6 IAID . . . . . . . . . . . : 234890324
      DHCPv6 Client DUID. . . . . . . . :
    00-01-00-01-17-E0-DE-2A-00-24-54-3B-6C-E9
      DNS Servers . . . . . . . . . . . : 192.168.1.254
                                          192.168.1.254
      NetBIOS over Tcpip. . . . . . . . : Enabled
    Tunnel adapter isatap.{7C28E484-E7CB-44B8-A9E7-1F985D74D99A}:
      Media State . . . . . . . . . . . : Media disconnected
      Connection-specific DNS Suffix  . :
      Description . . . . . . . . . . . : Microsoft ISATAP Adapter
      Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
      DHCP Enabled. . . . . . . . . . . : No
      Autoconfiguration Enabled . . . . : Yes
    Tunnel adapter Teredo Tunneling Pseudo-Interface:
      Media State . . . . . . . . . . . : Media disconnected
      Connection-specific DNS Suffix  . :
      Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
      Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
      DHCP Enabled. . . . . . . . . . . : No
      Autoconfiguration Enabled . . . . : Yes

    Wireless connections are classed as public by default, so file sharing and network discovery is disabled.
    You have to change your wireless connection so that it is in the Private network classification.
    I cannot remember how to do this, as its a while since I played around with a Win 7 or Vista laptop.
    Any settings only affect the actual wireless connection you change, so if you access public wifi, then that will be classed as a public network, and file sharing will be disabled.
    Ethernet connections are usually assumed private.
    I am sure a Google search will tell you more, if its not in Windows help.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Problems with OSS (ALC1200, one speaker only noise)

    Hi, im trying to use OSS since a half year, but never got it up running. There is always only noise/scrappy sound on the right front speaker and on the same time on the right Headphone speaker. In OSS test it says ok when testing. Devices are  /dev/oss/oss_hdaudio0/pcm0 when this occures the first time, and /dev/oss/oss_hdaudio0/spdout at the second time.
    Card is the ALC1200 onboard-chip of the Asus P5Q. Its is recognised by alsa & oss as ALC888, and normally working in alsa.
    ossinfo -v3 -a :
    HD Audio play front /dev/oss/oss_hdaudio0/pcm0 (device index 0)
    Legacy device /dev/dsp0
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
    Out engine 1: 0/HD Audio play front
    Available for use
    Engine 2: 9/HD Audio play front (vmix)
    Available for use
    Engine 3: 10/HD Audio play front (vmix)
    Available for use
    Engine 4: 11/HD Audio play front (vmix)
    Available for use
    Engine 5: 12/HD Audio play front (vmix)
    Available for use
    Input formats (0x00001010):
    AFMT_S16_LE - 16 bit signed little endian
    AFMT_S32_LE - 32 bit signed little endian
    Output formats (0x00001010):
    AFMT_S16_LE - 16 bit signed little endian
    AFMT_S32_LE - 32 bit signed little endian
    Device handle: PCI82fe1043-0000:00:1b.0-au01
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 8
    Native sample rates (min - max): 44100 - 192000 (44100,48000,96000,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated
    HD Audio play rear /dev/oss/oss_hdaudio0/pcm1 (device index 1)
    Legacy device /dev/dsp1
    Caps: TRIGGER MMAP
    Modes: OUTPUT
    Out engine 1: 1/HD Audio play rear
    Available for use
    Input formats (0x00001010):
    AFMT_S16_LE - 16 bit signed little endian
    AFMT_S32_LE - 32 bit signed little endian
    Output formats (0x00001010):
    AFMT_S16_LE - 16 bit signed little endian
    AFMT_S32_LE - 32 bit signed little endian
    Device handle: PCI82fe1043-0000:00:1b.0-au02
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 44100 - 192000 (44100,48000,96000,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated
    HD Audio play center/LFE /dev/oss/oss_hdaudio0/pcm2 (device index 2)
    Legacy device /dev/dsp2
    Caps: TRIGGER MMAP
    Modes: OUTPUT
    Out engine 1: 2/HD Audio play center/LFE
    Available for use
    Input formats (0x00001010):
    AFMT_S16_LE - 16 bit signed little endian
    AFMT_S32_LE - 32 bit signed little endian
    Output formats (0x00001010):
    AFMT_S16_LE - 16 bit signed little endian
    AFMT_S32_LE - 32 bit signed little endian
    Device handle: PCI82fe1043-0000:00:1b.0-au03
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 44100 - 192000 (44100,48000,96000,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated
    HD Audio play side /dev/oss/oss_hdaudio0/pcm3 (device index 3)
    Legacy device /dev/dsp3
    Caps: TRIGGER MMAP
    Modes: OUTPUT
    Out engine 1: 3/HD Audio play side
    Available for use
    Input formats (0x00001010):
    AFMT_S16_LE - 16 bit signed little endian
    AFMT_S32_LE - 32 bit signed little endian
    Output formats (0x00001010):
    AFMT_S16_LE - 16 bit signed little endian
    AFMT_S32_LE - 32 bit signed little endian
    Device handle: PCI82fe1043-0000:00:1b.0-au04
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 44100 - 192000 (44100,48000,96000,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated
    HD Audio play pcm4 /dev/oss/oss_hdaudio0/pcm4 (device index 4)
    Legacy device /dev/dsp4
    Caps: TRIGGER MMAP
    Modes: OUTPUT
    Out engine 1: 4/HD Audio play pcm4
    Available for use
    Input formats (0x00001010):
    AFMT_S16_LE - 16 bit signed little endian
    AFMT_S32_LE - 32 bit signed little endian
    Output formats (0x00001010):
    AFMT_S16_LE - 16 bit signed little endian
    AFMT_S32_LE - 32 bit signed little endian
    Device handle: PCI82fe1043-0000:00:1b.0-au05
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 44100 - 192000 (44100,48000,96000,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated
    HD Audio play spdif-out /dev/oss/oss_hdaudio0/spdout0 (device index 5)
    Legacy device /dev/dsp5
    Caps: TRIGGER MMAP
    Modes: OUTPUT
    Out engine 1: 5/HD Audio play spdif-out
    Available for use
    Input formats (0x00001410):
    AFMT_S16_LE - 16 bit signed little endian
    AFMT_AC3 - AC3 (Dolby Digital) encoded audio
    AFMT_S32_LE - 32 bit signed little endian
    Output formats (0x00001410):
    AFMT_S16_LE - 16 bit signed little endian
    AFMT_AC3 - AC3 (Dolby Digital) encoded audio
    AFMT_S32_LE - 32 bit signed little endian
    Device handle: PCI82fe1043-0000:00:1b.0-au06
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 44100 - 192000 (44100,48000,88200,96000,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated
    HD Audio play spdifout /dev/oss/oss_hdaudio0/spdout1 (device index 6)
    Legacy device /dev/dsp6
    Caps: TRIGGER MMAP
    Modes: OUTPUT
    Out engine 1: 6/HD Audio play spdifout
    Available for use
    Input formats (0x00001410):
    AFMT_S16_LE - 16 bit signed little endian
    AFMT_AC3 - AC3 (Dolby Digital) encoded audio
    AFMT_S32_LE - 32 bit signed little endian
    Output formats (0x00001410):
    AFMT_S16_LE - 16 bit signed little endian
    AFMT_AC3 - AC3 (Dolby Digital) encoded audio
    AFMT_S32_LE - 32 bit signed little endian
    Device handle: PCI82fe1043-0000:00:1b.0-au07
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 44100 - 192000 (44100,48000,88200,96000,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated
    HD Audio rec mix /dev/oss/oss_hdaudio0/pcmin0 (device index 7)
    Legacy device /dev/dsp7
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
    In engine 1: 7/HD Audio rec mix
    Available for use
    Engine 2: 9/HD Audio play front (vmix)
    Available for use
    Engine 3: 10/HD Audio play front (vmix)
    Available for use
    Engine 4: 11/HD Audio play front (vmix)
    Available for use
    Engine 5: 12/HD Audio play front (vmix)
    Available for use
    Input formats (0x00001010):
    AFMT_S16_LE - 16 bit signed little endian
    AFMT_S32_LE - 32 bit signed little endian
    Output formats (0x00001010):
    AFMT_S16_LE - 16 bit signed little endian
    AFMT_S32_LE - 32 bit signed little endian
    Device handle: PCI82fe1043-0000:00:1b.0-au08
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 44100 - 96000 (44100,48000,96000)
    HW Type: Not indicated.
    Minimum latency: Not indicated
    HD Audio rec mix /dev/oss/oss_hdaudio0/pcmin1 (device index 8)
    Legacy device /dev/dsp8
    Caps: TRIGGER MMAP
    Modes: INPUT
    In engine 1: 8/HD Audio rec mix
    Available for use
    Input formats (0x00001010):
    AFMT_S16_LE - 16 bit signed little endian
    AFMT_S32_LE - 32 bit signed little endian
    Output formats (0x00001010):
    AFMT_S16_LE - 16 bit signed little endian
    AFMT_S32_LE - 32 bit signed little endian
    Device handle: PCI82fe1043-0000:00:1b.0-au09
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 44100 - 96000 (44100,48000,96000)
    HW Type: Not indicated.
    Minimum latency: Not indicated
    /dev/dsp -> /dev/oss/oss_hdaudio0/pcm0
    /dev/dsp_in -> /dev/oss/oss_hdaudio0/pcm0
    /dev/dsp_out -> /dev/oss/oss_hdaudio0/pcm0
    /dev/dsp_ac3 -> /dev/oss/oss_hdaudio0/spdout0
    /dev/dsp_mmap -> /dev/oss/oss_hdaudio0/pcm0
    /dev/dsp_multich -> /dev/oss/oss_hdaudio0/pcm0
    ossmix:
    Selected mixer 0/High Definition Audio ALC888
    Known controls are:
    jack.green.mode <front|rear|center/LFE|side|pcm4|input> (currently front)
    jack.green [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
    jack.green.mute ON|OFF (currently OFF)
    jack.black.mode <front|rear|center/LFE|side|pcm4|input> (currently rear)
    jack.black [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
    jack.black.mute ON|OFF (currently OFF)
    jack.orange.mode <front|rear|center/LFE|side|pcm4|input> (currently center/LFE)
    jack.orange [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
    jack.orange.mute ON|OFF (currently OFF)
    jack.gray.mode <front|rear|center/LFE|side|pcm4|input> (currently pcm4)
    jack.gray [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
    jack.gray.mute ON|OFF (currently ON)
    jack.pink.mode <front|rear|center/LFE|side|pcm4|input> (currently input)
    jack.pink [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
    jack.pink.mute ON|OFF (currently ON)
    jack.fp-pink.mode <front|rear|center/LFE|side|pcm4|input> (currently input)
    jack.fp-pink [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
    jack.fp-pink.mute ON|OFF (currently ON)
    jack.blue.mode <front|rear|center/LFE|side|pcm4|input> (currently input)
    jack.blue [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
    jack.blue.mute ON|OFF (currently ON)
    jack.fp-green.mode <front|rear|center/LFE|side|pcm4|input> (currently front)
    jack.fp-green [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
    jack.fp-green.mute ON|OFF (currently OFF)
    record.mix.mute.mic1 ON|OFF (currently ON)
    record.mix.mute.fp-mic1 ON|OFF (currently ON)
    record.mix.mute.linein1 ON|OFF (currently ON)
    record.mix.mute.fp-headphone1 ON|OFF (currently ON)
    record.mix.mute.green1 ON|OFF (currently ON)
    record.mix.mute.black1 ON|OFF (currently ON)
    record.mix.mute.orange1 ON|OFF (currently ON)
    record.mix.mute.gray1 ON|OFF (currently ON)
    record.mix.mute.input-mix1 ON|OFF (currently ON)
    record.mix1 [<leftvol>:<rightvol>] (currently 0.0:0.0 dB)
    record.mix.mute.mic2 ON|OFF (currently ON)
    record.mix.mute.fp-mic2 ON|OFF (currently ON)
    record.mix.mute.linein2 ON|OFF (currently ON)
    record.mix.mute.fp-headphone2 ON|OFF (currently ON)
    record.mix.mute.green2 ON|OFF (currently ON)
    record.mix.mute.black2 ON|OFF (currently ON)
    record.mix.mute.orange2 ON|OFF (currently ON)
    record.mix.mute.gray2 ON|OFF (currently ON)
    record.mix.mute.input-mix2 ON|OFF (currently ON)
    record.mix2 [<leftvol>:<rightvol>] (currently 0.0:0.0 dB)
    misc.mic [<leftvol>:<rightvol>] (currently 0.0:0.0 dB)
    misc.fp-mic [<leftvol>:<rightvol>] (currently 0.0:0.0 dB)
    misc.linein [<leftvol>:<rightvol>] (currently 0.0:0.0 dB)
    misc.fp-headphone [<leftvol>:<rightvol>] (currently 0.0:0.0 dB)
    misc.green [<leftvol>:<rightvol>] (currently 0.0:0.0 dB)
    misc.black [<leftvol>:<rightvol>] (currently 0.0:0.0 dB)
    misc.orange [<leftvol>:<rightvol>] (currently 0.0:0.0 dB)
    misc.gray [<leftvol>:<rightvol>] (currently 0.0:0.0 dB)
    misc.input-mix <mic|fp-mic|linein> (currently linein)
    misc.front-mute ON|OFF (currently OFF)
    misc.input-mix-mute1 ON|OFF (currently ON)
    misc.front1 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
    misc.front2 <front|input-mix> (currently front)
    misc.rear-mute ON|OFF (currently OFF)
    misc.input-mix-mute2 ON|OFF (currently ON)
    misc.rear1 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
    misc.rear2 <rear|input-mix> (currently rear)
    misc.center/lfe-mute ON|OFF (currently OFF)
    misc.input-mix-mute3 ON|OFF (currently ON)
    misc.center/lfe1 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
    misc.center/lfe2 <center/LFE|input-mix> (currently center/LFE)
    misc.side-mute ON|OFF (currently ON)
    misc.input-mix-mute4 ON|OFF (currently ON)
    misc.side1 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
    misc.side2 <side|input-mix> (currently side)
    misc.pcm4-mute ON|OFF (currently ON)
    misc.input-mix-mute5 ON|OFF (currently ON)
    misc.pcm41 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
    misc.pcm42 <pcm4|input-mix> (currently pcm4)
    vmix0-enable ON|OFF (currently ON)
    vmix0-rate <decimal value> (currently 48000) (Read-only)
    vmix0-channels <Stereo|Multich> (currently Multich)
    vmix0-src <Fast|Low|Medium|High|High+|Production|OFF> (currently Fast)
    vmix0-outvol <monovol> (currently 25.0 dB)
    vmix0-invol <monovol> (currently 25.0 dB)
    vmix0.pcm9 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
    vmix0.pcm10 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
    vmix0.pcm11 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
    vmix0.pcm12 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
    I tried to turn everything off at record. Oh and this sound is only there when i play sound, not when i do nothing. Any ideas?

    I'd like to use OSS instead of alsa - just for curiosity and for the rumored "better quality"
    I followed wiki and got OSS working, except the same problem as stated above. First I get noise from right front speaker (pcm0) and second from spdout_std (the last one osstest testes). The second last one (spdout) gives good sound though, so I could symlink /dev/dsp to /dev/oss/oss_hdaudio0/spdout, but then how to get sound out from the optical SPDIFF output?
    Has anybody solved this yet, or do I have to go back ALSA?

  • Problems with sound on one user

    I get no sound from only 1 of four accounts on my iMac.  Any ideas?

    Brian, Denise,
    Did you ever solve the problem? I am having this problem as well; out of four users, only one has no sound and it is the only one with admnistrator rights.

  • Performance problem with more than one COUNT(DISTINCT ...) in a query

    Hi,
    (I hope this is the good forum).
    In the following query, I have 2 Count Distinct on 2 different fields of the same table.  Execution time is okay (2 s) with one or the other COUNT(DISCTINCT ...) in the SELECT clause, but is not tolerable (12 s) with both together in the query! I have
    a similar case with 3 counts: 4 s each, 36 s when together!
    I've looked at the execution plan, and it seems that with two count distinct, SQL server sorts the table twice before joining the results.
    I do not have much experience with SQL server optimization, and I don't know what to improve and how. The SQL is generated by Business Objects, I have few possibilities to tune it. The most direct way would be to execute 2 different queries, but I'd like
    to avoid it.
    Any advice?
    SELECT
      DIM_MOIS.DATE_DEBUT_MOIS,
      DIM_MOIS.NUM_ANNEE_MOIS,
      DIM_DEMANDE_SCD.CAT_DEMANDE,
      DIM_APPLICATION.LIB_APPLICATION,
      DIM_DEMANDE_SCD.CAT_DEMANDE ,
      count(distinct FAITS_DEMANDE.NB_DEMANDE_FLUX),
      count(distinct FAITS_DEMANDE.NB_DEMANDE_RESOL_NIV1)
    FROM
      ALIM_SID.DIM_MOIS INNER JOIN ALIM_SID.DIM_JOUR ON (DIM_JOUR.SEQ_MOIS=DIM_MOIS.SEQ_MOIS)
       INNER JOIN ALIM_SID.FAITS_DEMANDE ON (FAITS_DEMANDE.SEQ_JOUR=DIM_JOUR.SEQ_JOUR)
       INNER JOIN ALIM_SID.DIM_APPLICATION ON (FAITS_DEMANDE.SEQ_APPLICATION=DIM_APPLICATION.SEQ_APPLICATION)
       INNER JOIN ALIM_SID.DIM_DEMANDE_SCD ON (FAITS_DEMANDE.SEQ_DEMANDE_SCD=DIM_DEMANDE_SCD.SEQ_DEMANDE_SCD)
    WHERE
      ( ( DIM_MOIS.NUM_ANNEE_MOIS ) >201301
    GROUP BY
      DIM_MOIS.DATE_DEBUT_MOIS,
      DIM_MOIS.NUM_ANNEE_MOIS,
      DIM_DEMANDE_SCD.CAT_DEMANDE,
      DIM_APPLICATION.LIB_APPLICATION

    Here is the script, nothing original. Hope this helps.
    -- Fact table :
    -- foreign keys begin by FK_,
    -- measures to counted (COUNT DISTINCT) begin with NB_
    CREATE TABLE [ALIM_SID].[FAITS_DEMANDE](
        [SEQ_JOUR] [int] NOT NULL,
        [SEQ_DEMANDE] [int] NOT NULL,
        [SEQ_DEMANDE_SCD] [int] NOT NULL,
        [SEQ_APPLICATION] [int] NOT NULL,
        [SEQ_INTERVENANT] [int] NOT NULL,
        [SEQ_SERVICE_RESPONSABLE] [int] NOT NULL,
        [NB_DEMANDE_FLUX] [int] NULL,
        [NB_DEMANDE_STOCK] [int] NULL,
        [NB_DEMANDE_RESOLUE] [int] NULL,
        [NB_DEMANDE_LIVREE] [int] NULL,
        [NB_DEMANDE_MEP] [int] NULL,
        [NB_DEMANDE_RESOL_NIV1] [int] NULL,
     CONSTRAINT [PK_FAITS_DEMANDE] PRIMARY KEY CLUSTERED
        [SEQ_JOUR] ASC,
        [SEQ_DEMANDE] ASC,
        [SEQ_DEMANDE_SCD] ASC,
        [SEQ_APPLICATION] ASC,
        [SEQ_INTERVENANT] ASC,
        [SEQ_SERVICE_RESPONSABLE] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
     CONSTRAINT [AK_AK_FAITS_DEMANDE_FAITS_DE] UNIQUE NONCLUSTERED
        [SEQ_JOUR] ASC,
        [SEQ_DEMANDE] ASC,
        [SEQ_DEMANDE_SCD] ASC,
        [SEQ_APPLICATION] ASC,
        [SEQ_INTERVENANT] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    GO
    ALTER TABLE [ALIM_SID].[FAITS_DEMANDE]  WITH CHECK ADD  CONSTRAINT [FK_FAITS_DEMANDE_DIM_APPLICATION] FOREIGN KEY([SEQ_APPLICATION])
    REFERENCES [ALIM_SID].[DIM_APPLICATION] ([SEQ_APPLICATION])
    GO
    ALTER TABLE [ALIM_SID].[FAITS_DEMANDE] CHECK CONSTRAINT [FK_FAITS_DEMANDE_DIM_APPLICATION]
    GO
    ALTER TABLE [ALIM_SID].[FAITS_DEMANDE]  WITH CHECK ADD  CONSTRAINT [FK_FAITS_DEMANDE_DIM_DEMANDE] FOREIGN KEY([SEQ_DEMANDE])
    REFERENCES [ALIM_SID].[DIM_DEMANDE] ([SEQ_DEMANDE])
    GO
    ALTER TABLE [ALIM_SID].[FAITS_DEMANDE] CHECK CONSTRAINT [FK_FAITS_DEMANDE_DIM_DEMANDE]
    GO
    ALTER TABLE [ALIM_SID].[FAITS_DEMANDE]  WITH CHECK ADD  CONSTRAINT [FK_FAITS_DEMANDE_DIM_DEMANDE_SCD] FOREIGN KEY([SEQ_DEMANDE_SCD])
    REFERENCES [ALIM_SID].[DIM_DEMANDE_SCD] ([SEQ_DEMANDE_SCD])
    GO
    ALTER TABLE [ALIM_SID].[FAITS_DEMANDE] CHECK CONSTRAINT [FK_FAITS_DEMANDE_DIM_DEMANDE_SCD]
    GO
    ALTER TABLE [ALIM_SID].[FAITS_DEMANDE]  WITH CHECK ADD  CONSTRAINT [FK_FAITS_DEMANDE_DIM_INTERVENANT] FOREIGN KEY([SEQ_INTERVENANT])
    REFERENCES [ALIM_SID].[DIM_INTERVENANT] ([SEQ_INTERVENANT])
    GO
    ALTER TABLE [ALIM_SID].[FAITS_DEMANDE] CHECK CONSTRAINT [FK_FAITS_DEMANDE_DIM_INTERVENANT]
    GO
    ALTER TABLE [ALIM_SID].[FAITS_DEMANDE]  WITH CHECK ADD  CONSTRAINT [FK_FAITS_DEMANDE_DIM_JOUR] FOREIGN KEY([SEQ_JOUR])
    REFERENCES [ALIM_SID].[DIM_JOUR] ([SEQ_JOUR])
    GO
    ALTER TABLE [ALIM_SID].[FAITS_DEMANDE] CHECK CONSTRAINT [FK_FAITS_DEMANDE_DIM_JOUR]
    GO
    ALTER TABLE [ALIM_SID].[FAITS_DEMANDE]  WITH CHECK ADD  CONSTRAINT [FK_FAITS_DEMANDE_DIM_SERVICE_RESPONSABLE] FOREIGN KEY([SEQ_SERVICE_RESPONSABLE])
    REFERENCES [ALIM_SID].[DIM_SERVICE] ([SEQ_SERVICE])
    GO
    ALTER TABLE [ALIM_SID].[FAITS_DEMANDE] CHECK CONSTRAINT [FK_FAITS_DEMANDE_DIM_SERVICE_RESPONSABLE]
    GO
    -- not shown : extended properties
    -- One of the dimension  tables (they all have a primary key named SEQ_)
    CREATE TABLE [ALIM_SID].[DIM_JOUR](
        [SEQ_JOUR] [int] IDENTITY(1,1) NOT NULL,
        [SEQ_ANNEE] [int] NOT NULL,
        [SEQ_MOIS] [int] NOT NULL,
        [DATE_JOUR] [date] NULL,
        [CODE_ANNEE] [varchar](25) NULL,
        [CODE_MOIS] [varchar](25) NULL,
        [CODE_SEMAINE_ISO] [varchar](25) NULL,
        [CODE_JOUR_ANNEE] [varchar](25) NULL,
        [CODE_ANNEE_JOUR] [varchar](25) NULL,
        [LIB_JOUR] [varchar](25) NULL,
        [LIB_JOUR_COURT] [varchar](25) NULL,
        [JOUR_OUVRE] [tinyint] NULL,
        [JOUR_CHOME] [tinyint] NULL,
     CONSTRAINT [PK_DIM_JOUR] PRIMARY KEY CLUSTERED
        [SEQ_JOUR] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    GO
    ALTER TABLE [ALIM_SID].[DIM_JOUR]  WITH CHECK ADD  CONSTRAINT [FK_DIM_JOUR_DIM_ANNEE] FOREIGN KEY([SEQ_ANNEE])
    REFERENCES [ALIM_SID].[DIM_ANNEE] ([SEQ_ANNEE])
    GO
    ALTER TABLE [ALIM_SID].[DIM_JOUR] CHECK CONSTRAINT [FK_DIM_JOUR_DIM_ANNEE]
    GO
    ALTER TABLE [ALIM_SID].[DIM_JOUR]  WITH CHECK ADD  CONSTRAINT [FK_DIM_JOUR_DIM_MOIS] FOREIGN KEY([SEQ_MOIS])
    REFERENCES [ALIM_SID].[DIM_MOIS] ([SEQ_MOIS])
    GO
    ALTER TABLE [ALIM_SID].[DIM_JOUR] CHECK CONSTRAINT [FK_DIM_JOUR_DIM_MOIS]
    GO

  • Problem with redirecting from one screen to another screen.

    Hi All,
    I have a region as form with having two buttons as "submit" and update". Once data is inserted into tables i m acalling a model dialog box with two buttons as "Continue" and "key" buttons.
    when i click on view i will be redirecting to the same page by clearing the session as path mentioned below
    document.location.href='f?p=&APP_ID.:1:&SESSION.::&DEBUG.:1:P1_CHECK,P1_BUTTONHIDD:N,';
    bUt when i click on View button i wil be redirecting to same page with updat ebutton as
    document.location.href='f?p=&APP_ID.:1:&SESSION.::&DEBUG.::P1_CHECK,P1_BUTTONHIDD:N,UpdateMode';
    Now i have aonther region as Search and under serch report i have provided link for one of the column, Now when we click on that link i need to redirect the page to update mode screen, so that users can update the records.
    For this i have tried like this but that i snot wroking for me
    Under region two
    Column Link#Colo2#
    Target page in this application#1
    Item1:-P1_BUTTONHIDD
    set thi svalue:UpdateMode
    Thanks,
    Anoo..

    Anoo wrote:
    Hi All,
    I have a region as form with having two buttons as "submit" and update". Once data is inserted into tables i m acalling a model dialog box with two buttons as "Continue" and "key" buttons.
    when i click on view i will be redirecting to the same page by clearing the session as path mentioned below
    document.location.href='f?p=&APP_ID.:1:&SESSION.::&DEBUG.:1:P1_CHECK,P1_BUTTONHIDD:N,';
    bUt when i click on View button i wil be redirecting to same page with updat ebutton as
    document.location.href='f?p=&APP_ID.:1:&SESSION.::&DEBUG.::P1_CHECK,P1_BUTTONHIDD:N,UpdateMode';
    Now i have aonther region as Search and under serch report i have provided link for one of the column, Now when we click on that link i need to redirect the page to update mode screen, so that users can update the records.
    For this i have tried like this but that i snot wroking for me What do you mean by not working?

  • Problem with SMTP from one computer but not another

    I have an iMac connected directly to my network via Ethernet and a MacBook Pro which connects via wireless. I have a program installed on my iMac that sends me alerts via e-mail, and it works just fine. When I try and use Mail, however, on my MBP with the exact same settings and credentials, it fails. To make this even more perplexing, Mail works fine from my office on a different network.
    To work around this, I use Comcast's SMTP server on my laptop, but why would my regular e-mail provider's SMTP work on one machine and not another on the same network? The only difference is one is connected via Ethernet and the other by wireless.
    I use a Time Capsule as my router and wireless access point. Has anyone got an idea about what's causing this?

    Please report the relationship, if any, of the "regular e-mail provider's SMTP" and your ISP? If Comcast is your ISP, they regularly block use of Port 25, but if you have selected Use Default Port in Mail Preferences/Accounts/Account Information for the Outgoing Server, then it may be making the wrong choice to work with Comcast. Regardless of the ISP, for this regular account click on the arrows beside the name of the SMTP, choose Edit Server List, then click on the Advanced Tab that will then be seen and choose Use Custom Port, then enter the proper port directly -- that port is probably Port 587, but that could depend on the advisory of the email provider for using their SMTP.
    Ernie

Maybe you are looking for

  • How to create effects like this ...

    Dear webmates : I'd like to know how to create rollover menus like this : http://perfeccionate.urp.edu.pe/server/rumbo/index.php/comunidad/programa-tv As you can see it shows you more than one option and big rollover menus... what tools ca I use to a

  • Configure Subject Areas

    How do I configure multiple subject areas in OBIEE 11G? Thanks, Akshatha

  • Content type hide on New button but keep enabled on Upload

    I have several content types in my document libraries.  There is one content type that I want to hide on the New button, but keep enabled in the Upload drop-down for content type. How can I do this? thanks!

  • Trial version will not run past splash screen

    I hope someone can help please! I downloaded the trial of dreamweaver 8 yesterday & I installed it & ran just fine. Today it will not run past the splash screen. It comes up & asks if I want to buy or carry on the trial - I pick trial, and the dreamw

  • Where are the firewall settings?!?

    The Help says "Open System preferences, click sharing, click Firewall and click Advanced". When I click Sharing, I don't see "firewall" (G5 Xserve, 10.4.11)! Isee only Remote login, Apple Remote Desktop, and Remote Apple Events. Where the heck is the