You haven't given a real question here. It's so general and there could be so many possibilities of what is wrong. Please ask about something specific you are trying to solve, not ask someone to write you a manual about every possibility.
Include your setup, the errors you have, DDL, etc.