A method for obtaining a mapping between a random access parameter and a resource, comprising: obtaining, by a UE, a random access parameter list, and obtaining a serial number of a parameter in the random access parameter list, where a sequence of the serial number in the list obtained by the UE is from 0 to N-1 and is numbered by the UE for a sequence of the obtained random access parameter after a network side device delivers the random access parameter, wherein N is the total number of parameters in the random access parameter list; obtaining a resource list; obtaining a mapping between the random access parameter and a common enhanced dedicated channel resource in the resource list according to the obtained serial number of the random access parameter and the total number of resources in the obtained resource list; wherein the random access parameter list comprises a random access parameter in type 2 or in type 3 in a second system information block; the obtaining a resource list comprises: obtaining a list of a 2 ms common enhanced dedicated channel resource in a first system information block; and the obtaining a mapping between the random access parameter and a common enhanced dedicated channel resource according to the obtained serial number of the random access parameter and the total number of resources in the obtained resource list comprises: obtaining the mapping between the random access parameter and the common enhanced dedicated channel resource by using a formula X' = SigInd mod Z, wherein: X' is a default common enhanced dedicated channel resource index, Z is the total number of resources in the list of the 2 ms common enhanced dedicated channel resource in the first system information block, SigInd is the serial number of the parameter in the random access parameter list, and mod is a modulo operation. obtaining, by a UE, a random access parameter list, and obtaining a serial number of a parameter in the random access parameter list, where a sequence of the serial number in the list obtained by the UE is from 0 to N-1 and is numbered by the UE for a sequence of the obtained random access parameter after a network side device delivers the random access parameter, wherein N is the total number of parameters in the random access parameter list; obtaining a resource list; obtaining a mapping between the random access parameter and a common enhanced dedicated channel resource in the resource list according to the obtained serial number of the random access parameter and the total number of resources in the obtained resource list; wherein the random access parameter list comprises a random access parameter in type 2 or in type 3 in a second system information block; the obtaining a resource list comprises: obtaining a list of a 2 ms common enhanced dedicated channel resource in a first system information block; and the obtaining a mapping between the random access parameter and a common enhanced dedicated channel resource according to the obtained serial number of the random access parameter and the total number of resources in the obtained resource list comprises: obtaining the mapping between the random access parameter and the common enhanced dedicated channel resource by using a formula X' = SigInd mod Z, wherein: X' is a default common enhanced dedicated channel resource index, Z is the total number of resources in the list of the 2 ms common enhanced dedicated channel resource in the first system information block, SigInd is the serial number of the parameter in the random access parameter list, and mod is a modulo operation. <EOS>